First time 4.0, the project is a complied DLL - is there any way to revert to just normal aspx and editable cs?
View Complete Post
I'm used to working with VS 2008 and toggling bookmarks in aspx pages was very useful, however in VS 2010 I'm unable to toggle bookmarks using the CTRL + K + K or the actual "Toggle bookmark" button from the bookmarks tool. Is there an option to enable this on the ASPX page, it works everywhere else though.
In MVC it's very easy to control routing.
In my classic ASP.NET application I want to "hide" .aspx extension
I can do it with new ASP.NET 4 feature: MapPageRoute
routes.MapPageRoute("login", "login", "~/login.aspx");
Now http://site.com/login will work. But I have more than 50 pages, and adding 50 rules is ridiculous.
How can I solve this?
hi ,i am making an internal social networking application for my small organisation where i work .i have a list of all employee names in a mssql 2000 database that are the names of 5000 employees of the company one by one arranged in rows in a single coloumn of a table . i have a folder ,i want to make .aspx files/pages in that folder ,the file name should be same as names of the person in database coloumn.can any help me with codes to automatically make the .aspx pages with the same names as it is in database coloumn.(note that folder will not take any duplicate values(name will not be repeated)) .i am making application using asp.net 2.0.file will be automatically created in the folder as soon as new name is entered in database.its very difficult to make 5000 aspx page with each employee name and it will be difficult to make new pages again and again after new employees names are entered.so i want that files will be automatically created after employee names are registered. thanks in advance.hoping for help for someone.
I inherited a web site which contains many stand-alone aspx pages (with the .NET code in the page rather than in a code-behind file). I'm wondering how to debug these pages; I cannot set breakpoints in them (I can set breakpoints in the code files on the site without issue). I'm using Visual Studio 2008.
I have enabled customError in my web.config file and it handles 'Page not found' error for aspx pages or any other files types handled by ASP runtime. My problem is my application is on a remote host and when a user tries a url on my website that ends with something other than those files types handled by ASP run time, for example http://mywesites.com/sdkdhiufuhief.hei, it displays a detailed error page by the IIS which I really don't like the malicious users to see. It contains a lot of information like the physical path of the application.
How can I handle all 404 html error regardless of the file type and URL in my ASP.NET application?
The basic issue is that I have a html page that needs just a smidgeon of code on it. The issue is that I don't want to have to rewrite the whole page to be an aspx page and put all the text boxes as asp textboxes BUT I don't know how to refer to the controls on the page without doing that.
Is there any way to add a smidgeon of aspx code to a html page without having to rewrite the whole page?
All I want to do is update a textbox or two with some data.
Dear All Experts,
for my project, i created a solution with a one aspx page and all of other components are Dynamic load WebUserControls ascx, each user control and related functions are a separate webapplication project.
now i need to use WPF with my project, i dont know how to load the ".xbap" file Dynamically in my page,
also when i tried to use it as iframe, i face the error "System.Security.SecurityException: That assembly does not allow partially trusted callers" which means that i cannot call or use any of my DLL's methods from outside the project invironment (please note that i am not using strong names anywhere), i put [assembly: AllowPartiallyTrustedCallers] attribute in AssemblyInfo.cs but also i cannot call required functions.
now the questions is:
1. can i associate with WPF (*.xdap) files and load it the same as dynamics user controls?
2. how to call and let my functions work outside the project invironment.
Can i invoke WML scripts from ASPX page?
also when i tried to use it as iframe, i face the error "System.Security.SecurityException: That assembly does not allow partially trusted callers" which means that i cannot call or use any of my DLL's methods from outside the project invironment
(please note that i am not using strong names anywhere), i put [assembly: AllowPartiallyTrustedCallers] attribute in AssemblyInfo.cs but also i cannot call required functions.