asp.net

ASP.NET Website's BIN directory and references

Imagine the following solution: -Website ABC.com (not Web Application) -BLL (business logic layer in a seperate assembly) -DTO (dto objects in their own assembly) -DAL (data access layer in it's own assembly as well). The BLL has a reference to the DAL. The BLL has a reference to the DTO layer. The Website project references the BLL. ...

ViewState object lost in Master Page Load

I am assigning ViewState["something"] in Page Load of content page and when I try to access the ViewState variable in Master Page Load event handler, the viewstate variable is lost.Can anyone guide me why this is happening and the solution. ...

Cursor through html in VS lags

If I have a decent size asp.net page open in Source view, and hold down the Up key or Down key to scroll through it, it will periodically get "stuck". It will stop on a line for a few microseconds, and you can see the screen flash, like it's trying to catch up with what it's trying to do behind the scenes. In my two-monitor setup, I'm wo...

Google map blank when used with master page

I wrote a google map lookup page. Everthing worked fine until I referenced the page to use a master page. I removed the form tag from the master page as the search button on the map page is a submit button. Everything else on my page appears but the google map div appears with map navigation controls and logo but no map visuals appear. ...

Profiling ASP.NET websites with EQATEC Profiler

I'm searching for a free ASP.NET profiler, and I stumbled upon EQATEC Profiler for .NET, but I can't find any instructions on how to profile ASP.NET projects with it. Please post step-by-step instructions or a link with sufficient info. I'm using Visual Studio 2008 Professional and .NET 3.5. ...

Getting selected value from RadioButtonList

New to ASP.NET(C#)... I have a RadioButtonList on my page that is populated via DataBinding <asp:RadioButtonList ID="rb" runat="server"> </asp:RadioButtonList> <asp:Button Text="Submit" OnClick="submit" runat="server" /> How do I get the value of the radio button that the user selected in my "submit" method? ...

Expose OnSelectedIndexChanged event in CompositeControl

If I have a DropDownList control that makes up part of a CompositeControl how can I expose the SelectedIndexChanged event to the consuming aspx page? Thanks ...

.net Accordian Causing me Problems

I had a bunch of controls that I displayed, hid, enabled and disabled based on actions in the web page. Everything worked until i put them into an accordian. Now I can't get the Javascript to be able to update their state. I have a small example this is the Javascript <script type="text/javascript"> var ctrl = document.getElement...

Does anyone know how to get rid of the jsdebug requests from my .net web service

We have a ajax listprovider for typeahead text fields in our webform site. Every page now requests a listprovider.asmx/jsdebug with no caching parameters etc. How do we turn that off? ...

Will Server.Transfer work across AppDomains/Web Applications?

If you have two applications residing on the same server, can you use Server.Transfer to load a page in a different AppDomain/Application? My guess is no, because Server.Transfer() copies HttpContext.Items, among other things. To copy this data between AppDomains, would cause threading and memory sharing concerns a in a world were threa...

Is there an #IF DEBUG for Asp.net markup?

Can I do something like this in the markup of an asp.net page, based off the "Define DEBUG constant" setting? #IF (DEBUG) THEN <asp:TextBox ID="TextBox1" runat="server">You're in debug mode</asp:TextBox> #END IF ...

Can't set Visible attribute in ASP.NET Panels

I am having trouble with visible attribute of an ASP.NET Panel control. I have a page that calls a database table and returns the results in a datagrid. Requirements If some of the returned values are null I need to hide the image that's next to it. I am using a Panel to determine whether to hide or show the image but am having trou...

How to use jquery form plugin with asp.net ?

in asp.net 2.0 (not mvc), the form's action is to itself. how can I use the forms plugin to send information to server? I need to send data from the form (let's say name, email, comment) and to display the result on the client side. Any ideas? Thanks, Dave ...

Clicking checkbox causes onCheckedChanged to fire twice

I have a GridView with a TemplateField with a checkbox. My goal is to capture the onclick event using autopostback and setting a database flag. My only problem is that the event fire's twice. The first time The Checkbox (In the sender parameter) holds the clicked value so I set it based on the click. The second time the sender parameter ...

Determine which ASP.NET button was clicked using Javascript

What is the best way to determine which ASP.NET button was clicked on a single page using JavaScript? ...

Good pattern or technique for webforms with 100s of fields

At my job, I have to implement web forms for loan applications with sometimes up to a hundred different input fields, and then save the application into the database for later retrieval. The person whom I replaced created a sql table with 100s of columns where each row represents a loan application and there is a column for every field....

Assembly reference error on web site with same signature

I've more than one ASP.NET 2.0 web site on IIS 6 and Windows Server 2003. Each site reference some DLLs: design, logic and so on. Each site is on a different ApplicationPool with default configuration about recycling techniques. Every DLL is strong named (not delayed) and has a version that never changes (2.0.0.0), all DLLs are placed i...

AjaxHelper is not working

I am working on ASP.NET MVC. in order to use AjaxHelper, I inserted two javascript files in the site.master as following. <script src="../../Scripts/MicrosoftMvcAjax.debug.js" type="text/javascript"></script> <script src="../../Scripts/MicrosoftAjax.debug.js" type="text/javascript"></script> then I used AjaxHelper in view pages, but ...

Diagnosing "% Time in Garbage Collection" Problems

I have an ASP.NET 2.0 application that spends an excessive amount of time in garbage collection, over 40%, when load tested on a production grade server (dual quad-core, 4g). I have been trying to isolate the problem but it is a large, complex code base making for slow going. There are no GC.Collect() calls. Which tools, techniques, e...

Stop execution of ASP.NET application

In my Application_Start() method, how can I stop the execution of the ASP.NET application when certain conditions are not met? Throwing an exception doesn't appear to work. ...