Password pass one page to another page

Posted by Naidulaxmi under ASP.NET on 11/22/2012 | Points: 10 | Views : 1868 | Status : [Member] | Replies : 23
Hi Friends,


How to password pass current page to another page using asp.net.








Thanks,

appalanaidu


Responses

Posted by: aswinialuri-19361 on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
For that you will try for query string it will transfer from one web page to another web page .storing in one web page and retrieving in another page.i think it is very useful to you.

Thanks & regards


Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
hi

using query string password transfer from one web page to another web page easily identify password name right.

Thanks,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/22/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi Naidulaxmi,

just send your password in encrypted format (or) just maintain a session .


Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarat,

I have maintain a session but once page post back password value is empty.



Thanks,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/22/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
i think we can maintain in session once go through that
if not we can maintain in viewstate also kindly go through that

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarat,


I have also same problem using viewstate.

Thanks,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/22/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
can you please post your code and your requirements

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarat,

I have sent to the sample code plz check it.


Thanks & Regards,

 Download source file

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bageshkumarbagi on: 11/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi Naidulaxmi
you use session for sharing the password to whole page , passing the password or username to one page to another page you use query string and put page as !ispostback.

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kamprasad2007 on: 11/23/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,


It's better you encript the Password and sent it through the Query string.

Best Regards
Kamprasad

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi Bageshkumarbagi ,


using query string password transfer from one web page to another web page easily identify password name right. And also using !ispostback .

Thanks,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/23/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Please give values in the registration page for
pname, email, Tpaid, Edate;
its taking null values thats the problem you are actually getting
you had just initialized the variable and not yet assigned any values to them , and you are trying to get the values in the another page
first of all assign some values to them and try again

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/23/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
i think you had cleared your problem ,
just pass the values of pname etc
its working fine now

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarat,


i had assigned values not only password reaming values are pass one page to another page plz check it sending code.


Thanks.

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarat,


Plz sent your modification code.

Thanks,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/23/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
kindly check your code once
string pname; // assign a value here
session[pname] = pname;
you had written like this right;
you had initialized not yet assigned any value so its taking null value

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarat,

My problem is only password not pass to one page to another page reaming like pname..etc all are pass to the one page to another.

Thanks,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/23/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Let me know one thing
are you developing or testing the code , why we need to put the password in session ... ?
we can't maintain a password in session because of textmode = "password" ..?
Let me know in which scenario you want to get the password ?


Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarat,

I am developing "klickon.net" website in this website any user signup in my website first enter the signup details in this details pass to the another page .In that page signup details save to the database that's why purpose password pass to one page to another page.you got it my point.

Thanks

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/23/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
that's not a good idea why do you want to pass all the values to another page just save in the database from here it self
is there any reason to pass all the values to another page ?

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 11/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarat,

yes, after complete the registration go to the payment page any user payment the signup free completed after particular user details save to the in this database.

Thanks,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajesh081725 on: 11/26/2012 [Member] Bronze | Points: 25

Up
0
Down
hi naidu,

Fisrt you have use the insert query using create new table with sql database connection with Sing Up Button after u Click the Next page that page use Select Query to retrive all data in the data base .
That data all are assign to textbox all .
Next page will display the value.
the select query using which user u want to retrive that value will givent to that select query.





Time is Gold
Thanks & Regards,
Rajesh Kumar,
9962038582.

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 11/30/2012 [Member] Starter | Points: 25

Up
0
Down
Save your password in session

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response