473,396 Members | 1,987 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,396 software developers and data experts.

Convert ASP page to ASPX

Hi All,

I've been using a copy of PostAcpt.aspx that I found on the web to allow
users to upload files to a folder on a server, and it redirects them to
posted.asp when the upload is complete which has script to handle the virus
checking, but I would like it to redirect to an aspx page instead.

What's the best way to replicate the functionality of the VBScript code in
the ASP page as C# code in a ASPX page?

Regards...Andrew
Nov 17 '05 #1
1 1293
Andrew,

Well, technically you can write C# code in-line in the ASPX page
itself, just like the VBScript in classic ASPs. But if you're looking
for the "best way" to do this, then it would be to place the code in
the code behind class for the ASPX page.

In fact, the C# code to redirect to your new ASPX page should look
pretty familiar to you:

Response.Redirect("SomePage.aspx"); or Server.Transfer("SomePage.aspx",
false);

I don't know how much ASP.NET development you've done. If this is too
general, reply and I can give you some more details.

Thanks,
Denny Boynton

Nov 17 '05 #2

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

Similar topics

14
by: David C. Taylor | last post by:
I saw an article that described how to convert the query string into an Url without a query string and return the page. For example, this request: ...
7
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
6
by: Tim Cartwright | last post by:
I have a page that has the login control on it, nothing else. This page inherits from a master page, neither page has any code in it. This page works perfectly when running on the WebDev debug web...
7
by: Alan Silver | last post by:
Hello, I have installed the 2.0 framework, and am looking at converting some of my 1.1 pages to use partial classes. I don't (yet) have VS2005, so I'm doing this by hand, but am having problems....
3
by: shapper | last post by:
Hello, Could someone tell me how to convert a XML file into another XML file using a XSL file with a parameter? I created the code to do it, and it seems ok, but it is not working. Could...
2
by: CCY | last post by:
Hi, Is there a way to convert GET/QueryString to POST/Form when transfer pages using Server.Transfer()? For example, 1. page 1 url: http://domain/page1.aspx?name1=value1 2. page 2 url:...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
2
by: ramya.salva | last post by:
I'm trying to add to my project an html page so that I can add some C# code into it. I would need to 'convert' into aspx so that I can add the code with the IDE. What would I need to do? Thanks.
5
by: Kindler Chase | last post by:
<cross-posted to m.p.d.l.csharp> I'm looking for recommendations on a 3rd party .NET library that will allow me to convert a web page to PDF on the fly. The pdf will be a brochure with images...
3
by: polasrikan | last post by:
iam using asp.net 2.0, and iam trying to convert the aspx page to pdf. aspx page consints of some data comes from the database. i have converter for html2pdf.but not able to use directly the aspx...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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...
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,...

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.