Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lol...webform.show

Status
Not open for further replies.

TRYP

Programmer
Jun 20, 2000
136
US
any idea how in ASP.Net (VB.net) i can do the equivalent of

--In a subRoutine on Webform1

dim x as new webform2
load x
x.property="value"
x.show

--------------------------

Help...New to ASP.Net....real Green ! ;)
Tryp
 
I'm not sure about the .show and .load properties, but you can certainly have a page include methods, properties and events of another defined class through inheritance. Try doing a Web search on object-oriented programming using VB.NET and it'll show you how to author a custom class, and then use this in other classes/WebForms, etc.

Good luck!

Jason

 
Hi,

Maybe you want:

response.redirect("webform2.aspx") ????

you can pass variables by session, or in classical asp ways.

 
I used Server.transfer("Webform2.aspx&property=" & property)
that worked
Im not a web coder so im learnin basics of web at the same time ...uggg

thx all
tryp
 
Hey Tryp,

Just curious: did server.transfer open up a new window for you, or just display the page in the same browser?

D'Arcy
 
D'Arcy--->>> Same browser
Tryp
 
k, if you want a new browser window to open up, then all you have to do is register the attribute for whatever button it is thats going to open it.

Here's what I mean:

Button1.Attributes.Add("OnClick", "javascript:window.open(url,whole bunch of other attributes, check devguru for all of them or vs help)")

If you put that into the initialize sub, then when your button or link or whatever is clicked, a new window will open up. Client side javascript is the only way that you can have a new window open up on the clients machine.

hth

D'Arcy
 
thx d'arcy
LOL...im tryin do this with zero clientside code...just a try..lol
well at least no client code i write.....the VS wizards do all that for me ..i hope !!
TRYP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top