Click here to Skip to main content
15,888,113 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Display Image in gridview store in database Pin
sashidhar24-Nov-09 22:47
sashidhar24-Nov-09 22:47 
AnswerRe: Display Image in gridview store in database Pin
Nishant Singh24-Nov-09 21:43
Nishant Singh24-Nov-09 21:43 
GeneralRe: Display Image in gridview store in database Pin
gautamamit824-Nov-09 23:52
gautamamit824-Nov-09 23:52 
GeneralRe: Display Image in gridview store in database Pin
Nishant Singh25-Nov-09 0:54
Nishant Singh25-Nov-09 0:54 
GeneralRe: Display Image in gridview store in database Pin
sashidhar25-Nov-09 1:03
sashidhar25-Nov-09 1:03 
AnswerRe: Display Image in gridview store in database Pin
carlecomm26-Nov-09 14:32
carlecomm26-Nov-09 14:32 
QuestionQuery String Pin
Amit Patel198524-Nov-09 21:24
Amit Patel198524-Nov-09 21:24 
AnswerRe: Query String Pin
bhavnvyas24-Nov-09 21:29
bhavnvyas24-Nov-09 21:29 
This was enormously helpful code to me. I searched forever to find something this straightforward. You saved me many hours.

I wanted to add something another reader might find useful. I needed to add URL encoding so that the encrypted string would be ready for transport over HTTP. To do this (in vb.net) I add a reference to System.Web and use the HTTPUtility.URLEncode class to transform it into a string


Imports System.Web

strEncoded = HttpUtility.UrlEncode(strEncrypted)



So, the steps are:

1. Store a string of query parameters

2. Encrypt it using code above

3. Encode it with URLEncode

4. Send it through as query string (one string of apparently-random characters)

5. Receive it on the other side as one big query string

6. use HTTP.Utility.URLDecode to get it back to a regular string

6. Decrypt it using the code above

7. Write a routine to parse it out because you can't use Request.QueryString("AB") for this purpose. You have to come up with your own such as request_equerystring("AB"). Some code for this was written up in the following article on the subject that talks about the process but I could not get their encrypt and decrypt to work out-of-the-box in vb.net.

In my application, the data I am passing can only be obtained using a windows.form because it uses local data that is not brower-accessible. There are plenty of examples of ASP to ASP querystring passing out there where you can use server.transfer. But, this is the only simple-to-follow reference I could find to calling up a browser with encrypted query strings from vb.net (that worked on first try).

Encrypting the Information Passed From the Query String
GeneralRe: Query String Pin
dan!sh 24-Nov-09 22:21
professional dan!sh 24-Nov-09 22:21 
GeneralRe: Query String Pin
bhavnvyas24-Nov-09 22:34
bhavnvyas24-Nov-09 22:34 
GeneralRe: Query String Pin
dan!sh 24-Nov-09 22:50
professional dan!sh 24-Nov-09 22:50 
GeneralRe: Query String Pin
bhavnvyas24-Nov-09 23:15
bhavnvyas24-Nov-09 23:15 
AnswerRe: Query String Pin
Nishant Singh24-Nov-09 21:37
Nishant Singh24-Nov-09 21:37 
AnswerRe: Query String Pin
Abhishek Sur24-Nov-09 21:48
professionalAbhishek Sur24-Nov-09 21:48 
AnswerSession Variable Pin
David Mujica25-Nov-09 3:23
David Mujica25-Nov-09 3:23 
AnswerRe: Query String Pin
carlecomm26-Nov-09 14:56
carlecomm26-Nov-09 14:56 
Questionfileupload control Pin
mylogics24-Nov-09 21:06
professionalmylogics24-Nov-09 21:06 
AnswerRe: fileupload control Pin
Blikkies24-Nov-09 21:21
professionalBlikkies24-Nov-09 21:21 
AnswerRe: fileupload control Pin
bhavnvyas24-Nov-09 21:22
bhavnvyas24-Nov-09 21:22 
GeneralRe: fileupload control Pin
mylogics24-Nov-09 21:24
professionalmylogics24-Nov-09 21:24 
QuestionScreen resolution Pin
shankbond24-Nov-09 20:53
shankbond24-Nov-09 20:53 
AnswerRe: Screen resolution Pin
bhavnvyas24-Nov-09 21:24
bhavnvyas24-Nov-09 21:24 
Questiontreeview Pin
aruna120124-Nov-09 20:29
aruna120124-Nov-09 20:29 
AnswerRe: treeview Pin
Anurag Gandhi24-Nov-09 20:47
professionalAnurag Gandhi24-Nov-09 20:47 
QuestionRegarding IE 8.0 Pin
shiva.kore24-Nov-09 20:23
shiva.kore24-Nov-09 20:23 

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.