Click here to Skip to main content
15,912,205 members
Home / Discussions / Database
   

Database

 
GeneralRe: SP to Convert all DbTables to Excel sheet Pin
HimaBindu Vejella16-Mar-06 20:47
HimaBindu Vejella16-Mar-06 20:47 
AnswerRe: SP to Convert all DbTables to Excel sheet Pin
sathish s13-Mar-06 23:27
sathish s13-Mar-06 23:27 
QuestionOLE DB/JET and Excel - Reading Data, Error Handling Pin
mcljava13-Mar-06 9:47
mcljava13-Mar-06 9:47 
QuestionCheck if SQL Server is running through code Pin
theanton13-Mar-06 8:45
theanton13-Mar-06 8:45 
AnswerRe: Check if SQL Server is running through code Pin
Vasudevan Deepak Kumar13-Mar-06 19:02
Vasudevan Deepak Kumar13-Mar-06 19:02 
Questionstore swf file Pin
LovelyHelp13-Mar-06 2:17
LovelyHelp13-Mar-06 2:17 
AnswerRe: store swf file Pin
Vasudevan Deepak Kumar13-Mar-06 18:59
Vasudevan Deepak Kumar13-Mar-06 18:59 
GeneralRe: store swf file Pin
LovelyHelp15-Mar-06 1:15
LovelyHelp15-Mar-06 1:15 
Now i have 3 steps in doing it which is
1. browse my file from harddisk
2. giving my file a name
3. upload my file to web server

So my question over here is, how to upload my url for the specific path to database?

my code are something like this for the 3 step

------------------------------------------------
Sub DoUpload(ByVal Sender As Object, ByVal e As System.EventArgs)
Dim sPath As String
Dim sFile As String
Dim sFullPath As String
Dim sSplit() As String
Dim sPathFriendly As String


'Upload to same path as script
'Internet Anonymous User must have write permissions
sPath = Server.MapPath("../Tutorial")
'sPath = Server.MapPath(".")
If Right(sPath, 1) <> "\" Then
sPathFriendly = sPath 'Friendly path name for display
sPath = sPath & "\"
Else
sPathFriendly = Left(sPath, Len(sPath) - 1)
End If


'Save as same file name being posted
'The code below resolves the file name
'(removes path info)
sFile = txtFileName.Value
'sFile = txtUpload.PostedFile.FileName
sSplit = Split(sFile, "\")
sFile = sSplit(UBound(sSplit))


sFullPath = sPath & sFile
Try
txtUpload.PostedFile.SaveAs(sFullPath)
lblResults.Text = "Upload of File " & sFile & " to " & sPathFriendly & " succeeded"

Catch Ex As Exception

lblResults.Text = "Upload of File " & sFile & " to " & sPathFriendly & " failed for the following reason: " & Ex.Message
Finally
lblResults.Font.Bold = True
lblResults.Visible = True
End Try
QuestionSQL 2005 Pin
Illegal Operation13-Mar-06 1:08
Illegal Operation13-Mar-06 1:08 
AnswerRe: SQL 2005 Pin
Mike Dimmick13-Mar-06 2:01
Mike Dimmick13-Mar-06 2:01 
AnswerRe: SQL 2005 Pin
HimaBindu Vejella14-Mar-06 0:25
HimaBindu Vejella14-Mar-06 0:25 
QuestionPerformance problem when closing the SqlDataReader Pin
CADMIN12-Mar-06 21:20
professionalCADMIN12-Mar-06 21:20 
AnswerRe: Performance problem when closing the SqlDataReader Pin
cbhkenshin12-Mar-06 22:30
cbhkenshin12-Mar-06 22:30 
GeneralRe: Performance problem when closing the SqlDataReader Pin
CADMIN13-Mar-06 0:56
professionalCADMIN13-Mar-06 0:56 
AnswerRe: Performance problem when closing the SqlDataReader Pin
Mike Dimmick13-Mar-06 1:27
Mike Dimmick13-Mar-06 1:27 
GeneralRe: Performance problem when closing the SqlDataReader Pin
CADMIN13-Mar-06 3:06
professionalCADMIN13-Mar-06 3:06 
QuestionReading binary data Pin
NewbieDude12-Mar-06 19:06
NewbieDude12-Mar-06 19:06 
QuestionHow to execute a complex query in ado? Pin
sting_lee12-Mar-06 16:54
sting_lee12-Mar-06 16:54 
QuestionBinding Controls Problem Pin
nata200612-Mar-06 5:28
nata200612-Mar-06 5:28 
AnswerRe: Binding Controls Problem Pin
cbhkenshin12-Mar-06 22:25
cbhkenshin12-Mar-06 22:25 
GeneralRe: Binding Controls Problem Pin
nata200612-Mar-06 22:46
nata200612-Mar-06 22:46 
Questionselect command.. Pin
dansoft10-Mar-06 22:33
dansoft10-Mar-06 22:33 
AnswerRe: select command.. Pin
Mike Dimmick11-Mar-06 23:59
Mike Dimmick11-Mar-06 23:59 
AnswerRe: select command.. Pin
albCode12-Mar-06 6:26
albCode12-Mar-06 6:26 
AnswerRe: select command.. Pin
turbochimp12-Mar-06 19:57
turbochimp12-Mar-06 19:57 

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.