Click here to Skip to main content
15,905,427 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: confusion regarding window.open() Pin
Sylvester george21-Feb-07 18:35
Sylvester george21-Feb-07 18:35 
QuestionClear TextBoxes in a table Pin
gauthee21-Feb-07 18:01
gauthee21-Feb-07 18:01 
AnswerRe: Clear TextBoxes in a table Pin
Imran Khan Pathan21-Feb-07 18:11
Imran Khan Pathan21-Feb-07 18:11 
GeneralRe: Clear TextBoxes in a table Pin
gauthee21-Feb-07 19:05
gauthee21-Feb-07 19:05 
GeneralRe: Clear TextBoxes in a table Pin
Imran Khan Pathan21-Feb-07 19:26
Imran Khan Pathan21-Feb-07 19:26 
GeneralRe: Clear TextBoxes in a table Pin
gauthee21-Feb-07 19:52
gauthee21-Feb-07 19:52 
GeneralRe: Clear TextBoxes in a table Pin
Tuwing.Sabado21-Feb-07 19:57
Tuwing.Sabado21-Feb-07 19:57 
AnswerRe: Clear TextBoxes in a table Pin
Vsree21-Feb-07 20:32
Vsree21-Feb-07 20:32 
hi
If you know the ID of the HtmlTable where the textboxes are available you can do it as
<br />
<br />
HtmlForm form = (HtmlForm)Page.FindControl("Form1");<br />
		//	foreach(HtmlTable tbl in form.Controls)<br />
			HtmlTable tbl = (HtmlTable)form.FindControl("Table2");<br />
<br />
				foreach(HtmlTableRow row in tbl.Rows)<br />
{<br />
					foreach(HtmlTableCell cell in row.Cells)<br />
{<br />
						foreach(Control ctrl in cell.Controls)<br />
{<br />
							if(ctrl is TextBox)<br />
{<br />
								((TextBox)ctrl).Text = "";<br />
}<br />
}<br />
}<br />
}<br />
<br />

This will work..But you need to know the ID of the table which contains the Textbox controls to be cleared Smile | :)
GeneralRe: Clear TextBoxes in a table Pin
gauthee21-Feb-07 21:30
gauthee21-Feb-07 21:30 
GeneralRe: Clear TextBoxes in a table Pin
Sylvester george21-Feb-07 21:49
Sylvester george21-Feb-07 21:49 
GeneralRe: Clear TextBoxes in a table Pin
Vsree21-Feb-07 23:49
Vsree21-Feb-07 23:49 
QuestionASP.NET Authentication Pin
Ashokaprabhu21-Feb-07 18:01
Ashokaprabhu21-Feb-07 18:01 
QuestionProblem in crystal report Pin
slSoftware21-Feb-07 16:53
slSoftware21-Feb-07 16:53 
QuestionVB/ASP.Net 2005 Pin
Kusal21-Feb-07 16:35
Kusal21-Feb-07 16:35 
AnswerRe: VB/ASP.Net 2005 Pin
sathesh pandian21-Feb-07 19:24
sathesh pandian21-Feb-07 19:24 
GeneralRe: VB/ASP.Net 2005 Pin
Kusal22-Feb-07 20:58
Kusal22-Feb-07 20:58 
AnswerRe: VB/ASP.Net 2005 Pin
Tuwing.Sabado21-Feb-07 21:09
Tuwing.Sabado21-Feb-07 21:09 
GeneralRe: VB/ASP.Net 2005 Pin
Kusal22-Feb-07 20:57
Kusal22-Feb-07 20:57 
QuestionASP.net Configuration tool Pin
Planker21-Feb-07 14:58
Planker21-Feb-07 14:58 
QuestionHOW TO MAKE PAGE USING MENU,TREEVIEW AND GRIDVIEW CONTROL PLEASE HELP, PLEASE HELP Pin
Saiseva21-Feb-07 12:13
Saiseva21-Feb-07 12:13 
AnswerRe: HOW TO MAKE PAGE USING MENU,TREEVIEW AND GRIDVIEW CONTROL PLEASE HELP, PLEASE HELP Pin
Christian Graus21-Feb-07 16:06
protectorChristian Graus21-Feb-07 16:06 
AnswerRe: HOW TO MAKE PAGE USING MENU,TREEVIEW AND GRIDVIEW CONTROL PLEASE HELP, PLEASE HELP Pin
asithangae21-Feb-07 17:40
asithangae21-Feb-07 17:40 
Questionquestion in building website Pin
ahmed_fci200621-Feb-07 11:17
ahmed_fci200621-Feb-07 11:17 
AnswerRe: question in building website Pin
Tuwing.Sabado21-Feb-07 21:20
Tuwing.Sabado21-Feb-07 21:20 
Questionpopup Pin
netJP12L21-Feb-07 9:03
netJP12L21-Feb-07 9:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.