473,654 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use Server.Execute within the server side VB.net ?

What's the right coding to open another aspx page within server side vb.net
(not within the html) ?

In case I only code Server.Execute( "page2.aspx ") with a VB.net Subroutine,
the browser shows a mess of both page 1 and page 2 within the same window.
Sep 30 '06 #1
2 3918
Can you clarify what you mean by opening another aspx page?

The Server.Execute will essentially run another ASP.Net page, but it will
still run the code and display the HTML up to the point where the call was
made. Useful in certain scenarios but maybe isn't appropriate here.

Do you want to simply transfer to another page? In that case you could use
Response.Redire ct to redirect to the other page. There's also
Server.Transfer , but sometimes that is not as useful and has it's own set of
issues.

In any case, if you could illustrate to us exactly how you intend to open
the other page that would help us understand exactly which method to use.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Oscar" <ok*@xs4all.nlw rote in message
news:O$******** ******@TK2MSFTN GP03.phx.gbl...
What's the right coding to open another aspx page within server side
vb.net (not within the html) ?

In case I only code Server.Execute( "page2.aspx ") with a VB.net Subroutine,
the browser shows a mess of both page 1 and page 2 within the same window.


Sep 30 '06 #2
Thanks Mark,

Yes I only needed to link to another page
Using Resonse.Redirec t or Server.Transfer solved my problem.
I was somewhat mislead by Jon's advice to use Server.Execute

regards,
Oscar

"Mark Fitzpatrick" <ma******@fitzm e.comschreef in bericht
news:ur******** ******@TK2MSFTN GP02.phx.gbl...
Can you clarify what you mean by opening another aspx page?

The Server.Execute will essentially run another ASP.Net page, but it will
still run the code and display the HTML up to the point where the call was
made. Useful in certain scenarios but maybe isn't appropriate here.

Do you want to simply transfer to another page? In that case you could use
Response.Redire ct to redirect to the other page. There's also
Server.Transfer , but sometimes that is not as useful and has it's own set
of issues.

In any case, if you could illustrate to us exactly how you intend to open
the other page that would help us understand exactly which method to use.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Oscar" <ok*@xs4all.nlw rote in message
news:O$******** ******@TK2MSFTN GP03.phx.gbl...
>What's the right coding to open another aspx page within server side
vb.net (not within the html) ?

In case I only code Server.Execute( "page2.aspx ") with a VB.net
Subroutine, the browser shows a mess of both page 1 and page 2 within the
same window.



Sep 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3672
by: ccg | last post by:
I am trying to print a file from an ASP script but haven't been able to find any way of making this happen. I have an EPL (Eltron Thermal Printer language) file that is being generated from the script and I want a way to print this file. An EPL file is basically printed the same way as a postscript PRN would be printed. From a command prompt I can type: copy label.EPL LPT1
4
2731
by: paul dallaire | last post by:
HI! I want to execute a link witch is in JavaScript, How do we execute this in asp server side if possible? Basically I don't want anyone to see this link in the code view. this is the link code. below--------------- <script TYPE="text/JavaScript" LANGUAGE="JavaScript" src='http://www.site1.com/ffff/jjjgtr.php?a=blahlablah&bgcolor=%23FFFFFF&tuck=aaa&sp=0&ft=4&ftt=1&iw=178&ih=198&gt=yes&hj=rn&src=yes&nt=no'> </script>
6
1724
by: Don | last post by:
I'm trying to come up with a way within a client-side web page of uploading a couple files to a server-side PHP program without using a <form...>. I don't want to give up the page which happens after the <form...> executes. Instead, I want to upload the files, then execute a <form...> for another purpose. Any help would be appreciated. Thanks, Don ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----...
1
1662
by: Chris | last post by:
Hi, 1) is it possible for an asp-button control to execute client-side scripting as well ? 2) and for an HTML-server control ? I would like to execute client-side code , and then execute server-side code. Thnx
3
2418
by: interuser | last post by:
Hi How can I prevent an event (eg button click) from happening from within page_load? The reason is that I want to make my existing application work for netscape, for which there are no client side validations. So I thought to put something like the following in the superclass of all UI pages: public sub page_load
9
2219
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see) in page_load, or elsewhere, that says page.validate, no control says "causesvalidation=true", and the AutoEventWireup is set to false. So I would think that the control's server event function would NOT execute, but it does execute right after...
18
5437
by: Thomas Lunsford | last post by:
I have inherited a set of asp pages that I now need to augment. In order to minimize changes to production code, I would like to make a "call" to an asp page from a new asp page. Existing code is using many Request.Form variables, and I would very much prefer not to change this code. The new page will retrieve data that I would like to fill into Request.Form variables that are used in the old code. So, is it possible for me to set...
5
2260
by: =?Utf-8?B?dXNmaW5lY2F0cw==?= | last post by:
I'm new to asp.net. I'm trying to follow the tutorial walkthroughs and have got a few done. Now I'm doing the one about validating input, and I've run into some problems. In particular, I am watching very intermittent behavior of my ASP page. when I execute: protected void buttonSubmit_Click(object sender, EventArgs e) {
7
4485
by: Peter | last post by:
I have a HoverMenuExtender which contains an asp:PlaceHolder, this place holder has a User Control and this control contrains a Button. The problem I am having is after the button fires the click event I want to do a server side function and then refresh the Page where the PlaceHolder risides. I have no problem doing the server side function, but the following 'alert' never shows up after the server side funtion. I am using the alert...
0
8285
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8814
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8706
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8475
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8591
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5621
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2709
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1915
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.