Click here to Skip to main content
15,892,072 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Compare validator not working Pin
Jagadeesh Jupalli17-May-07 20:05
Jagadeesh Jupalli17-May-07 20:05 
QuestionMultiple email attachment in asp.net Pin
aransiola17-May-07 10:03
aransiola17-May-07 10:03 
AnswerRe: Multiple email attachment in asp.net Pin
Not Active17-May-07 11:51
mentorNot Active17-May-07 11:51 
QuestionXP Style Icons Pin
martin_hughes17-May-07 9:37
martin_hughes17-May-07 9:37 
AnswerRe: XP Style Icons Pin
Sathesh Sakthivel17-May-07 15:15
Sathesh Sakthivel17-May-07 15:15 
Questionfind duplicate keys Pin
seemamltn17-May-07 9:23
seemamltn17-May-07 9:23 
AnswerRe: find duplicate keys Pin
Tarakeshwar Reddy17-May-07 9:30
professionalTarakeshwar Reddy17-May-07 9:30 
QuestionFile Upload Pin
vasini17-May-07 9:12
vasini17-May-07 9:12 
I have a text file(which is in different server) to be uploaded to database table. When we browse the file, and click upload button, it should redirect to other aspx page and from where the path of the file will be sent to a procedure to insert the values in the text file to a table.
But when I select a file and click the upload button its giving "Page cannot be Displayed" error.

My code is like this:

Try
Dim inputFile As New FileInfo(txtfilePath.PostedFile.FileName)

Try

If (inputFile.Length > 1) Then
lblStatus.Text = "File is empty"
Else
Response.Redirect("Form2.aspx?file=" & HttpUtility.UrlPathEncode(txtfilePath.PostedFile.FileName))

End If

Catch ex As Exception
lblStatus.Text = ex.Message
End Try

Catch ex As Exception
lblStatus.Text = "File doesn't exist or is inaccessible"
End Try


When I click upload button its saying page cannot be displayed.



Please if anyone can help me for fixing this, I'll be thankful.

Thank you.


Vasini
AnswerRe: File Upload Pin
Parwej Ahamad17-May-07 18:03
professionalParwej Ahamad17-May-07 18:03 
GeneralRe: File Upload Pin
BINOVAR17-May-07 19:50
BINOVAR17-May-07 19:50 
QuestionAre there any cool websites created entirely using Visual Studio .Net 2005 Asp.net 2.0?? Pin
Nada Adel17-May-07 8:06
Nada Adel17-May-07 8:06 
AnswerRe: Are there any cool websites created entirely using Visual Studio .Net 2005 Asp.net 2.0?? Pin
Not Active17-May-07 8:35
mentorNot Active17-May-07 8:35 
QuestionServer agent has timed out when exporting crystal report to pdf format Pin
Deepthi Viswanathan Nair17-May-07 7:18
Deepthi Viswanathan Nair17-May-07 7:18 
Questionmake invisible browser(IE) Pin
sonia_basangar17-May-07 7:01
sonia_basangar17-May-07 7:01 
AnswerRe: make invisible browser(IE) Pin
Deepthi Viswanathan Nair17-May-07 7:23
Deepthi Viswanathan Nair17-May-07 7:23 
GeneralRe: make invisible browser(IE) Pin
sonia_basangar17-May-07 22:09
sonia_basangar17-May-07 22:09 
AnswerRe: make invisible browser(IE) Pin
Parwej Ahamad17-May-07 18:08
professionalParwej Ahamad17-May-07 18:08 
QuestionData Type Pin
seemamltn17-May-07 6:54
seemamltn17-May-07 6:54 
AnswerRe: Data Type Pin
Tarakeshwar Reddy17-May-07 7:23
professionalTarakeshwar Reddy17-May-07 7:23 
GeneralRe: Data Type Pin
seemamltn17-May-07 8:00
seemamltn17-May-07 8:00 
GeneralRe: Data Type Pin
Not Active17-May-07 8:33
mentorNot Active17-May-07 8:33 
AnswerRe: Data Type Pin
Not Active17-May-07 7:48
mentorNot Active17-May-07 7:48 
QuestionExport to excel Sheet Pin
seemamltn17-May-07 6:50
seemamltn17-May-07 6:50 
AnswerRe: Export to excel Sheet Pin
Tarakeshwar Reddy17-May-07 7:25
professionalTarakeshwar Reddy17-May-07 7:25 
AnswerRe: Export to excel Sheet Pin
hammdo22-May-07 0:18
hammdo22-May-07 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.