asp.net

Max limit for a single form field?

I am running into a randomly occuring issue, and it looks like either there is a bug in the third party control we are using or the size of a form field is limited. I've seen there is a limit in classic asp http://support.microsoft.com/default.aspx?scid=kb;EN;q273482 but is there a limit in .net? I believe if we reached the max limit se...

asp.net client/browser url

I'm wondering how I can get the url from the browser in asp.net. I have a page that I use globalization/localization for and I am redirecting (via server not code) from www.spanishversion.com to www.englishversion.com but the url is masked to still say www.spanishversion.com. I want to get what the browser's url is but when I try thing...

How to disable Response.Buffer

this seems so silly - i must be missing something obvious. I have the following code (just as a test): <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <script runat="server"> void page_load(object o, EventArgs e) { Re...

Free Ajax Framework for ASP.Net Easy to use and code

I would like to know is there any Free Ajax Framework other than AjaxPro and Microsoft Ajax Framework for ASP.Net 2.0. The feature that I am looking for is ease of use as provided by Microsoft Ajax Framework and speed as provided by AjaxPro. ...

ASP.NET TreeView javascript before postback

Hi, I'm trying to code what I think is a fairly routine AJAX pattern using TreeViews and UpdatePanels. My situation is this: I have a TreeView within an UpdatePanel. I have a Literal within another UpdatePanel. When the user clicks on a node within the TreeView, the contents of the Literal are updated. Now, since the whole thing is asy...

Castle Windsor Are There Any Downsides?

I have been looking into the castle project and specifically windsor. I have been so impressed with what is possible with this technology and the benefits of having a such a loosely coupled system are definitely apparent. The only thing i am unsure of is if using this method has any downsides, specifically in asp.net?? for example perfor...

How to post with update panel and re-rout its response data

I implemented a save-draft trick using an update panel whereby I handle the updatepanel's asynch postback on the server side and then to avoid resending the same html data I throw an exception with the current datetime as message and then capture it on the client side where i do some transformation and html injection to let the user kno...

How to cast object from (object sender, ListViewItemEventArgs e)

I am using the ListView Control with the following datasource List<MyObject> On my listview control i have an OnItemDataBound My question is how do get the current value of MyObject. Ie myObj[5].FirstName protected void ItemsListViewDataBound(object sender, ListViewItemEventArgs e) { // I want to do some kind of a cast here } ...

Master Pages and Postback in ASP.NET

How can we avoid Master Page from posting back the whole page? ...

How to execute schedular for data stored in .config file?

Hi, In my application data is stored in a .config file,(in XML format). User is able to set date on which he wants mail (like reminder through mail). So there should be a scheduler which will execute daily to send mails on target date to users. As there is no database interaction how is it possible to run scheduler? I am totally blank ...

Asp.NET ListView Data Control Dynamically Databind

I am trying to implement a ListView data control for displaying and editing lookup table/ application level variables. There are multiple entity classes which can be bound to the ListView, so the ItemTemplate needs to be dynamically bound to the selected entity object. For example i have: AddressType { AddressTypeId, AddressTypeDescri...

Null literal issue

Hi Guys, I have a repeater that should show a bound field value only if it exists. Having read this post I decided to do it by using a literal within my repeater and using the OnItemDatabound trigger to populate my literal but my literal doesn't seem to be accessible from the c# code behind and I don't understand why! Heres the aspx pa...

Why won't VS 2008 SP1 let me edit global.asax?

Normally I create web application projects and use code-behind, but I have a requirement to create an small throwaway demo app using code-inline. I added a global.asax file to the app, but for some odd reason, Visual Studio 2008 SP1 won't let me edit any of the code between the script tags i.e. add code to the event handlers such as App...

What is the best solution to do Reporting on Object data for .NET ?

Hi, Our projects are using objects as the data source to reports. Our business layer is returning single objects or IEnumerable. Our reports (quite complex) need to display value-type properties of the object, and its related objects. Typical case would be, from a List, display a master report with category data, then a subreport with ...

Expanding a node in ASP.Net TreeView through XML Attribute

I have a ASP.Net TreeView control that I am binding to an XML data source. I'm wanting to be able to control which nodes are expanded and which ones are collapsed in the XML definition file. The Expanded='' doesn't work for me though. In the following simple example, I want Node 2 to be fully expanded. ASP Page... <asp:XmlDataSource ID...

How to access html form input from asp.net code behind

I have a basic HTML form that gets inserted into a server side div tag based on how many records exist in the database. This HTML form comes out just fine, and everything looks good. But on my action page I cannot seem to access the input elements from the code behind. I have tried using the Request scope but have come up empty on that a...

Can't debug - "The breakpoint will not currently be hit. No symbols have been loaded for this document"

Hi- I'm getting the error in the subject line. I'm running vs2k8 on server 2k3sp2. I've tried deleting the pdbs, cache directories, verifying that debugging is set up on the specific page. The interesting thing is other pages debug just fine. Just when I go to this one page. Must be a configuration issue but the page directive looks like...

ASP.NET GridView RowIndex As CommandArgument

How can you access and display the row index of a gridview item as the command argument in a buttonfield column button? <gridview> <Columns> <asp:ButtonField ButtonType="Button" CommandName="Edit" Text="Edit" Visible="True" CommandArgument=" ? ? ? " /> </Columns> </gridview> ...

Raising javascript events in ASP.NET user control

Is it possible to raise a "custom event" in an ASP.NET user control and to subscribe to the event in the calling page? This way I can have any containing page react to changes in a user control without having to do a partial or full postback. ...

Why asynchronous ASHX generated images doesn't always work in IE6?

If you use an WebHandler inheriting IHttpAsyncHandler, you shouldn't notice that under undetermined specific circumstances the browser MS IE6 won't display it, the request will never finish. Is there a fix for it? ...