开发者

Sending information from one webform to another

开发者 https://www.devze.com 2022-12-12 22:14 出处:网络
i\'m generating HyperLinks, all of them (depending on the circunstance, could be 1, 2 or 1000) send to the same webform:

i'm generating HyperLinks, all of them (depending on the circunstance, could be 1, 2 or 1000) send to the same webform:

from default.aspx to envia.aspx

i can't use session, or anything i already know, because i can't create as many methods i want (that would not be good, due to possible large numbers)

example, there are three lines i print on demand:

house [link]

car [link]

flower[link]

i want the thre开发者_运维知识库e links to load the same aspx webform sending as a parameter a string with these lines.

i don't care if the answer is in vb.net or in c#, anything you could help it's ok (i'm using vb.net though)


can you use Query String?

envia.aspx?param1=something&param2=somethingelse

in envia.aspx:

string param1 = Request["param1"];
string param2 = Request["param2"];


What about crosspage postbacks? Only used it once, but this sounds like a good candidate for it. See Cross-Page Posting in ASP.NET Web Pages, http://msdn.microsoft.com/en-us/library/ms178139.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号