Click here to Skip to main content
15,920,801 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to upload an document file? Pin
Britney S. Morales16-Nov-06 2:50
Britney S. Morales16-Nov-06 2:50 
GeneralRe: how to upload an document file? Pin
Tal Kain16-Nov-06 15:07
Tal Kain16-Nov-06 15:07 
GeneralRe: how to upload an document file? Pin
monuSaini16-Nov-06 18:28
monuSaini16-Nov-06 18:28 
GeneralRe: how to upload an document file? Pin
monuSaini16-Nov-06 18:24
monuSaini16-Nov-06 18:24 
GeneralRe: how to upload an document file? Pin
monuSaini16-Nov-06 18:30
monuSaini16-Nov-06 18:30 
QuestionASP pages with ASP.Net Pin
Sun Rays16-Nov-06 0:39
Sun Rays16-Nov-06 0:39 
QuestionHow to clear data from All textbox in a form Pin
dj.rock16-Nov-06 0:38
dj.rock16-Nov-06 0:38 
AnswerRe: How to clear data from All textbox in a form Pin
l0kke16-Nov-06 1:16
l0kke16-Nov-06 1:16 
I'm not sure, but I think you should play around with viewstate. You can set EnableViewState property of your textboxes to false, or you can set this property to be false for whole page, if you don't need viewstate at all. Or you can override LoadViewState or SaveViewState methods of your Page class. Or you can simply go through all controls and if a control is type of TextBox set its text to ""

<br />
foreach(System.Web.UI.Control control in Page.Controls)<br />
{<br />
	SetTextBoxesText(control);<br />
}<br />
<br />
public void SetTextBoxesText(System.Web.UI.Control control)<br />
{<br />
	if (control.GetType() == "System.Web.UI.WebControls.TextBox")<br />
	{<br />
		((System.Web.UI.WebControls.TextBox)control).Text = "";<br />
	}<br />
	foreach (System.Web.UI.Control childControl in control.Controls)<br />
	{<br />
		SetTextBoxesText(childControl);<br />
	}<br />
}


Pilo
GeneralRe: How to clear data from All textbox in a form Pin
dj.rock16-Nov-06 1:19
dj.rock16-Nov-06 1:19 
QuestionSystem.IO.IOException: The device is not ready. [modified] Pin
d_wang15-Nov-06 23:28
d_wang15-Nov-06 23:28 
AnswerRe: System.IO.IOException: The device is not ready. Pin
l0kke15-Nov-06 23:32
l0kke15-Nov-06 23:32 
QuestionPassing Values between 2 forms Pin
just3ala215-Nov-06 23:23
just3ala215-Nov-06 23:23 
AnswerRe: Passing Values between 2 forms Pin
Deepak the Cool15-Nov-06 23:35
Deepak the Cool15-Nov-06 23:35 
GeneralRe: Passing Values between 2 forms Pin
just3ala215-Nov-06 23:52
just3ala215-Nov-06 23:52 
AnswerRe: Passing Values between 2 forms Pin
l0kke15-Nov-06 23:50
l0kke15-Nov-06 23:50 
GeneralRe: Passing Values between 2 forms Pin
just3ala215-Nov-06 23:58
just3ala215-Nov-06 23:58 
GeneralRe: Passing Values between 2 forms Pin
l0kke16-Nov-06 0:50
l0kke16-Nov-06 0:50 
GeneralRe: Passing Values between 2 forms Pin
just3ala216-Nov-06 2:36
just3ala216-Nov-06 2:36 
GeneralRe: Passing Values between 2 forms Pin
l0kke17-Nov-06 0:51
l0kke17-Nov-06 0:51 
AnswerRe: Passing Values between 2 forms Pin
Tamimi - Code16-Nov-06 0:01
Tamimi - Code16-Nov-06 0:01 
QuestionHow to make child page will auto refresh ? Pin
cheeken2u15-Nov-06 23:10
cheeken2u15-Nov-06 23:10 
AnswerRe: How to make child page will auto refresh ? Pin
Imran Khan Pathan15-Nov-06 23:23
Imran Khan Pathan15-Nov-06 23:23 
GeneralRe: How to make child page will auto refresh ? Pin
cheeken2u15-Nov-06 23:30
cheeken2u15-Nov-06 23:30 
GeneralRe: How to make child page will auto refresh ? Pin
Imran Khan Pathan15-Nov-06 23:49
Imran Khan Pathan15-Nov-06 23:49 
AnswerRe: How to make child page will auto refresh ? Pin
Deepak the Cool15-Nov-06 23:23
Deepak the Cool15-Nov-06 23:23 

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.