Ask a Question related to ASP.NET General, Design and Development.
-
Pepito Grillo #1
How to upload asp.net project?
Hi. I have an asp.net web application and I'd like to upload it to my
web. I uploaded all the .aspx and .config files, so the bin folder
(with the dll). But the problem is that the application does not work
as it does on my computer. The code I use is:
Imports System.IO
Imports System.Net
Public Class analize
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the
Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form
Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
FindCode(Request("TheAddress"))
End Sub
Private Sub FindCode(ByVal TheAddress As String)
Dim wrq As WebRequest
Dim wrp As WebResponse
Dim sr As StreamReader
Dim h As HtmlGenericControl = New HtmlGenericControl
Try
If TheAddress.Substring(0, 7) <> "http://" Then
TheAddress = "http://" & TheAddress
End If
Catch
TheAddress = "http://" & TheAddress
End Try
wrq = WebRequest.Create(TheAddress)
wrp = wrq.GetResponse()
sr = New StreamReader(wrp.GetResponseStream())
h.InnerHtml = sr.ReadToEnd
Page.Controls.Add(h)
End Sub
End Class
This code gets a website address (example: [url]www.microsoft.com[/url]).
Then it connects to the page, get its code and write it on my website,
showing the same info but from my server. What am I doing wrong?
Thanks in advance for your help.
Pepito Grillo Guest
-
How to upload a file to 2 FTP sites without an upload component for company
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload... -
Upload Friendly (Multiple File Upload Applet)
Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file... -
how to go about a project
Here is my dilemma, I am about to start a project using ColdFusion and SQL Server 2000. Right now, there is a site does on the fly charting for... -
Upload files to site, upload info to SQL?
I want to create a _SECURE_ interface from an html form that allows certain people within my company to upload files into a predetermined directory... -
Large PHP Project... Need Project Manager
Hey, I've got a nice CMS (in quite stable 2.0 form) that I need a Project Manager who can just deal with some bugs/answer questions for the next...



Reply With Quote

