asp.net

Addressing scalability ,performance in a .net web application

Hi, I'm working on a .net portal which would be having lots of concurrent users. so scalability,performance need to be addressed in the design and architecture. We plan to use load balancing in the application. Keeping this in mind,what would be the best way of communicating between IIS web server(hosting aspx,aspx.cs files) and applic...

Failed to load viewstate. Happening only occassionally. Tough to recreate

Details of Error are given below. This error happens only occasionally / rarely / sometimes and there aren't any steps to reproduce it. How can I know which Control is throwing this Viewstate error??? Error Message: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was use...

Force session timeout in an ASP.Net AJAX application

I have a large 1 page ASP.Net application. Much of this application has been entirely rewritten using .Net 3.5 from a previous version that was using .Net 2.0. As a result, the designers of this revision decided to put the entire page inside of an update panel (sigh). It seems that the only good part about this update panel is that it...

Xml data in an ASP.Net Dynamic Data Site

I have this problem where I can't get my dynamic data web app to save xml data into a text field. Maybe this is a common problem but searching the web doesn't give me any answers... So heres the steps to recreate my problem: I have database with a table that has a column of type "ntext" (Sql Server 2005). I create a new Dynamic Data E...

where is the Sys.WebForms namespace?

I see it in the solution I am looking for, but if I try to use it I get: CS0103: The name 'Sys' does not exist in the current context I have VS 2008 SP1 installed, I am probably missing something that is pretty obvious? ...

New to Unit Testing

I would like to know how to implement unit testing in an existing (quite large) application using visual studio 2008 (.net 2.0). I understand that developing unit tests for the existing/legacy code is not realistic but I would like to have tests for code moving forward. I have found plenty of examples on how to write tests for code but...

jQuery tablesorter extension problem with multiple clicks?

Ok, I have a table, made by a GridView, and attached a tablesorter to it, it works just fine. Then I put it inside an updatepanel, and added the code to rebind it on a postback, here is my script: function loadEvents() { $("table[id$='gv']").tablesorter(); } $(document).ready(function() { loadEvents(); }); function reBind() { if (S...

ASP.NET AJAX issues when using UserControls

Hi Stackoverflowers I Have a UserControl called TenantList.ascx which contains a slightly modified GridView from DevExpress (Web.ASPxGridView). This control makes Callbacks without causing a postback which is exactly what I need. The specific event I need to react on is CustomButtonClicked. I have made my on OnCustomButtonClicked event ...

How to redistribute aspnet_regsql.exe?

I am writing a setup program for my ASP.NET web site, and I need to incorporate the aspnet_regsql tool for registering/unregistering the membership/roles tables into my database. If I bundle this with my setup, what are all the dependent files I need to include to ensure it all works? Or is it better to not bundle this, but locate the ...

Databinding Generic Collection vs Datatable,

How costly is databinding a collection of objects to a grid (telerik gridview to be specific) vs a regular datatable, I wouldnt have thought it was an issue but I am doing the databinding via a webservice AJAX callback and if the grid has more than 20 rows it starts to take a noticable time to bind, ...

Dropdown list

I want people to choose from a dropdown list,and their choice takes them to a page they have chosen. ...

Should business logic layer implement authorization & authentication?

I have a business logic layer (the "repository") which is exposed as a set of .NET interfaces backed by swappable concrete implementations. Originally I had this business layer implement authentication and authorization (authn/authz), meaning I had interfaces such as IUserIdentity and IUserRole, and all methods that accessed sensitive d...

Adding controls in runtime problem ASP.Net

I put a link on a page and onclick i wrote some code to add some controls after clicking, DropDownList newDropdownlist = new DropDownList(); panel.Controls.Add(newDropdownlist); CheckBox newChkbox = new CheckBox(); panel.Controls.Add(newChkbox); TextBox txt = new TextBox(); txt.ID = "txtPhoneValue"; panel.Con...

Using Microsoft Search Server 2008 with asp.net/vb.net

I'm installing Microsoft Search Server 2008 express with a view to indexing some content for an intranet application. Having not used Search Server before, i am looking at ways of my asp.net app (.net 3.5) querying the search server. I'm just starting to look into Search Community Toolkit to see if it is relevant to what i want to achi...

Working with Gridviews and File Transfers

I need to generate a Excel sheet during RunTime on a ItemCommand_click event in a GridView and transfer the file and then re-bind the GridView with the status change. As we redirect the response with File transfer , How could I update the GridView? ...

Object reference not set to an instance when modifying an existing cookie in code behind

In the line "Response.Cookies...", I get an object reference not set to an instance of an object. Is there a way to fix this and use a timer in my ASPX code behind? protected void Page_Load(object sender, EventArgs e) { object o = new object(); TimerCallback timercallback = new TimerCallback(StartCallback); System.Threadi...

How to do a ASP.NET MVC Ajax form post with multipart/form-data ?

I am working on a ASP.NET MVC web site which has a form that allows for the upload of files using the multipart/form data enctype option on the form tag like so <form enctype="multipart/form-data" method="post" action='<%= Url.Action("Post","Entries",new {id=ViewData.Model.MemberDetermination.DeterminationMemberID}) %>'> How would I ...

Sending asynchronous request on clicking a sharepoint web part button control

Hi, I am new to this whole sharepoint and aspx programming. I have developed a sharepoint web part that has a button control. The onclick event is mapped to a method in my web part code. When I click the button the whole page reloads and the web part is rendered again. Is there a way to prevent this reloading of the page? Is there a way...

Getting Started with ASP.NET MVC

Can anyone recommend any documentation, article, or blog to get started with ASP.NET MVC? ...

Can I skip nodes in ASP.NET Menu Control?

I have a web.sitemap like this: <siteMapNode url="~/Default.aspx" title="Home" description="" > <siteMapNode title="Node 1" description=""> <siteMapNode url="" title="Node 1-1" description="" /> <siteMapNode url="" title="Node 1-2" description="" /> </siteMapNode> <siteMapNode title="Node 2" description=""> ...