C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

Grid


Posted Date: 31 Dec 2008      Posted By: Muraleedharan.k      Member Level: Silver     Points: 1   Responses: 2



In my aspx page i have to use a grid to display the details.The grid includes heading such as UserName,Password,Address etc.When i am editing a particular row the contents of the corresponding row should be displayed in corresponding textboxes in my page.But here the content of password field shouldn't be displayed in password textbox.What is the problem?Plz give me a solution for that.




Responses

Author: Sujit Kumar    31 Dec 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

I think you have set TextMode="Password" of password textbox.

if yes then use

txtPassword.Attributes.Add("value", txtPassword.Text);

to keep password text in your textbox.



Author: Shruthi    31 Dec 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 3

asign password to a viewstate
txtpwd.text=viestate["Password"]

and then wile editing the record u asign that viewsate to that cell
txtpwd.text = viestate["Password"]

actually wat is happening when the page loads the pwd text will be cleared for security purpose so for that u have to use viestate or hidden fields try like this u will get



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Tab control
Previous : IS THERE ANY PROPERTY IF USERID AND PASSWORD DOES NOT MATCH?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use