473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

submit a .net page to asp page

jim
I new with .net and asp.
I can't find a way to link a asp page from a asp.net page.
I have tried a button and even a simple hyper link is not working.
When I click the hyper link in asp.net(in the navigateUrl I have an asp page), it let me down load the asp file.

Can anybody help me?

Jim
Jul 21 '05 #1
4 3331
Cor
Hi Jim,

In ASP net you can use the same as in classic asp use the redirect sentence
and more

Have a look at this

http://msdn.microsoft.com/library/de...notherpage.asp

There is something written as "from the browser", in my opinion that is also
the server side and not the client side, a little bit strange.

I hope this helps?

Cor
Jul 21 '05 #2
jim
I followed the link. Response.Redirect works very well.
When I use Server.Transfer I got "Invalid path for child request 'C:\Inetpub\wwwroot\sdb1.asp'. A virtual path is expected."
Can you tell me what is that?
I got Response.Redirect works any way.

Thanks a lot.
jim

Jul 21 '05 #3
You can not specify a hard coded path. Use server.transfer("sdb1.asp")

"jim" <an*******@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
I followed the link. Response.Redirect works very well.
When I use Server.Transfer I got "Invalid path for child request 'C:\Inetpub\wwwroot\sdb1.asp'. A virtual path is expected." Can you tell me what is that?
I got Response.Redirect works any way.

Thanks a lot.
jim

Jul 21 '05 #4
I do not believe you can "transfer" control an ASP page anymore then you
could an HTML page.

Redirect is the way to go when crossing boundaries because Redirect sends a
command to the browser to use a different page while Transfer will transfer
control within the current request without talking to the browser.

Also, Transfer cannot be used across virtual directory boundaries. If you
have the page A.aspx in virtual root A and B.aspx in virtual root B, A.aspx
cannot "transfer" control to B.aspx, you would have to use Redirect.

"Jim M" <an********@discussions.microsoft.com> wrote in message
news:Od**************@TK2MSFTNGP11.phx.gbl...
You can not specify a hard coded path. Use server.transfer("sdb1.asp")

"jim" <an*******@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
I followed the link. Response.Redirect works very well.
When I use Server.Transfer I got "Invalid path for child request

'C:\Inetpub\wwwroot\sdb1.asp'. A virtual path is expected."
Can you tell me what is that?
I got Response.Redirect works any way.

Thanks a lot.
jim


Jul 21 '05 #5

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

Similar topics

8
by: Matt | last post by:
I want to submit the form to the server without opening another page. When we do the following, it will submit the form data in myform to the IIS, and open page2.asp. <form name="myform"...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
9
by: Eric George | last post by:
Hi, Has anyone had any success using jscript submit method in their VS.NET projects? For example I have some client processing in a script function then call <form name>.submit(); This won't...
0
by: Niks | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary...
3
by: Arun K | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary...
5
by: Alex | last post by:
Hello, I hope I can explain this properly. I'm writing an application with a tabbed-based navigation, and a form which gets filled out by users will be split into 5 subtabs. What I need is...
4
by: j1dopeman | last post by:
Hi, I'd like to use a button to save and then submit a form. I can set the onlick of the button to mahButton_click or submit, but I can't figure out how to do both. It looks like c# can't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.