15,912,329 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by kroz18 (Top 16 by date)
kroz18
3-May-12 18:22pm
View
is there any way to use a for eash ?
kroz18
29-Apr-12 9:33am
View
thank you nikfazan it worked out sorry for disturbing you i apreciate your help
and for the others you just complained of me on how to write and why i was commenting on my posts wish you could helped me insted of judjing me on my posts, i know you are helping for free and i know you guys have great heart just to read some one else's post in your free time thats awesome of you people but everyone makes mistakes once again i'm sorry if i disterbed anyone this is the first time i use a technical site anyway thank you for everything
P.S : my native language is not english so i write abreviation also to avoid mistakes
kroz18
26-Apr-12 18:47pm
View
it is turned off that is what's confusing me and nothing appear
kroz18
26-Apr-12 17:57pm
View
ok done i will not use them again sorry but i'm used to write like that
kroz18
26-Apr-12 16:47pm
View
i'm sorry if i disturbed an1 i didn't mean that
kroz18
26-Apr-12 16:36pm
View
plz if an1 can help me i'll apreciate that :(
kroz18
25-Apr-12 5:06am
View
the problem lies when i'm retreiving the data into a view page if the time is changed for anyreason in the view page the calender wich point to the date of upload will not be functional thats why i was trying to change it
thank you i apreciate your help :)
kroz18
23-Apr-12 15:49pm
View
i want to select a raw from the gridview1 when this row is selected i want to take the EUsername as an argument to draw the second gridview2 so when another raw is selected the gridview2 change to chow the data of another table where Eusername is equal
kroz18
5-Apr-12 16:41pm
View
Thank you soooo much for your help :) you've been so helpful and i apreciate that :)
kroz18
5-Apr-12 14:01pm
View
not really it didn't work out well :( can you change it into vb.net code plz if you can thats for sure in both ways 10x alot for your help :) i apreciate that :)
kroz18
5-Apr-12 6:59am
View
the value in file path is nothing i don't understand why :S
kroz18
5-Apr-12 6:30am
View
no no error message but the value of Video is Null and the path isn't save but the video itself is transferred to the wanted directory
kroz18
5-Apr-12 6:04am
View
thank you sooo much it worked but i still have a slight of a problem as you can see i wanted to add the file path to my database table EmpData in the video field but when the save button pressed the file is uploaded to the file but the file path is not saved if you can help me in this i qill apreciate it and thank you again :)
kroz18
5-Apr-12 5:47am
View
Error 25 Unrecognized configuration section authentication. C:\Users\shadow\Documents\Visual Studio 2010\WebSites\WebSite2\Web.config 43
kroz18
5-Apr-12 4:59am
View
thank you for your reply :) i apreciate it and yes it was helpful but i've listed the problem i had so plz if you can help there i'll apreciate it thanks in advanced :)
kroz18
5-Apr-12 4:57am
View
If IsPostBack Then
Dim path As String = Server.MapPath("~/UploadedVideos/")
Dim fileOK As Boolean = False
If FileUpload1.HasFile Then
Dim fileExtension As String
fileExtension = System.IO.Path. _
GetExtension(FileUpload1.FileName).ToLower()
Dim allowedExtensions As String() = _
{".mov", ".wmv", ".avi", ".vob", ".mp4"}
For i As Integer = 0 To allowedExtensions.Length - 1
If fileExtension = allowedExtensions(i) Then
fileOK = True
End If
Next
If fileOK Then
Dim Conn As New SqlConnection(ConfigurationManager.ConnectionStrings("projectConnectionString").ConnectionString)
Conn.Open()
Try
Dim FilePath = path & FileUpload1.FileName
'Here you can fire your insert statement in filepath value u can pass directly that value
Dim SQL As String = "INSERT INTO EmpData ( [Video]) VALUES (@VideoUrl)"
Dim cmd As New SqlCommand(SQL, Conn)
cmd.Parameters.Add("@VideoUrl", SqlDbType.NVarChar, 50, FilePath)
FileUpload1.PostedFile.SaveAs(path & _
FileUpload1.FileName)
lblError.Text = "File uploaded!"
cmd.ExecuteNonQuery()
Conn.Close()
Catch ex As Exception
lblError.Text = "File could not be uploaded." & ex.Message
End Try
Else
lblError.Text = "Cannot accept files of this type."
End If
End If
End If
i've saved it into a private sub Upload() to call it from the save button but when i press the button this MSG appears:
The connection was reset
The connection to the server was reset while the page was loading.
dunno where is my mistake plz can anyone help ????
Show More