| | |
help in data table object
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 16
Reputation:
Solved Threads: 2
Hi.
You can try this method. "FileUpload1" is server-control.
Good luck
Protected Sub cmdOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdOK.Click
Dim _fileName As String = Request.PhysicalApplicationPath & FileUpload1.FileName
Dim _byte() As Byte = FileUpload1.FileBytes()
Dim _file As New IO.FileStream(_fileName, IO.FileMode.Create)
For _i As Integer = 0 To _byte.Length - 1
_file.WriteByte(_byte(_i))
Next
_file.Close()
'-----------------------
' DO SOMETHING
End Sub
You can try this method. "FileUpload1" is server-control.
Good luck
Protected Sub cmdOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdOK.Click
Dim _fileName As String = Request.PhysicalApplicationPath & FileUpload1.FileName
Dim _byte() As Byte = FileUpload1.FileBytes()
Dim _file As New IO.FileStream(_fileName, IO.FileMode.Create)
For _i As Integer = 0 To _byte.Length - 1
_file.WriteByte(_byte(_i))
Next
_file.Close()
'-----------------------
' DO SOMETHING
End Sub
![]() |
Similar Threads
- How to check data type (Visual Basic 4 / 5 / 6)
- How to Update a Data Table? (ASP.NET)
- Navigation (Paging) in HTML table in VB.NET. (VB.NET)
- Help with data grid please (VB.NET)
- problem with entering data in datagrid (VB.NET)
- insert data from one form into two diffent database table (JSP)
- converting and sending data problem (C#)
- converting data in a table into csv (comma separated) file (VB.NET)
- Datagrid to draw a table (C#)
Other Threads in the VB.NET Forum
- Previous Thread: database connection for sql server 5.0 and vb.net
- Next Thread: Maze Game
| Thread Tools | Search this Thread |
.net .net2008 2008 access account add advanced application array basic beginner browser button buttons click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview mobile module monitor mysql net number objects open panel pdf picturebox picturebox2 port position print printing printpreview problem regex reuse right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter update user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vba vbnet vista visual visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year





