asp.net

Looking for a Pattern for Keeping Page Field Values on Returning to the Page

I have, e.g. a listing page with filter inputs, from which the user can navigate to a capture page, where they might spend some time capturing, before returning to the listing page. When they return to the listing page, I would like their previous filter to be be automatically applied again. This is no rocket science problem, so I'm su...

How do I control reloads when using the back button in the browser?

I have an asp.NET application which has a fairly heavy mainpage. The content of this mainpage is only rarely changed, except by actions on that same page. How do I make the browser retrieve the page from cache when the user presses the "Back" button in the browser, instead of contacting the server every single time, forcing it to render...

ASP.NET File uplading:Show Progress to User

I have an ASP.NET page where i want to use a file uploading facility for the user.in ASP.NET ,we have an ASP.NET File upload control.I want the site to show some upload progress back to the user when he uploads the file to the site.IF i use ASP.NET file upload control,It will use the post back and it will not give the user the impression...

Detecting Changes in an ASP.NET Web Site.

The ASP.NET framework does a very good job of detecting when a file has changed and recompiling that file etc. I would like to be able to hook into that update process. Is this at all possible? I might want to do this as part of an initiative to try and version web sites developed as Web Site projects, versus Web Applications, where t...

jQuery, string manipulation : find a tag

After a post with "$.ajax()", I sometimes receive an exception from the server. You can see a part of the returned HTML below: <html> <head> <title>MyMessage</title> <style> /* ... */ </style> </head> <body bgcolor="white"> <span> <H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i...

ASPNet EMail attachment from SQL BLOB

We are storing scheduled email information in SQL Server 2005. Included in the email information are 0 - 3 attachments of varying filetype. I have a VB.net Windows service that runs 'x' number of minutes, populates a dataset with the email info from SQL Server, builds the emails, and sends them via ASPNet EMail. Trying to build and add ...

Which one is better when we want to redirect to a new page in asp.net : using a link button and then Response.Redirect OR using an html <a> link?

hi Which one is better when we want to redirect to a new page in asp.net : using a link button and then Response.Redirect OR using an html link? ...

ASP.net ListView Access controls in ItemUpdating event

I'm missing something here... I need to access the values of the controls on the item that is leaving editmode, thus firing ItemUpdating. I found how to get the key value so I know which record in the database I have to update. The problem is that I can't seem to access the values of the controls on the editing row. the EditTemplate c...

How does hanging code in aspx files of ASP.NET MVC application execute?

This question might sound weird but I am finding it really difficult to digest a typical aspx page in ASP.NET MVC application. For example: <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server"> About U...

When Debugging an ASP.NET Application, How to End Debug Session when Firefox Closes?

Still looking for solution please help I do agree with all of you but the thing is that happened with ie cant be with any other browser I am looking for some settings/option so that it will kill the process as soon as the firefox window is closed origional message Hi all, I am going to set Mozila fire fox as my default web browser to...

Server.Transferrequest() and getting the current URL

Say in my 'Page_init()' of "a.aspx" i just have 'server.transferrequest("b.aspx"). This works great, displays the content for "b.aspx" and the browserurl still stays at "a.aspx". Happy days. However does anyone know how to see this url from my "b.aspx" (the resulting page)?. The usual request.rawurl and request.url.absoluteuri both r...

How to dynamically show/hide a style sheet inside a content control?

I have a master page with a contentplaceholder control inside the head tag so that I can easily add any contents to the head tag (like link tags, styles, scripts .. etc) from the content pages. Now, on one of the content pages, I have a style sheet (inline, ie. inside a style tag, not linked with a link tag) that I want to show/hide dep...

MOSS vs. traditional ASP.NET

I am in process of evaluating MOSS (SharePoint) and traditional ASP.NET for my client's site. The site will be available to client's partners over the internet. I'm interested in differences between these two approaches from following perspectives: Development perspective. How does development differs? What are pros and cons of both a...

cannot change GridView Caption

It seems to be impossible to change GridView .Caption after it has been set once. Once I set caption and then change it within postbacks, in the code all seem to be ok, on page PreRender, GridView PreRender and wherever I have no idea what to do - on page (and GridView also) PreRender event while debugging the .Caption is proper, b...

Deployment of asp.net 3.5 website: Requirements

Hi , If i create website in asp.net 3.5 then does it require to have asp.net 2.0 framework in deployment enviorment? Does website deployment project automatically include prerequisite for deployment or we should initially required to install all prerequisite at deployment enviounment before installing website. ...

Div tags rendering as tables in IE

I have an ASP.NET 1.1 application being used by many clients. Some of these clients have recently started to see problems with the HTML rendering in IE only. All div tags are now rendering as tables. We also have one development machine running IE 7 that is showing the same problem in one scenario: when the application is installed on...

Text box validation to enter value only more than zero

I need a asp.net text box validation to enter value which is above zero; Not less than zero or zero ...

How to check whether EnableViewStateMac is set at runtime?

In ASP.NET, the ViewState is typically protected from tampering on the client with a signature generated by the machine secret on the server. But this protection can be easily turned off with: <%@ Page ... EnableViewStateMac="false" %> I'm writing an ASP.NET control that may store security-sensitive information (not secret... but it ...

Choose button while pressing enter button

I have a submit button and back button in my asp.net webform. I need to use the submit button when pressing enter, but it's going to the back button instead. Please help... ...

Using OpenID for website Authentication

I'd like to implement OpenID in a new application using ASP.NET 2.0 and SQL Server 2005. I chosen Twitter, Facebook and Google as potential OpenID providers. I've found the Twitter implementation in .NET and I was studying Google's OpenID implementation, but I want to make sure that my design is (mostly!) flawless. Is my database sch...