HighTechTalks DotNet Forums  

Form data disappears

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Form data disappears in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rajani
 
Posts: n/a

Default Form data disappears - 04-14-2006 , 09:01 PM






Hi friends,

I am designing a signUp form(loginID, pwd,secret question,answer).
I am doing the validations in the function.


function validatedata() as boolean
dim strPwd as string
if strPwd.length<=0 then
errlbl.text="Enter Password"
validatedata=false
exit function
end if

---
end function

Its working and error is displaying. But the form data disappears after this
error message displayed. If there is any error, the other data entered in the
form should remain.
Why is it happening. All are server controls <asp:textbox >....

thanx in advance

Reply With Quote
  #2  
Old   
Albatross Singh
 
Posts: n/a

Default RE: Form data disappears - 04-17-2006 , 04:30 PM






Try AutoPostBack=true for that specific control (s)
Hope this helps
Albatross Singh

"Rajani" wrote:

Quote:
Hi friends,

I am designing a signUp form(loginID, pwd,secret question,answer).
I am doing the validations in the function.


function validatedata() as boolean
dim strPwd as string
if strPwd.length<=0 then
errlbl.text="Enter Password"
validatedata=false
exit function
end if

---
end function

Its working and error is displaying. But the form data disappears after this
error message displayed. If there is any error, the other data entered in the
form should remain.
Why is it happening. All are server controls <asp:textbox >....

thanx in advance

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.