.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

clear all textboxes

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :ASP.Net
Hi I have a webform with 20+ Textboxes.. Is there away (a method) to search in the webform and clear all textboxes.. instead of doing it one by one.. txb_a.Text = ""; txb_b.Text = "";  ...etc.. 20 times.. Thanks 

View Complete Post

More Related Resource Links

Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

add columns with textboxes in gridview using C#

'm working on a shopping cart in a website and I have my items(which have been added to the cart) in an arraylist. And using these values I've read the rest of the values from the db and and have populated on the gridview successfully.

Adding Dynamic Rows in GridView with TextBoxes

I decided to write this article because this has been asked so many times before at the forums(http://forums.asp.net) . Basically, this example shows on how to generate a Row in GridView with TextBoxes when clicking a Button that is residing inside a GridView Footer.

Toolbox: Synchronize Files, Rich Textboxes, and More


Compare files and folders, create demo and support videos, add rich textboxes in your web apps, and more.

Scott Mitchell

MSDN Magazine November 2006

How to set session timeout and clear session in asp.net C# ? And kill session when close the web app


hi ,

How to set session timeout and clear session in web.config and login.aspx  ? And when we close the web application , the session must be cleared ?

I have use session.abandon as per below but is not working . Pls advise .


        protected void btnLogout_Click(object sender, EventArgs e)



i need clear idea and explanation about view state


can any one please explaine me about view state property, i need the basic thing, what is it actually, and why we use, wthat is the use of it. and etc etc plsssssssssssssss

Clear Dropdown Value


I have cascading dropdown 3 levels deep. I am using the owssvr.dll to pre-filter the list. So the when a user changes the selection on the first level the second and third level need to be reset (re-filtered).


I was able to accomplish this on the second level XPathNavigator and the following code:

public void CTICategory_Changed(object sender, XmlEventArgs e)
 XPathNavigator root = MainDataSource.CreateNavigator();    

      // Get the value for the selected Category
      string CTICategory = root.SelectSingleNode("/my:myFields/my:CTICategory", NamespaceManager).Value;
      // Clear the last selected value in the Type drop-down list box
      root.SelectSingleNode("/my:myFields/my:CTIType", NamespaceManager).SetValue("");

      // Retrieve the data connection bound to the CTI Type drop-down list box
      FileQueryConnection con = (FileQueryConnection)DataConnections["CTIType"];

      // Change the location of the data connection to point the XML file
      // returned by the owssvr.dll with a filter on Category
      con.FileLocation = @"http://scmoss06/sites/EventTracker/_vti_bin/owssvr.dll"
      + "?Cmd=Display&List=%7BA0690852%2DCD7B%2D430A%2DB07B%2D9DBF56371E31%7D"
      + "&XMLDATA=TRUE&noredirect=true&a

Adding table to a page, but the format lost when I use clear border



I added a table to a page, by default, the table layout is the light border. So, I add my content and the vertical align seems to set to the top. But when I changed it to clear border, the content of the table will set vertical align to center. Is there a way to change this back to top align but with the clear border. I don't think I can do this by what is available in the ribbon. Please advice.

How to clear cache


We have an ASP.NET-based print tool that will create a printable version of a webpage (as a PNG, I believe). The URL is something like:


which is displaying an older version of the webpage.

The URL to just the webpage displays the current version:


Observations so far:

  • I've deleted temporary Internet files on clients, which had no effect.
  • The behaviour is the same on different clients, which suggests a server issue.
  • I've requested that the temporary ASP.NET files are deleted from:
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\mysite_tools_printfromweb
    (It's a customer's web server. I've checked the version of ASP.NET associated with the tool.)

So, my questions are:

Am I right in thinking this is probably a caching issue, and are there any other locations and/or settings I should be looking at?

With thanks.

I like to clear the IE browser Pagesetup--> Header and footer using 1.1 Dotnet framework


Hai all,

I like to clear the IE Pagesetup--> header and footer using Asp.net 1.1 , I have tried in 2.0 Dotnet it works fine it is not working in 1.1 and its urgent too

this is the code i tried ...........

 public void IESetupFooter()
        string strKey = "Software\\Microsoft\\Internet Explorer\\PageSetup";
        bool bolWritable = true;
        string strName = "footer";

Clear Output Cache


I have set the output cache for 5 pages(5 minutes)

I want to clear  all these pages from cache on some nutton click 

Moving Datarow from datagridview to textboxes

Hi , I need to know how to copy a datarow from datagridview to subsequent textboxes.I have three textboxes and three fields in datagridview .

Render X textboxes + Validation?

Hey there, How can I render X amount of textboxes and still have all of them to require a value at validation? I dont know the variable X.. so it could be 1, it could 50.

Script components on 64bit environments - Is there a clear answer for that?

Hello all,  I'm having an issue with a package that contains a script component. The package was originally designed in SSIS 2005, was migrated to 2008 and not to a 2008 64 bit machine. We're able to run the package in VS/32 bit mode, but it fails when we deploy the package. I was able to find a few articles out there, but not clear answer for this issue. Is it possible to run packages with scripts in 64 bit machines? The script is pretty simple, it only reads configuration from the machine.config file. Below is the error message I'm getting:     Executed as user: CITRITE\svcacct_qasqlapps. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.2531.0 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  4:13:22 PM  Error: 2010-08-30 16:13:22.70     Code: 0x00000001     Source: Script Task      Description: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at ScriptTask_4b9f5fd6bf8e4c5e99a637abdc7bd178.vbproj.ScriptMain.Main()     --- End of inner exception stack trace ---     at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&

Reinitialize transaction replication clear the subcriber data and replicating again

Hi all, I add new table in to mu publisher database and reinitialize the subscriber.And i select the option to create new snapshot and marked as reinitialize.When it starts the reinitializing it clear all data from subscriber and coping again.Am i missing any thing here to add new table into existing replication ? Regards, Theesh

how to retain data in dynamic textboxes

Hello there, more than 24 hours of googling up by now but i hv'nt yet found the commendable solution of my problem. Actually what i searching is ihave a bunch of textboxes created dynamically on the basis of no. of rows in a sql table i put in some data in these textboxes and inserting in other table and here comes the actual problem i have to create the dynamic controls on every postbacks otherwise controls does disappear. other thing i can do is recreate the table on insert button click but in that way i am able to insert the data in the table and recreate the controls but this way text in dynamic textboxes does not remain there. any help in this context would be highly appreciable. thanks in advance  

Help Balloons for Textboxes

Hi everyone,  quick question.  Does anyone know of any possible ajax enabled help ballons for text boxes that I can download?  Kind of similar to the effect that the 'ValidatorCallout' tool has.Thanks
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend