Asked by:
can t save flv in my folder

Question
-
User-656010581 posted
hi,
i m using asp.net 2005 with access 2003. with the fileupload control, i can store the vlc player in my folder by using tis code
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
If FileUpload1.HasFile Then
FileUpload1.SaveAs(Server.MapPath("upload/" & FileUpload1.FileName))
Label1.Text = FileUpload1.FileName.ToString
con.Open()
Dim dat As String
dat = Now()
Dim cmd As New OleDbCommand("insert into filenms values('" & Label1.Text & "','" & dat & "' ) ", con)
MsgBox("Updated")
Try
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox("type correct Text and not updated")
End Try
End If
End Sub
but it is showing me
" The page cannot be displayed ". how can i store flv songs in my folder. help me!!!
Monday, August 16, 2010 11:31 PM
All replies
-
User-42918493 posted
I think you are uploading large file.... the default file size should me 4kb... You can increase it by change settings in web.config file...
Refer this link...
Tuesday, August 17, 2010 12:36 AM -
User-1199946673 posted
First I think that you should start using parameterized queries
http://www.mikesdotnetting.com/Article/26/Parameter-Queries-in-ASP.NET-with-MS-Access
Then take a closer look how to store datetimes into an Access Database
http://www.mikesdotnetting.com/Article/92/MS-Access-Date-and-Time-with-ASP.NET
And also how to upload files:
http://www.mikesdotnetting.com/Article/123/Storing-Files-and-Images-in-Access-with-ASP.NET
Tuesday, August 17, 2010 2:57 AM -
User-656010581 posted
hi,
Thanks for replying my question
. I refered the links, which you sent me. It was really helpfull for me sir. I increased value, like
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.configmaxRequestLength = "11264"[number]"
and i m uploading the flv in the size of 4.76 MB only. but it stil showing me the same error.
"The page cannot be displayed".
Wat can i do sir???? Help me !!!!
-Dharsini
Friday, August 20, 2010 10:36 AM -
User1867929564 posted
Hope web config file is ok.
For "This page cannot be displayed"
In aspx page above,doValidateRequest="false" or
In fact it appear that you didn't do as given in this link,web config file(do it exactly same),
http://forums.asp.net/p/1464997/3377267.aspxWednesday, September 29, 2010 8:22 AM