|
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
|
|
|
|
|
lofland wrote: When I publish my web site to a web host, it does not work because web hosts do not support SQL Express.
No, YOUR web host does not support SQL Express. Either way, if your DB is plain SQL, you should be able to move it. What do they support ? If they don't support SQL Server OR SQL Express, they are not much of a web host.
lofland wrote: Is there a web host that I can use that will support SQL Express for authentication and SQL 2005 or 2008 for database connections?
This would be stupid. Why do you think you need to do this ? Why not authenticate in SQL Server ?
lofland wrote: Why does Microsoft use SQL express if it is not functional in a web host?
SQL Express is just a database. In fact, it's basically a lite version of SQL Server, it's DESIGNED to be used by developers who go on to migrate their DB to a full SQL Server.
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.
|
|
|
|
|
Your comment "that would be stupid" is my point.
why does Microsoft create server controls that use SQL express by default when web hosts don't support sql express.
All of the server authentication controls use the default of SQL express. I would prefer to use SQL Server 2008 but I don't know how to make the change.
I am using SQL Server for the rest of my web site. The authentication is the only part that uses SQL express.
|
|
|
|
|
lofland wrote: why does Microsoft create server controls that use SQL express by default when web hosts don't support sql express.
Probably because it can't be hard at all to change what you use, and they expect a lot of developers to use SQL Express on their local machines.
lofland wrote: I would prefer to use SQL Server 2008 but I don't know how to make the change.
It's got to be a matter of changing a connection string. Of course, there needs to be a DB behind it that has the tables to support it. How did you set it up in the first place ?
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.
|
|
|
|
|
When you drag the server authentication controls on to your page for the first time Visual Studio creates all the tables and the database.
The database exists within the web application.
I have code that connects to SQL server 2005 tables and I have connection stings for that.
However in the book I am reading, it says if I want to use SQL server instead of SQL Express for authentication, I need to modify the web.config file and clear out all the existing connection strings and replace it with
<add name="LocalSQLServer" providername="System.Data.Sqlclient"
connectionstring="Data source=localhost;integrated security=SSPI;
AttachDBFilename=|Datadiretory|aspnetdb.mdf;user intance=true">
My problem is I have other connection strings that I use for my website that I still need.
Does this make sense?
|
|
|
|
|
|
Well, you wouldn't replace it with localhost, unless that was where your DB was. I imagine you need to copy the tables in question to your SQL Server DB, then just point everything to the connection string you're currently using.
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.
|
|
|
|
|
Textbox in the edit template is not binding... The Masked edit extender causes the error "Line: 16
Error: '2.length' is null or not an object". Well I actually have two textboxes closing time and opening time... Opening time always causes this error while closing time is working fine in edit mode....I tried to redo the whole thing and maybe it might work but it didn't, tried to check everything from syntax to binding of textbox everything looks fine...Anybody who knows what its complaining about....Heres the edit template not workin maybe there's a bug somewhere....
<edititemtemplate>
<asp:textbox id="timOpeningTime_edt" runat="server" text="<%# Bind("timOpeningTime") %>" columns="5" validationgroup="MKE">
<asp:requiredfieldvalidator id="rfvOpeningTime_edt" runat="server" text="*" errormessage="Opening Time is required!" controltovalidate="timOpeningTime_edt" validationgroup="EditGrid">
<asp:regularexpressionvalidator id="rgxOpeningTime_edt" runat="server" controltovalidate="timOpeningTime_edt"
="" display="Dynamic" errormessage="Invalid Time format! Must be like 99:99 for 00:00 to 23:59" setfocusonerror="True" validationexpression="^(20|21|22|23|[01]\d|\d)(([:][0-5]\d){1,2})$" validationgroup="EditGrid">*
<cc1:maskededitextender id="MaskedEditExtender5" runat="server"
="" targetcontrolid="timOpeningTime_edt" mask="99:99" messagevalidatortip="true" onfocuscssclass="MaskedEditFocus" oninvalidcssclass="MaskedEditError" masktype="Time" acceptampm="false" usertimeformat="TwentyFourHour" errortooltipenabled="True">
<cc1:maskededitvalidator id="MaskedEditValidator5" runat="server"
="" controlextender="MaskedEditExtender5" controltovalidate="timOpeningTime_edt" isvalidempty="False" emptyvaluemessage="Time is required in the format: 99:99" invalidvaluemessage="Time is invalid" display="Dynamic" tooltipmessage="Input a time" emptyvalueblurredtext="*" invalidvalueblurredmessage="*" validationgroup="MKE">
|
|
|
|
|
There is no length property in any of the code you posted.
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.
|
|
|
|
|
Exactly I don't have length property, don't know where the error get thats....The 2.length thing is the AJAX script that controls the maskededit in the background...
modified on Tuesday, August 18, 2009 8:55 AM
|
|
|
|
|
Hi,
Is there any big reason of why should I use the "ASP.NET MVC" (built-in mvc) instead of implementing the pattern itself manually ??
|
|
|
|
|
Trendiness and resume food are the only things I can think of.
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 think you answered the question already, should you use something that is available or build your own.
only two letters away from being an asset
|
|
|
|