Click here to Skip to main content
15,885,278 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionOpen a pdf file in browser Pin
NarVish21-Nov-11 1:09
NarVish21-Nov-11 1:09 
AnswerRe: Open a pdf file in browser Pin
Morgs Morgan22-Nov-11 21:07
Morgs Morgan22-Nov-11 21:07 
GeneralRe: Open a pdf file in browser Pin
NarVish22-Nov-11 21:32
NarVish22-Nov-11 21:32 
GeneralRe: Open a pdf file in browser Pin
Morgs Morgan22-Nov-11 21:49
Morgs Morgan22-Nov-11 21:49 
GeneralRe: Open a pdf file in browser Pin
NarVish22-Nov-11 23:20
NarVish22-Nov-11 23:20 
GeneralRe: Open a pdf file in browser Pin
Bernhard Hiller23-Nov-11 3:00
Bernhard Hiller23-Nov-11 3:00 
Questionproblem in deployement on iis 7.5 Pin
uspatel20-Nov-11 23:54
professionaluspatel20-Nov-11 23:54 
AnswerRe: problem in deployement on iis 7.5 Pin
Matt U.21-Nov-11 4:44
Matt U.21-Nov-11 4:44 
GeneralRe: problem in deployement on iis 7.5 Pin
uspatel23-Nov-11 1:44
professionaluspatel23-Nov-11 1:44 
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 

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.