473,795 Members | 3,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...Andre w
Nov 17 '05 #1
1 1305
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.Redire ct("SomePage.as px"); 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
3872
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: http://www.mywebsite.com/products.aspx?category=motherboard becomes something like this: http://www.mywebsite.com/motherboard.aspx
7
3400
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
14569
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 server. I am able to log in. However after publishing the page to my local IIS, it results in the below error. This error is occurring on the Visual Studio.Net 2k5 release version, but did not occur on the beta 2, same code. A point of interest, is...
7
1753
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. I have a simple page that I made in the beta2 version of VWD. The code behind looks like... using System;
3
3157
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 somebody, please, help me out? I am on this for days. My code is as follows:
2
7385
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: http://domain/page2.aspx
1
3602
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 some files and work on it. Let say, I want add new page to web project named websiteOrder.sln, i will open websiteOrder.sln in my local computer, connected to websiteOrder.sln located in Visual Source Safe 6.0(source safe located in another...
2
2466
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
3123
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 and needs custom formatting of headers, footers, page breaks, fonts, etc... I've found several sites that offer html to pdf libraries, but would prefer to hear from others who may have had experience with this and could recommend something.
3
18974
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 page, because it has many asp controls. is there any way to convert/ render the aspx page so i can get the html and so it can pass to the web service. Thanks in advance
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10214
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
10164
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,...
1
7540
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
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
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.