asp.net-3.5

Silverlight and web application common library

岁酱吖の 提交于 2019-12-12 23:51:44
问题 Hello I have an application that had been done on Silverlight, exist a lot of classes inside of this application. I need to create new application that should you some classes from Silverlight app. I decide make refactoring and move this classes to external library and add like reference to Silverlight and My new web site. But Silverlight doesn't allow to use normal libraries i need use just special Silverlight class library. How I can resolve this issue ? 回答1: You can create a Portable Class

Updateable Google Sitemap for ASP.NET 3.5 Web App Project

房东的猫 提交于 2019-12-12 18:34:54
问题 I am working on an ASP.NET 3.5 Web Application project in C#. I have manually added a Google-friendly sitemap which includes entries for every page in the project - this is not a CMS. <url> <loc>http://www.mysite.com/events.aspx</loc> <lastmod>2009-11-17T20:45:46Z</lastmod> <changefreq>daily</changefreq> <priority>0.8</priority> </url> The client updates events using an admin back-end. Other than that, the site is relatively static. I'm trying to decide on the best way to update the <lastmod>

Save website uploads in a subdomain

╄→尐↘猪︶ㄣ 提交于 2019-12-12 18:14:45
问题 Currently whenever a user uploads a file through our website, it gets put in a folder such as: www.domain.com/Uploads/Docs/filename.doc However, I'd like to move this to a subdomain such as: uploads.domain.com/Docs/filename.doc This is mainly because I'd like to keep the files uploaded by the user, totally seperate from the web app. However, currently I use an ASP.NET FileUpload control to upload the files, by doing something like: myFileUpload.SaveAs(Server.MapPath("/Uploads/Docs/filename

ASP.NET Membership staying authenticated issues

隐身守侯 提交于 2019-12-12 14:19:43
问题 So, my application is being odd in the fact that when you login you will stay logged in for a page or two then get lost. My settings are this: <authentication mode="Forms"> <forms name=".ASPXFORMSAUTH" timeout="20"/> </authentication> <authorization> <allow users="*" /> </authorization> <membership defaultProvider="MySqlConnection" userIsOnlineTimeWindow="45"> <providers> <clear /> <add name="MySqlConnection" type="System.Web.Security.SqlMembershipProvider" connectionStringName=

Are multiple forms on a single page supported in asp.net 3.5?

核能气质少年 提交于 2019-12-12 13:20:01
问题 I just wanted to confirm if this was true or not - I remember reading somewhere that it was now possible, but after an hour of googling I can't find any definitive proof. 回答1: In ASP.NET WebForms you cannot use multiple forms as it uses a single form model. In ASP.NET MVC you can. 来源: https://stackoverflow.com/questions/2504209/are-multiple-forms-on-a-single-page-supported-in-asp-net-3-5

RedirectFromLoginPage() is not updating User.Identity.Name

别来无恙 提交于 2019-12-12 06:37:00
问题 I use FormsAuthentication.RedirectFromLoginPage(userName.Trim(), false); to set the User.Identity.Name field that I reference later. When I execute this line, the User.Identity object does not update at all; it contains whatever it was previously set to. All the documentation I see online says this should update my User.Identity object with the correct name, but I don't see that happening. I have the web config set up properly with the following lines: <authentication mode="Forms"> <forms

Shared Forms Authentication not working between .NET 3.5 and .NET 4.0 applications

孤人 提交于 2019-12-12 05:20:38
问题 I have two web applications, one running under .Net 3.5, the other has been upgraded to .Net 4.0. Prior to the upgrade, shared authentication was setup and working correctly between the two applications as indicated in the MSDN article: http://msdn.microsoft.com/en-us/library/eb0zx8fc.aspx The 3.5 Application is running under the Classic .NET AppPool (v2.0, Classic Pipeline). The 4.0 application is running under the ASP .NET v4.0 AppPool (v4.0, Integrated Pipeline). 回答1: The problem turned

How to use AJAX in master page when content pages have ScriptManager?

倖福魔咒の 提交于 2019-12-12 04:42:59
问题 In my ASP.NET 3.5 project, most content pages have ScriptManager control but the Master Page does not have. I now want to use UpdatePanel in the master page but it is not permitting to put another ScriptManager. I cannot change to ScriptManagerProxy in content pages as the change needs to be replicated to around fifty pages. Is there any way to use UpdatePanel in Master Page by either sharing content page's ScriptManager or something else? 回答1: three ways I can think. First way is to use

How to tick a Checkbox in ASP.NET GridView without going to Edit mode

最后都变了- 提交于 2019-12-12 04:37:34
问题 I have a Checkbox template column in a ASP.NET 3.5 GridView. Now the user has to click 'Edit', tick the Checkbox, then click the 'Update' or 'Cancel' button, which raises an event that we use to update database. Is it possible to just check the box without going into Edit mode at all and raise a Checked event so that we can update database ? Alternately we can iterate through all rows, identify ticked rows and update them to DB in a loop. Any pointers helpful. Thanks, Chak. 回答1: Try, Row