Click here to Skip to main content
15,920,217 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Why cant I do this in .Net 2.0? Pin
blurMember21-Aug-06 15:55
blurMember21-Aug-06 15:55 
AnswerRe: Why cant I do this in .Net 2.0? Pin
vik2021-Aug-06 3:31
vik2021-Aug-06 3:31 
GeneralRe: Why cant I do this in .Net 2.0? Pin
blurMember21-Aug-06 15:56
blurMember21-Aug-06 15:56 
GeneralRe: Why cant I do this in .Net 2.0? Pin
vik2021-Aug-06 18:34
vik2021-Aug-06 18:34 
GeneralRe: Why cant I do this in .Net 2.0? [modified] Pin
blurMember22-Aug-06 8:09
blurMember22-Aug-06 8:09 
QuestionCreating a HTML page from ASP.NET Pin
whozurmommy20-Aug-06 21:54
whozurmommy20-Aug-06 21:54 
AnswerRe: Creating a HTML page from ASP.NET Pin
ChinmayV21-Aug-06 1:42
ChinmayV21-Aug-06 1:42 
QuestionDown load video file from data base & play it in own browser Pin
kushak_manoj20-Aug-06 21:32
kushak_manoj20-Aug-06 21:32 
Hi all,
i wants to down load video file and play it own browser i am geting media file from data base

<br />
con=new SqlConnection("server=hari; initial catalog=manoj;user id=sa;password=sa");<br />
cmd=new SqlCommand("select * from video where fileid='"+TextBox1.Text+"'",con);<br />
con.Open();<br />
dr=cmd.ExecuteReader();<br />
if(dr.Read())<br />
{<br />
string content=(string)dr["type"];<br />
FileInfo myfile=new FileInfo((string)dr["movename"]);<br />
int buffersize=Convert.ToInt32(dr["movelenth"]);<br />
Response.Clear();<br />
string str=myfile.Name;<br />
str=str.Replace("str",".resources");<br />
Response.AddHeader("Content-Disposition", "attachment; filename=" + str);               <br />
Response.AddHeader("content-Type",content);<br />
//Response.AddHeader("content-lenth",myfile.Length.ToString());<br />
Response.OutputStream.Write((byte[])dr["data"], 0, (int)dr["movlenth"]);<br />
Response.End();<br />
}<br />
else<br />
{<br />
Response.Write("No Such Media  Found");<br />
}<br />
con.Close();<br />
Response.End();<br />
<br />


with the above code i can get the file form data base & open it & save it also,

but i am not want to save that file & i wants to play only into my own browser.

how i can do this please give some example or idea (as soon as) Confused | :confused:

regardRose | [Rose]

khushak(manoj)OMG | :OMG:
QuestionSorting in Grid View using AJAX Pin
Kartik Rathi20-Aug-06 21:17
Kartik Rathi20-Aug-06 21:17 
AnswerRe: Sorting in Grid View using AJAX Pin
vik2021-Aug-06 3:34
vik2021-Aug-06 3:34 
GeneralRe: Sorting in Grid View using AJAX Pin
Kartik Rathi22-Aug-06 1:03
Kartik Rathi22-Aug-06 1:03 
GeneralRe: Sorting in Grid View using AJAX Pin
vik2022-Aug-06 1:19
vik2022-Aug-06 1:19 
QuestionSorting in Grid View Pin
Kartik Rathi20-Aug-06 21:13
Kartik Rathi20-Aug-06 21:13 
AnswerRe: Sorting in Grid View Pin
postmaster@programmingknowledge.com21-Aug-06 1:20
postmaster@programmingknowledge.com21-Aug-06 1:20 
AnswerRe: Sorting in Grid View Pin
Kartik Rathi21-Aug-06 22:59
Kartik Rathi21-Aug-06 22:59 
QuestionASP.Net Reports Pin
prabhakar dwivedi20-Aug-06 21:06
prabhakar dwivedi20-Aug-06 21:06 
AnswerRe: ASP.Net Reports Pin
Ramasubramaniam21-Aug-06 3:50
Ramasubramaniam21-Aug-06 3:50 
Questionpayment using paypal and 2checkout.com. Pin
Amit Agarrwal20-Aug-06 20:39
Amit Agarrwal20-Aug-06 20:39 
AnswerRe: payment using paypal and 2checkout.com. Pin
Christian Graus20-Aug-06 20:49
protectorChristian Graus20-Aug-06 20:49 
GeneralRe: payment using paypal and 2checkout.com. Pin
Amit Agarrwal20-Aug-06 21:15
Amit Agarrwal20-Aug-06 21:15 
GeneralRe: payment using paypal and 2checkout.com. Pin
Christian Graus20-Aug-06 21:37
protectorChristian Graus20-Aug-06 21:37 
AnswerRe: payment using paypal and 2checkout.com. Pin
seee sharp20-Aug-06 21:46
seee sharp20-Aug-06 21:46 
AnswerRe: payment using paypal and 2checkout.com. Pin
Ramasubramaniam21-Aug-06 4:47
Ramasubramaniam21-Aug-06 4:47 
Questionhow can i Autosave the data using Ajax Pin
Amit Agarrwal20-Aug-06 20:30
Amit Agarrwal20-Aug-06 20:30 
AnswerRe: how can i Autosave the data using Ajax Pin
Christian Graus20-Aug-06 20:52
protectorChristian Graus20-Aug-06 20:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.