asp.net

jQuery & ASP.Net Resources & Gotchas

What are some good jQuery Resources along with some gotchas when using it with ASP.Net? ...

SSO between ASP.NET, ASP and PHP

I'm working on a site which is at the core/ master of a number of sites. We are also responsible for handling the authentication across all the sites under the brand banner. The client has wanted a single-sign-on operation to be included, so if I was to sign into any of the sites I would be signed into all the sites. We're handling the ...

Best way to access user/site settings

There have been a couple of questions that sort of dealt with this but not covering my exact question so here we go. For site settings, if these are stored in a database do you: retrieve them from the db every time someone makes a request store them in a session variable on login ??????? For user specific settings do I do the same a...

How can you create an ASP.Net 2.0 web service that consumes and produces JSON objects?

I would like create a web service in ASP.Net 2.0 that will supports JSON. Is there a way to do this without WCF and .Net 3.5? Can anyone point me to a good article or sample code? Clarification I need direction on what is the best method, using the .Net 2.0 framework, to communicate JSON objects to a client. Is it possible to do t...

"HTTP status 401: Access Denied" error for web service even when the virtual directory allows Anonymous access

i have a web service hosted on another server with the Anonymous Access CheckBox in IIS is already checked. when my local web application is trying to access the web service, i still get the "The request failed with HTTP status 401: Access Denied." error. my web application is calling the web service like the following: MyObject.WebSer...

In a Dynamic Data custom page how do I retrieve the just updated object?

Hi, I am using ASP.NET Dynamic Data and have a custom page. In this page I have a handle on the DetailsView inserted event where I would like to do something based on the value of the recently updated object. However, I can't put the event handling in the model class of the respective object because it is also based on the value of a ...

Forward URL and still return 200 not 302 in ASPX

I want this page to return 200 whilst still sending the redirect... <script> sub page_load 'Get the parameters dim content As String content = request.querystring("text") response.redirect ("http://100.200.100.10/test1/Default.aspx?CommandParm=" + content) end sub </script> <html> <head> ...

Decimal comaprison in Java script

I am trying to compare two decimal values in Java script. I have two objects as one assogned value "3" and the other as "3.00". When i say if (obj1 == obj2) it does not pass the condition as it is does the string comparision. I would instead want it to do a decimal comparision where 3 = 3.00. Please let me know how to do this. ...

Where does ConfigurationManager ConnectionStrings get its value?

In my ASP.NET application I have a web.config file. In the web.config file I have a connection string... <connectionStrings> <add name="HRDb" connectionString="xxxxx" providerName="System.Data.SqlClient" /> </connectionStrings> Yet, when I retrieve this value using ConfigurationManager.ConnectionStringsp["HRDb"], I get the my old ...

Display Ajax Loader while page rendering

This is probably a simple question but how can I best use an AJAX loader in ASP.NET to provide a loading dialog whilst the page is being built? I currently have an UpdatePanel with an associated UpdateProgressPanel which contains the loading message and gif in a ProgressTemplate. Currently I have a page that onLoad() goes and gets the...

an ASP.NET performance bottleneck mystery

A classic ASP.NET app - AppSrv + MS SQL DB. Both servers are heavy-lifters 8 cores, 20 GB of RAM. When load testing, the throughput goes somewhere to 400 VirtualUsers (according to LoadRunner) with CPU being approximately 30% utilized an DB server primarily idling - response times go dramatically up, to the point of unresponsive. The us...

Accessing control, ajax, asp.net

Hi. I have one aspx page with some controls. Also i have one DIV which is dynamically populated from AJAX call. This AJAX call return couple of controls, for example HtmlInputText1 and HtmlInputText2. When page is submitted, I can get values from this controls through Request.Form. If possible access to the attributes of this control ...

How do i split a String into multiple values?

How do you split a string? Lets say i have a string "dog, cat, mouse,bird" My actual goal is to insert each of those animals into a listBox, so they would become items in a list box. but i think i get the idea on how to insert those items if i know how to split the string. or does anyone know a better way to do this? im using asp c# ...

Dynamically Reassigning Filtered Text Box Extender

I have a page with 8 Text fields, all these text boxes requires the same rules in regard to accepted characters/invalid characters. My question is, should I have individual Filtered Text box Extenders for each Text Field or can I have a single Filtered Text Box Extender that I reassign the TargetControl. Can you do this client side i...

The effect of static properties in a web context

I need to change a static property on an object in our web application. The property has a default value that is hard-coded into the object. If I change the static property in my Application_Start does that change stick: A) Forever (well, until the app is recycled) B) Until the object is GC'd then re-inialised by the next accessor C...

Strongly Typed Resources Causing Problems?

In the middle of some refactoring and I've moved a resources file from one project to another. I think I clicked a warning telling me to Strongly type the resource file at one point and now I'm getting: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MyProject.Common.Resour...

Non localized error messages in Asp.net

I've got a Polish version of Windows installed and therefore I get exception messages in Polish. Is there a way to make asp.net display error messages in English? Other than installing English version of Windows. ...

Drop Down List doesn't post back after first post back

Hi Guys, I've got this asp.net drop down control that displays other textbox controls when the value is not UK (this is to help find UK addresses using postcodes). When UK is reselected I will like to hide the other controls. I've enabled view state and AutoPostBack to true. I have an onSelectedIndexChanged event that only gets fired on...

Web.Config Falling back to Global Config in Web Farm

Hi all, This problem has several of us stumped in the office. We are all new to deploying ASP.NET apps to a web farm, and I am fresh out of ideas. We have a web farm, and the application is copied on to all of them. However, we are having a problem.. An exception is being thrown when trying to get settings from appSettings. Upon furth...

Response.Redirect strips Header Referrer - Possible to Add it Back?

I'm using a Response.Redirect to redirect users to another server to download a file, and the other server is checking the header to ensure it came from the correct server... however it seems Response.Redirect strips the headers from the Response. Does anybody know how i can add the headers back? I've tried: Response.AddHeader("Refere...