Click here to Skip to main content
15,125,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionto retrieve userid & name Pin
sk_ko20-Nov-11 18:00
Membersk_ko20-Nov-11 18:00 
AnswerRe: to retrieve userid & name Pin
Morgs Morgan22-Nov-11 22:21
MemberMorgs Morgan22-Nov-11 22:21 
QuestionNewbie Question multiple computers Pin
David C# Hobbyist.20-Nov-11 12:07
professionalDavid C# Hobbyist.20-Nov-11 12:07 
AnswerRe: Newbie Question multiple computers Pin
thatraja24-Nov-11 20:17
professionalthatraja24-Nov-11 20:17 
GeneralRe: Newbie Question multiple computers Pin
David C# Hobbyist.26-Nov-11 4:44
professionalDavid C# Hobbyist.26-Nov-11 4:44 
QuestionA control/script for image manipulation Pin
VictorSotnikov20-Nov-11 8:50
MemberVictorSotnikov20-Nov-11 8:50 
QuestionHow to crypt my URL Pin
TRAORE cheickna20-Nov-11 6:15
MemberTRAORE cheickna20-Nov-11 6:15 
AnswerRe: How to crypt my URL Pin
Morgs Morgan22-Nov-11 22:37
MemberMorgs Morgan22-Nov-11 22:37 
There are many ways you can escape such a not too cool practice.
1. Put your parameters in a separate session object and access it on the other page, e.g.

C#
Session[ "UserName" ] = "toto";
Session[ "UserEmail" ] = "toto@yahoo.fr";
Session[ "UserPassword" ] = "totototo";

//redirect to your page like so:
Response.Redirect( "subscribe.aspx?From=LoginUser" );

Go here and find out more of this stuff:
http://msdn.microsoft.com/en-us/library/ms178581.aspx[^]

2. Put your parameters in a separate cookie object and access it on the other page, e.g.
C#
Response.Cookie[ "UserName" ].Value = "toto";
Response.Cookie[ "UserEmail" ].Value = "toto@yahoo.fr";
Response.Cookie[ "UserPassword" ].Value = "totototo";

Go here and find out more of this stuff:
http://msdn.microsoft.com/en-us/library/ms178194.aspx[^]

3. Using the handy to manage Cache object:
http://msdn.microsoft.com/en-us/library/aa478965.aspx[^]

4. You can keep it as you wanted by encrypting your parameters and you could:
a. Convert to base64
http://msdn.microsoft.com/en-us/library/dhx0d524.aspx[^]
b. MD5 hash
http://msdn.microsoft.com/en-us/library/system.security.cryptography.md5.aspx[^]
But again, you don't want to put sensitive information in your url as people can decode it, which is why i would recommend the first 3 options.

Happy coding,
Morgs
Questionto import all tables Pin
sk_ko19-Nov-11 20:27
Membersk_ko19-Nov-11 20:27 
AnswerRe: to import all tables Pin
jkirkerx19-Nov-11 21:22
professionaljkirkerx19-Nov-11 21:22 
QuestionWorking with cached DataTables ? Pin
devboycpp19-Nov-11 7:47
Memberdevboycpp19-Nov-11 7:47 
AnswerRe: Working with cached DataTables ? Pin
jkirkerx19-Nov-11 20:16
professionaljkirkerx19-Nov-11 20:16 
Questiondata source problem with web control Pin
rachel_m19-Nov-11 7:05
Memberrachel_m19-Nov-11 7:05 
AnswerRe: data source problem with web control Pin
jkirkerx19-Nov-11 20:29
professionaljkirkerx19-Nov-11 20:29 
GeneralRe: data source problem with web control Pin
rachel_m20-Nov-11 9:43
Memberrachel_m20-Nov-11 9:43 
GeneralRe: data source problem with web control Pin
jkirkerx20-Nov-11 10:10
professionaljkirkerx20-Nov-11 10:10 
GeneralRe: data source problem with web control Pin
rachel_m20-Nov-11 15:32
Memberrachel_m20-Nov-11 15:32 
GeneralRe: data source problem with web control Pin
jkirkerx20-Nov-11 16:19
professionaljkirkerx20-Nov-11 16:19 
QuestionSite navigation link generation using sitemap Pin
Tridip Bhattacharjee19-Nov-11 0:46
professionalTridip Bhattacharjee19-Nov-11 0:46 
AnswerRe: Site navigation link generation using sitemap Pin
jkirkerx19-Nov-11 20:35
professionaljkirkerx19-Nov-11 20:35 
AnswerRe: Site navigation link generation using sitemap Pin
Bernhard Hiller20-Nov-11 20:52
MemberBernhard Hiller20-Nov-11 20:52 
QuestionURL routing issue asp.net 4.0 Pin
Tridip Bhattacharjee19-Nov-11 0:42
professionalTridip Bhattacharjee19-Nov-11 0:42 
AnswerRe: URL routing issue asp.net 4.0 Pin
jkirkerx19-Nov-11 20:44
professionaljkirkerx19-Nov-11 20:44 
QuestionI have some queires releated to DataCalendar Pin
Ostwal Aarti18-Nov-11 2:37
MemberOstwal Aarti18-Nov-11 2:37 
AnswerRe: I have some queires releated to DataCalendar Pin
Blue_Boy18-Nov-11 2:54
MemberBlue_Boy18-Nov-11 2:54 

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.