|
You have to reset the password field in the postbacks.
Best Regards,
Apurva Kaushal
|
|
|
|
|
thanks for your immediate response..
If possible can you gibe me the sample code to reset the password fields..
Suresh Kumar
|
|
|
|
|
You can set the password field like this:
TextBox1.Attributes.Add("value","kaushal");
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
You can use viewstate to maintain password value.
Basically when page postback occurs password field get reinitialise and lost its value so in page_load event use
viewstate("password")=txtpass.text to maintain password
and use
txtpass.text=viewstate("password")
to again fetch password value from viewstate
I hope it works,
Regards,
Nagraj
|
|
|
|
|
Nagraj Naik wrote: txtpass.text=viewstate("password")
Are you sure you can assign the password value like this (for a textbox having textmode as password).
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
It's nice to see u.
U have solved my lots of problems on forum.
This solution of viewstate is definately working.
Regards,
Nagraj
|
|
|
|
|
Actually man viewstate concept is ok why I asked is because you have given it like this:
Nagraj Naik wrote: txtpass.text=viewstate("password")
Thats why I told that for a textbox of textmode password you have to assign using attributes.add .
Best Regards,
Apurva Kaushal
|
|
|
|
|
First Thank you for ur reply
When i Put the code you gave me.. I t won't fetch the password after selecting the dropdownlist and it shows the password field as empty..
Please... Try to help me more
|
|
|
|
|
Try it like this.[^]
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I just tested this code.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ViewState("pass") = txtPassword.Text
txtPassword.Attributes.Clear()
End Sub
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
If Not (ViewState("pass") = "") Then
txtPassword.Attributes.Clear()
txtPassword.Attributes.Add("value", CType(ViewState("pass"), String))
End If
End Sub
Let me know is it working.
Regards,
Nagraj
|
|
|
|
|
Thanks A lot Nagraj For UR kind and timely help to me..
Its really wroking fine..
|
|
|
|
|
Password fields do not retain info through postbacks.
|
|
|
|
|
hi all,
i am facing problem in Creating Session in External class problem as follows, here i am getting loin name in codebehind class i am passing this value to property for Ex:LoginName this value i have to store in session in side External class called login and i have to verify session value exist or not in method called verify how to dothis help me please............
P.gurukiran
|
|
|
|
|
You didn't write what is the problem. To store value into session call Session["SessionKey"] = myValue, but I'm sure you know this... So what is wrong?
Pilo
|
|
|
|
|
|
hi,
I am creating a rss feed for a blog site. I am able to create the rss(XML file).
I would want to implement paging in the xml file created. say i would like to display only 5 items per page in the rss feed(XML file) instead of the entire 15 items.
How can it be done in ?
Any suggestions plz.
Thanks and regards
Anu
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
RSS feed is just a XML file. You can't implement paging there directly.
You can implement paging in your viewer.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
hi,
Thanks for your response.
How to implement paging in the viewer?Can u help me out plz.
Thanks and regards
Anu
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Search google. There are many many tutorials available on the subject. Or think a little and try to figure it out yourself.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
i want to create Date Time Picker for web application.Please help me..
It is already there for a Windows Application.
Thanks in advance,
Libran
|
|
|
|
|
do u want to create one or use one?
cause there r many date/time pickers ready for use so y to reinvent the wheel?
Best Regards
3ala2
|
|
|
|
|
i want to create for my application. please help me.
|
|
|
|
|
|
Thanks for reply but Sorry, it doen't give me required help.
|
|
|
|
|