Hi friends, Is it possible to find duration of an audio file? if so please guide me with information. :sigh:
B87
Posts
-
Duration of audio files -
debugging BHO[Message Deleted]
-
Store file in particular locationHi friends, I am using the following code to read a table and store the table as a text file it works fine but i want to store the text file in a specific location according to need,any function to do it?By default it is storing in desktop how to change it? StringBuilder str = new StringBuilder(); for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++) { for (int j = 0; j <= ds.Tables[0].Columns.Count - 1; j++) { str.Append(ds.Tables[0].Rows[i][j].ToString()); } str.Append(Environment.NewLine); } Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=FileName.m3u"); Response.Charset = ""; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = "application/vnd.txt"; System.IO.StringWriter stringWrite = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); Response.Write(str.ToString()); Response.End();
-
Problem with dynamic radio button [modified]Hi freinds, Iam creating radio buttons at runtime it is working fine in internet explorer but with firefox it is very difficult to select radio button. I am using ASP.NET c#,version 2.0 this is the code iam using, RadioButton rd = new RadioButton(); rd.ID = "id" + i.ToString(); rd.Text = ans[i]; rd.GroupName = "dynrd"; And binding needed RB to Panel like this, Panel1.Controls.Add(rd); How to solve it....I can select radio button but it is very difficult to select.
modified on Monday, December 22, 2008 8:43 AM
-
Multiuser votingThats k,no problem i goin to now something.... I will try it....
-
Multiuser votingThanx, Thats 100% true.
-
Multiuser votingThanx Christian Graus, It will bw usefull for me if u give me link that can guide me on how to write cookie. :)
-
Multiuser votingHi friends, I have created voting system every user can vote not only registered users,so i want to add some security to it,i need some ideas on how to prevent multiuser voting. I dont know exactly may be like checking cookies r session r something else.
-
Embded media playerHi friends, I have add a embded windows media player in my site using following code, <object id="wmp" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" style="width: 475px; height: 367px;" type="application/x-oleobject" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"> <param name="URL" value="<%=url_filename %>"/> <param name="enabled" value="True"/> <param name="AutoStart" value="True"/> <param name="PlayCount" value="0"/> <param name="Volume" value="50"/> <param name="balance" value="0"/> <param name="Rate" value="1.0"/> <param name="Mute" value="False"/> <param name="fullScreen" value="False"/> <param name="uiMode" value="full"/> <param name="ShowStatusBar" value="True" /> <param name="SendPlayStateChangeEvents" value="True" /> <param name="autorewind" value="True" /> </object> But its not supporting many formats is there is any way to code such that it will accept some additional formats and one more problem is i uploaded this in server but some formats which can play in my system cant supported in other systems. :confused:
-
Session checkingHi friends, I have created voting application,i have almost finished it but i should check that one user should vote once by getting his session any idea for this.... Checking IP address will prevent other users voting so i need to take user browsers session or some other ideas for this method.....
-
File UpoladHi, Thanx for replying,i am sure that i have given the right path i have checked many times. Is there is any other way to do the upload.
-
File UpoladHi, I need to upload file in a folder at FTP server,i have already posted this but i need a coding guide not a software for this. The code i used is, txtfilurl.Text = FileUpload1.PostedFile.FileName; FileInfo filename = new FileInfo(txtfilurl.Text); FtpWebRequest request = (FtpWebRequest)WebRequest.Create(txtaddr.Text + "/" + filename.Name); request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential(txtuser.Text, txtpass.Text); request.KeepAlive = false; request.UseBinary = true; Stream ftpstream = request.GetRequestStream();//--->This line shows the error FileStream file = File.OpenRead(txtfilurl.Text); int len = 1024; byte[] buff = new byte[len]; int bytesread = 0; do { bytesread = file.Read(buff, 0, len); ftpstream.Write(buff, 0, bytesread); } while (bytesread != 0); file.Close(); ftpstream.Close(); Error msg is:Web exception The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
-
File upload to FTP serverThank u for ur suggestion i will look for it....
-
File upload to FTP serverHi friends, Iam getting an error while uploading a file to server like this, The remote server returned an error: (550) File unavailable (e.g., file not found, no access) The following line shows the error, Stream ftpstream = request.GetRequestStream(); Any suggestions for this :^)
-
[Message Deleted][Message Deleted]
-
Video PlayerHi friends, Is it possible to create player which can play all formats of video files using c#.If so give me some suggestion to do that.
-
Removing componentsHi, Iam getting HTML code from one of my webpage,i have to use that in another page but before that i have to remove some components and take only one table from that page.Is it possible to do this?any sample pgm for this?
-
Fetch HTML codeHi, I have multiline textbox which will has input as HTML code,How to fetch a particular data from that?
-
Image displayHi guys, any idea to display image in webpage directly from database (image control need url) i want to display it without url is it possible? or any other way to do this?
-
Picture boxThen any idea to display image in webpage directly from database (image control need url) i want to display without url is it possible?