Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,215 members, 7,818,729 topics. Date: Sunday, 05 May 2024 at 11:12 PM

Vb.net Web Page - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Vb.net Web Page (1025 Views)

How To Deploy An Asp.net Web Application / Stunning Web Page Wit Asp.net / Post Ur Vb 6.0 Questions Here (2) (3) (4)

(1) (Reply) (Go Down)

Vb.net Web Page by bigafees: 11:48am On Jun 28, 2010
Please how can i load another page in vb.net web application using vb code, unlike normal window application that will use .show
what code do this vb.net web?, i'm talking of hyperlink tool, i need vb code that will load another page on my web & not ASP.net code, but if Asp.net will help i dont mind.

Thank
Re: Vb.net Web Page by Beaf: 5:30pm On Jun 28, 2010
Server.Execute("whatever.aspx") is your toy.

You need to remove any html that will be repeated. Server.Execute is overloaded, so you might need to look it up if you are going to pass objects. It is an extremly powerful method, e.g. you can "cheat" the ASP.NET pipeline and actually change HttpHandlers dynamically etc.

StringWriter stringWriter = new StringWriter()
Server.Execute("whatever.aspx", stringWriter) 'Note overload method signature is different from the first example above.
Response.Write(stringWriter.ToString())

You can also do Server.Execute(IHttpHandler) etc, etc, etc
Re: Vb.net Web Page by paule: 8:53am On Jun 30, 2010
good advice from Beaf. you can also use Server.Execute("WebForm2.aspx",True)
Re: Vb.net Web Page by bigafees: 11:10am On Jun 30, 2010
Thanks Guys, u are great

(1) (Reply)

Facebook Group for PHP programmers / Hi, I Need Help With This Php Code : / Letter From My Present To My Past

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.