|
hi sir
please help me for this.
|
|
|
|
|
I can able to store & retrive images from sql DB. I can get filename with extension using File Upload Controls. But i can't able to get file name with extension when video file path is given as input to FileUpload. How i can get video file path using FileUpload?
|
|
|
|
|
um.... the filename passed to a FileUpload control, has the extension, it just doesn't have the path.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I need only filename & extension of the video file using FileUpload control.
|
|
|
|
|
kavinnagarajan wrote: when video file path is given as input to FileUpload. How i can get video file path using FileUpload?
Why do you need the path ? Just use SaveAs() method to upload the file on server.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I have to store filename & extensions only into sql DB. Not the full videos.
|
|
|
|
|
You're making zero sense. You are GIVEN the filename, including the extension, from the upload control. So, what is the issue ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I guess you are looking for this
FileInfo fi = new FileInfo("pathOfFileName");<br />
string filename = fi.Name ;
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Well, System.IO.Path.GetFilename will do that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i working in asp.net and C#.net. i am comparing the values of two labels if they are not equal then start countdown. but it should be for five minutes only. mean when time start then 4:59(mm:ss) then decrease and when time become 0:00 then it will once again become 4:59 and again repeat the whole process if the the label values are not equal.
|
|
|
|
|
You can't do this with ASP.NET or with C#. You need to do it in javascript. You should perhaps read a basic ASP.NET book, to understand how the whole process works. ASP.NET generates pages which are then served and run in the browser.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I can able to play videos directly from local drive in asp.net webpage. But i have to upload videos into sql DB & from that DB i have to fetch or view videos. How can i do it?
|
|
|
|
|
please continue in the old post itself.....
kavinnagarajan wrote: I can able to play videos directly from local drive in asp.net webpage. But i have to upload videos into sql DB & from that DB i have to fetch or view videos. How can i do it?
you dont have to upload the video to sql just insert the name of the video in the column and store the video in some folder(like Video)and fetching it...
code for fetching:
'<# "Video\\" + DataBinder.Eval(Container.DataItem,"videoname")>'
|
|
|
|
|
If you must do it this way, you need to write a HTTP handler to serve the videos, and a page to request them, which would take a query string parameter to define what video to send.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
kavinnagarajan wrote: But i have to upload videos into sql DB
If you are using SQL, Then use the BLOB (binary object) in a table, but keep in mind that your db will grow very large.
Also, you cannot play the file directly from DB, you need to save the DB object to disk.
|
|
|
|
|
Aman Bhullar wrote: Also, you cannot play the file directly from DB, you need to save the DB object to disk.
Not true.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
How to view videos in asp.net webpage.
|
|
|
|
|
ASP.NET has no video support directly. You need to embed flash or media player movies the same way you would for any HTML page
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
use:
<embed src="Video.AVI" style="HEIGHT: 331px; LEFT: 83px; TOP: 171px; WIDTH: 538px" />
|
|
|
|
|
I can able to find solution in
<a href="http://www.beansoftware.com/ASP.NET-Tutorials/Media-Player.aspx">http:
But i have to know how to upload & download videos in to sql database?
|
|
|
|
|
you dont have to upload the video to sql just insert the name of the video in the column and store the video in some folder(like Video)and fetching it...
code for fetching:
'<# "Video\\" + DataBinder.Eval(Container.DataItem,"videoname")>'
|
|
|
|
|
If you want to store them in a SQL database, you will need to write a HTTP handler to serve them to the pages that request them.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I'm looking for an asp.net forum application. It doesnt have to be free source(I'm willing to pay up to 150$ for it). I have only 2 demands:
- It has to be asp.net based
- It has to include a tree view(Like the codeproject's discussion boards)
|
|
|
|
|
$150 is close enough to free to make no difference. This is the wrong place to post this. This place is for programmers to ask programming questions.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have a web page created with ASP.net in visual studio. My progam requires authentication. I used the built in server controls in ASP.net that utilize a SQL Express database. When I publish my web site to a web host, it does not work because web hosts do not support SQL Express.
How do I utilize the built in authentication server controls using SQL? OR
Is there a web host that I can use that will support SQL Express for authentication and SQL 2005 or 2008 for database connections?
Why does Microsoft use SQL express if it is not functional in a web host?
Lofland
|
|
|
|