Click here to Skip to main content
15,903,012 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionto retrieve userid & name Pin
sk_ko20-Nov-11 17:00
sk_ko20-Nov-11 17:00 
AnswerRe: to retrieve userid & name Pin
Morgs Morgan22-Nov-11 21:21
Morgs Morgan22-Nov-11 21:21 
QuestionNewbie Question multiple computers Pin
David C# Hobbyist.20-Nov-11 11:07
professionalDavid C# Hobbyist.20-Nov-11 11:07 
AnswerRe: Newbie Question multiple computers Pin
thatraja24-Nov-11 19:17
professionalthatraja24-Nov-11 19:17 
GeneralRe: Newbie Question multiple computers Pin
David C# Hobbyist.26-Nov-11 3:44
professionalDavid C# Hobbyist.26-Nov-11 3:44 
QuestionA control/script for image manipulation Pin
VictorSotnikov20-Nov-11 7:50
VictorSotnikov20-Nov-11 7:50 
QuestionHow to crypt my URL Pin
TRAORE cheickna20-Nov-11 5:15
TRAORE cheickna20-Nov-11 5:15 
AnswerRe: How to crypt my URL Pin
Morgs Morgan22-Nov-11 21:37
Morgs Morgan22-Nov-11 21: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 19:27
sk_ko19-Nov-11 19:27 
AnswerRe: to import all tables Pin
jkirkerx19-Nov-11 20:22
professionaljkirkerx19-Nov-11 20:22 
QuestionWorking with cached DataTables ? Pin
devboycpp19-Nov-11 6:47
devboycpp19-Nov-11 6:47 
AnswerRe: Working with cached DataTables ? Pin
jkirkerx19-Nov-11 19:16
professionaljkirkerx19-Nov-11 19:16 
Questiondata source problem with web control Pin
rachel_m19-Nov-11 6:05
rachel_m19-Nov-11 6:05 
AnswerRe: data source problem with web control Pin
jkirkerx19-Nov-11 19:29
professionaljkirkerx19-Nov-11 19:29 
GeneralRe: data source problem with web control Pin
rachel_m20-Nov-11 8:43
rachel_m20-Nov-11 8:43 
GeneralRe: data source problem with web control Pin
jkirkerx20-Nov-11 9:10
professionaljkirkerx20-Nov-11 9:10 
GeneralRe: data source problem with web control Pin
rachel_m20-Nov-11 14:32
rachel_m20-Nov-11 14:32 
GeneralRe: data source problem with web control Pin
jkirkerx20-Nov-11 15:19
professionaljkirkerx20-Nov-11 15:19 
QuestionSite navigation link generation using sitemap Pin
Tridip Bhattacharjee18-Nov-11 23:46
professionalTridip Bhattacharjee18-Nov-11 23:46 
AnswerRe: Site navigation link generation using sitemap Pin
jkirkerx19-Nov-11 19:35
professionaljkirkerx19-Nov-11 19:35 
AnswerRe: Site navigation link generation using sitemap Pin
Bernhard Hiller20-Nov-11 19:52
Bernhard Hiller20-Nov-11 19:52 
QuestionURL routing issue asp.net 4.0 Pin
Tridip Bhattacharjee18-Nov-11 23:42
professionalTridip Bhattacharjee18-Nov-11 23:42 
AnswerRe: URL routing issue asp.net 4.0 Pin
jkirkerx19-Nov-11 19:44
professionaljkirkerx19-Nov-11 19:44 
QuestionI have some queires releated to DataCalendar Pin
Ostwal Aarti18-Nov-11 1:37
Ostwal Aarti18-Nov-11 1:37 
AnswerRe: I have some queires releated to DataCalendar Pin
Blue_Boy18-Nov-11 1:54
Blue_Boy18-Nov-11 1: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.