asp.net

ASP.NET InnerXml automatically/incorrectly appending attribute text to tags

So I have some XML in the following format: <somenode> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title/> </head> <body> <p>P one</p> <p>Another p</p> </body> </html> </somenode> Nestled in there is some html, which I didn't think would be an issue...

float un-ordered list items(ul) next to one another

Hi all, I wanna place two child un-ordered lists side by side. They are having Class Names L and R Heres the relevant part of the HTML markup. <ul class="SearchResult"> <li class="Pagination"> <a id="lnkPageNumber_top_1" class="ACTIVE" onclick="ShowPage(this.id);" style="cursor: pointer;">1</a> <a id="lnkPageNumber_top_2" onclick="Sho...

handle event before Page_Load

I have an asp.net web page with a ton of code that is handled in the Page-Load event of the page. I also have a dropdown box on the page that should reload the page with a new value, but I would like to get this new value before I process the entire Page-Load code. I am trying to get my head around ASP.NET page lifecycle. Should I mov...

Why IIS Development server recompiles all my web application every time I build my webapp in VS 2008?

We have a web application project (not a web site), until the day we have added batch="false" to web.config web development server was compiling all the web application instead of the page that was requested. <compilation debug="true" batch="false"> <assemblies> ... </assemblies> </compilation> This make us faster....

ExtJs integration with asp.net : examples

Pls share any known good examples of ExtJS framework with asp.net ...

Configuring root directory internal ASP.NET server

My ASP.NET always starts like this with the internal server: http://localhost:50793/Website/ I use FckEditor which points to http://localhost:50793/fckeditor How do I configure the server that it servers my folder "Website" as the root? ...

How to return XML in ASP.NET

This is a very basic question. I'm just on my mission to learn ASP.NET (C#). I've done classic ASP and PHP before. For this project I have ASP.NET 2.0 at my hands. I have a Web Form that has a jqGrid Datagrid that I want to feed XML data via AJAX. jqGrid is not the problem here, though. The "problem" is the approach that I should take ...

Closing a Pop-Up Window after Writing File to Response.

In my code, I am using javascript to fire off a window.open on an ASPX page. In the page-load of that page, I'm outputting a file: Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); Response.Charset = ""; Response.ContentType = "application/octet-stream"; Response.AddHeader("Content-Disposition", "attachment;filename=\"...

Are there any good OSS instances of converting an Exception to HTML (C#) ?

Working with EntLib 4.1 and want the Exception block to send an email with error information. All that is fine but out of the box I have either the Text or Xml formatter to work with. I would love an Html representation that which brings in other information such as browser, http headers etc. Years ago I wrote one but dont have the sourc...

Asp.Net Horizontal Submenu

How do I create an asp:Menu that has a horizontal submenu rather then a vertical one while keeping the top menu horizontal? ...

ASP.NET : Possible to create a UserControl that include inside markup content?

Hi, I'm trying to achieve something google isn't able to give answer. I'm trying to create an asp.net usercontrol that when I put content into it's open close tag will include it for me to be still able to acess it's content by ID from the Parent. Here is an exemple of what I want to achieve. Usercontrol: <%@ Control Language="C#" Aut...

Stepping into an htc file while debugging an ASP.NET page?

I can step into javascript files, but not .htc files. It allows me to set a breakpoint, but it doesn't stop at it. Is it possible? ...

ASP.net: Cache problem when logout

I can't find any post regarding the cache on logout so I'm going to ask this question. If there is a similar question. Please let me know. I have a Logout page that basically call FormAuthentications signout method then redirect the user to the login page. It work fine but the problem is user can click on the browser's back button and g...

PopupControlExtender question

Hello there I'm currently playing around with the PopupControlExtender in the ajaxToolkit and can't quite get the functionality I want. I'm trying to display a free floating "help" panel for an input form. Once the user presses the help button on the form the pnael pops up and displays no problem however once I click back on the main ...

A clean way of generating QueryString parameters for web requests

I came across a problem in my current application that required fiddling with the query string in a base Page class (which all my pages inherit from) to solve the problem. Since some of my pages use the query string I was wondering if there is any class that provides clean and simple query string manipulation. Example of code: // What ...

Determine if aspx page was opened by a window.open() command

Is there a way to determine in the child page's code behind that is was opened by the window.open() javascript command from the parent page? The pop-up page contains a user control that is used by other pages that are not spawned from a window.open() command and I want to dynamically add functionality to close the page after the user ha...

ASP.NET Viewstate validation - ASP.NET 1.1 vs. ASP.NET 3.5

Hi all, we're in the process of migrating our web app from ASP.NET 1.1 to ASP.NET 3.5. Our app runs on multiple servers through DNS round robin, so every browser request may end up on a different server. We do have a in our web.config to prevent validation errors. However, our plan was to migrate one server at a time. Now it looks lik...

Programmatically close aspx page from code behind

What is the best way to close aspx page from the code behind? I have an button eventhandler that I want to close the page after the user has clicked an ASP.NET button on the page. I have tried to programmatically add a javascript method that contains a window.close() command to the OnClientClick event to close the page but it does no...

How can you test if an ASP.NET membership password will meet configured complexity requirements?

I have a ASP.NET page which allows an administrator to change the password for a user. Since the administrator does not know the user's password, I am using the following: MembershipUser member = Membership.GetUser(_usernameTextBox.Text); member.ChangePassword(member.ResetPassword(), _passNewTextBox.Text); -- as described by this SO ...

What are the dangers of giving the Network Service account read/write permissions to your ASP.NET Web application?

What are the dangers of giving the Network Service account read/write permissions to your ASP.NET Web application? I have to do this for any directory that my app needs to write to like App_Data for my VistaDb database and some random directories to uplaod images and make changes to text files, etc. What is the danger in doing this? A...