asp.net

Wiki like on http://wiki.asp.net (with hierarchical table of contents)

I am looking for a Wiki written on ASP.NET (preferably open source and free) similar to the one on http://wiki.asp.net/. The main feature that I like on http://wiki.asp.net/ is a hierarchical table of contents - something which is totally absent in most Wikis - which are just collections of pages connected via hyperlinks, with no place ...

Does SetVaryByCustom work in User Controls?

It seems to me that Response.Cache.SetVaryByCustom("mykey"); is not working from within ASCX User Controls. It works from the Page. The ASCX works only when VaryByCustom is specified in the outputcache directive. I'm using ASP.NET 3.5. Any help? ...

What's causing “Session state has created a session id, but cannot save it because the response was already flushed by the application.”

I'm getting this fault intermittently. I found this link which summarises fairly well what I was able to find on the Google: http://www.wacdesigns.com/2009/02/03/session-state-has-created-a-session-id-but-cannot-save-it-because-the-response-was-already-flushed-by-the-application/ Basically it says you can try setting the web config se...

Where should I store version information about my ASP.NET application?

Web.Config? Website properties? I'm looking for suggestions/best practices with reasons you recommend them. ...

ASP.NET: Bold words in text on image

I'm trying to dynamically write text to an image, but I would like to boldface a selected word in the sentence. What I did is separate the string into three strings, the first part, the word to be boldfaced, and the remainder of the sentence. When I attempt to draw them onto the image (.DrawString()), however, they don't concatenate, but...

HtmlSelect vs DropDownList

Between HtmlSelect and DropDownList, which one has a better performance (initialized and rendered faster)? Are there any guidelines when to use which? Another questions is if I want to access the value of a select control from JScript, am I only bound to use HtmlSelect (because the ID doesn't change) or is there any way to force DropDow...

performance issues when using 3rd party ASP.Net packages on external-facing sites

I'm an experienced C# winforms person, but new to ASP.Net. I'm developing a site which will be externally facing, but will not have massive numbers of users (wouldn't expect more than maybe 50 at a time). The users of the site would probably be very smart, but not necessarily tech savvy (psychologists). Because I'm new to web developm...

ASP.NET linkbutton visible property issue

Hi I'm using a public variable called IsAdmin in the code behind of an aspx page. public partial class _news : System.Web.UI.Page { public bool IsAdmin = false; protected void Page_Load(object sender, EventArgs e) { if (User.Identity.Name.Contains("admin")) { IsAdmin = true; } else { IsA...

ASP.NET :URL masking

I have an ASP.NET web application where i have a page Signup.aspx and a home page.aspx.In my home page i have link to the signup.aspx page.I want to Hide the file extension.aspx from the addressbar when someone clicks on the signup link in home page.I want to show it as http://mysite.com/signup . Is there anyway to do this ? I am using ...

ASP.NET Client side validation and Post back

I have an aspx page in which i have 3 asp.net text boxes and 1 asp.net button control.I want to do a client side validation before the post back happens when i click on the button . ie ; If the the page passes the validation check,then only i need to invoke the server side button click event.Can any one help me ? Thanks in advance ...

all of a sudden...dynamic created imagebutton's click event wont fire.

hi i have a page that dynamic create a table of contacts, if the contact got an email i also create an image button with a click event. i have a similar function in the rest of the page that works perfectly. and i used this before without any problems. protected void CreateContactsList(IQueryable<AA_BranschFinder.Login.vyWebKontaktpers...

asp.net WebForms emulation of the state in the stateless env

I'm looking for an elegant way to have AppContext configured right and here is it: public class AppContext : IAppContext { public AppContext() { Application = new AppStorage(); // app scoped hashtable Local = new LocalStorage(); // current thread scoped hashtable Session = new SessionStorage(); ...

In ASP.Net can I call a user controls WebMethod using Javascript and PageMethods?

It's saying PageMethods is undefined. ...

Measure size of Web Requests and Responses

I am looking for a way to measure the size of web requests and responses that I make in my browser. I would need a way to measure regular requests, as well as ajax requests. I am trying to improve Ajax performance by decreasing request and response size, and I need some way to benchmark this on the client end as well as measure my progre...

Reported Attack Site! error on firefox

We are currently having error message when we ping our site in FireFox: Reported Attack Site! This web site at www.xyz.com has been reported as an attack site and has been blocked based on your security preferences. Attack sites try to install programs that steal private information, use your computer to a...

Forms Authentication Cookie - Why SSL?

I see the guidance when using formsAuthentication in ASP.NET is to use SSL via the requireSSL property. I was under the impression that the contents of the cookie are encrypted. So I'm trying to grasp why SSL is required as well? ...

CollapsiblePanelExtender

I have two panels and I use CollapsiblePanelExtender control to collaps and expand one of them.what I need is to change the size of the second control when the first is collapsed . how I can do that? ...

ASP.NET fileupload question

Is it good to store the uploaded file into a relational database or put it in a file system under a directory in IIS? I thought relational system will be a better choice. Any comments? When will you use one over the other? EDIT: RDBMS, will make it easier to relate multiple file attachments to a record. It's easier to maintain version(s...

how web service validate that requested URL is valid or not ?

I have Implemented one web service that return xml string. I want to validate that web service through the hash code, when request is coming from any URL then validate that URL is valid or not how this will done through the c# code? The XML web service will require that a valid HASH code is submitted to the API along with validating th...

How to see SQL 2008 Locks and Blocked Tables

Hi. During the ASP.NET execution of my app, it seems SQL 2008 Express holds some lock, and I get Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding Maybe some of my query is not optimized. Visual Studio crashes with: Microsoft Visual Studio may be unstable now. ...