asp.net-2.0

Sort the asp.net gridview on a bound column in the aspx page

I need to sort the rows in the asp:gridView in the aspx page on a field named LastName. I bind the grid using a datatable in C#. I do not use the datasource in the aspx file. Giving the SortExpression in the grid doesn't work. Please can anyone direct me how to achieve this? I've done this till now but it doesnt seem to sort ...

what is webpage advertising impression program

i want to build it in asp.net 2.0 what actually advertising impression program means? what is this term means like geography, demographics, setting up a rate card. how can i easily build it? any reference site for example any pdf for help any help will be welcomed ...

ASP.NET site with multiple DLLs

A client has a website, needs a few extra pages, but does not have the source code for the original site. My first thought is to create a new solution with the new pages, compile them to create as a DLL and then copy the pages and the new DLL to the server. I'm not sure if this will work for the simple reason that I've never had to do i...

ASP.NET Repeater Control - Referencing Individual Elements

I have a repeater that displays a custom user control on a form multiple times as follows: <asp:Repeater runat="server" ID="MyRepeater" ondatabinding="MyRepeater_DataBinding" > <ItemTemplate> <a name='<%# Eval("[\"Key\"]") %>' style="display: none;"></a> <uc1:MyControl ID="Control1" runat="server" ...

Composite control creates double ids asp.net 2.0

Hi, the below Default.aspx page(code behind is given below) contains a composite control. If we assign an Id to this composite control,while page rendering it creates multiple "ID" attribute for its child controls like "". Removing obj.ID = "MyCompositeControl" creates a single id for all child controls, but we can't set our own name. Co...

how to get length of time of visitor in asp.net

I am using asp.net 2.0. I have 5 web pages in my project. I want to calculate the length of time for which visitor view the page. ...

How to implement an "Auto Save" or "Save Draft" feature in ASP.NET?

I have a registration form in ASP.NET 2.0. I want to save my registration form fields either by clicking on submit button or they should be saved every five seconds. For example I have three fields in my registration page: UID PWD Name The user has entered UID and PWD and whilst he is entering Name the previous values should...

JavaScript Event Handler in ASP.NET

I have the following iframe control (intended to be a facebook like button): <iframe id="likeButton" src="http://www.facebook.com/plugins/like.php?href=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" onprerender="setupLink()" </iframe> I have the java...

asp.net webcontrol caching

I'm writing a webcontrol in asp.net which has to go and fetch information from an API. It's not critical to be up-to-date, and retrieving the information is quite slow, so I'd rather cache the information and update it every 5 minutes. It strikes me as potentially risky to use the Context.Cache as potentially someone could use the same ...

What is the difference between asp and asp.net?

Hi, I'm wondering what is the difference between asp and asp.net? ...

operation time out error

operation time out error while sending files as attachment with size more than 2mb with e-mail(using SMTP client) in asp.net2.0 ...

Error on production site but in local system

I have deployed website on production server, now one error is occurred. Which is not coming in the test site. I am clueless what is going wrong because the error I am getting on production is custom. Which has no description about the error. Is there any way I can check on production server that on which function error is occurring? It...

IIS 6/7 Threading - Long running aspx page keeps other aspx pages from loading

I wrote a test page that does a bunch of busy work in a method called at page load. This process as I have it now takes around 12 seconds. If I try to load another page while the first long running page is loading, this second page doing nothing except writing out a hello world, it doesn't load until the first long running page is finis...

ASP.NET WebForms Binding in Markup versus Overriding OnItemDataBound

There are two primary methods of getting data onto a page when it comes to associating that data to markup using some kind of Repeater; performing data binding in the markup (DataBinder.Eval, etc.) and overriding the OnItemDataBound event, finding the control on the page, and setting the value on the control in the code behind. I have my...

How do I make ProcMon show activity by the ASP.NET impersonated account?

I'm trying to debug a file permission problem. I'm running ASP.NET 2.0 on Windows 2003 32-bit standard edition. ASP.NET 2.0 is configured to impersonate my web sites anonymous accounts. In my machine.config file (in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG) I have: <identity impersonate="true" /> I know that ASP.NET reque...

ASP.NET localization of multi-value messages

If I have a single label on my ASP.NET (2.0) page, and I want to store an error message in it; and if I do that in code by making multiple IF statements, like: if (...) value = "..." else value = "......" etc how would I localize this, so that I don't have to write: if (...) { switch(langCase) { case "en-US": ...

Java Timer use on an ASP.NET 2.0 page with Master File

I have found out that sometimes the simplest things you want to do are almost impossible to fund an answer for. I have an ASPX page in ASP.NET V2 programmed in Visual Studio 2005. The ASPX page has a behind code ASXP.VB page and is tied to a .master file. I have two buttons [Button_Process] that will eventually call a program that will e...

Is there any way to skin an event handler?

I have a shared code i want to run on the data binding of EVERY gridview in website. conveniently enough i placed the code itself in a base class in App_Code that all my pages inherits from, and i link to that function in every page i place a grid view in the databind event. I am looking to make it one step further and place that linkag...

What is the best way to parameterize a LIKE query?

I'm trying to implement a simple search, using LIKE in my SQL statement: Using cmd As New OracleCommand cmd.Connection = conn cmd.CommandType = CommandType.Text cmd.CommandText = "select * from TABLE where FIELD like '%:text%'" cmd.Parameters.AddWithValue("text", searchValue) ...

Image tagging like movie ticket booking website

I am using aso.net and C#. I have to tag a image by getting the data from the database. Take an example, like in a online movie hall ticket booking website. If we book any seat and the data go into the database. Now next time if anyone open the website, those seat will be marked as red so that we can't select them [data is coming from t...