How do I pass parameters to a web form without putting them in the querystring?


Author
Message
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Hi all.

This a a very noobie question, but I do mostly winforms development. I need to create a web page that I can send a link to from my winofrms app. I do not want to put something like this:

?pk=1010&user_id=akinsm

in the URL for obvious reasons. My first impulse when I see things like this is to put in different values and see what I can see Smile

So, I am creating my web page using StrataFrame and I just need to know the best way to pass the parameters when I send the link from my winforms app.

TIA

Marcia
Replies
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Trent L. Taylor (1/4/2012)
You can do it several ways.  You can use a POST operation instead of a GET.  GET operations expose the query string like you mentioned and is more limited in the length.  If you want to use a GET operation, you can encrypt it using the StrataFrame 3DES class or even create a Base64 output.


Hi Trent.

Thanks for the speedy response. When I say that I am a noobie at webforms, i mean that I am REALLY a noobie Smile.

Since my winforms app is going to e-mail a link to a single web page on which the e-mail recipient has only to input a couple of fields, I think that the quickest solution may be to encrypt the QueryString.

I will search the StrataFrame docs to see how to use the 3DES class to do this and if I get stuck I will come back here crying for more help.
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Marcia G Akins (1/4/2012)
I will search the StrataFrame docs to see how to use the 3DES class to do this and if I get stuck I will come back here crying for more help.

Hi Marcia, here is a quick sample on how to use the SF encryption class: http://forum.strataframe.net/FindPost19605.aspx

Edhy Rijo

Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
[quote]Edhy Rijo (1/4/2012)

Hi Marcia, here is a quick sample on how to use the SF encryption class: http://forum.strataframe.net/FindPost19605.aspx[/quote]

Thanks for the link, Edhy. I will look at it as soon as I get this page laid out and functioning.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search