Hi,i wan to show the video in asp.net page,so am using embed object.it is working in my local machine but after hosting that page not working in my machine.am adding this code in datalist control.embed code as follows Databindcode as follows DataTable VideoTable = new DataTable(); DataColumn VideoColumn; VideoColumn = new DataColumn(); VideoColumn.DataType = Type.GetType("System.String"); VideoColumn.ColumnName = "VIDEO"; VideoTable.Columns.Add(VideoColumn); foreach (string Files in Directory.GetFiles(System.Web.HttpContext.Current.Server.MapPath("Video"), "*.wmv")) { VideoTable.Rows.Add(Files); } One more doubt.will the embed object work all the browsers or it is a browser specific.in my local machine it is IE6 only.if it is a browser specific which is the best solution for showing the video
Kurian_Kurian
Posts
-
Embed object is not working -
How to use the 'OR' ConditionHi,this is my code.how to use OR condition in c# code,this code is not working.i want to check the selected image extension.if the extension .jpg or .bmp then it is going to this condition code.what is wrong in that. if (System.IO.Path.GetExtension(cmdBrowse.FileName).ToLower() != ".jpg" | System.IO.Path.GetExtension(cmdBrowse.FileName).ToLower() != ".bmp")
-
How to show header in DataListHi.How we can show header in DataList.i had given the property showheader=true,in this DataList only one column that is repeated column(3).Like Datagrid is there any propery for adding the Header.
-
Problem showing alert message from codeHi.I want to show the javascript alert message if the conditions fail,but the following code is not showing the alert message.when i am putting break point it is going to this code but not showing message.what is wrong in this code. Page page = HttpContext.Current.Handler as Page; if ((System.IO.Path.GetExtension(cmdBrowse.FileName).ToLower() != ".jpg") | (System.IO.Path.GetExtension(cmdBrowse.FileName).ToLower() != ".bmp") | (System.IO.Path.GetExtension(cmdBrowse.FileName).ToLower() != ".png")) { if (page != null) { page.ClientScript.RegisterStartupScript(page.GetType(), "msgbox", "alert('Upload only jpeg or bmp or png Images');", true); } }
-
Drop Down List Selected Value Problemit is Listing all the values in the dropdownlist but when i select any value am not getting that value.getting selected value=null or selectedindex=-1
-
Drop Down List Selected Value ProblemHi am binding the Data in the dropdownlist(cboYY).But after selecting the value am not getting the selected value always getting selectedIndex=-1 and the selected value is getting Null that code as follows string a =Convert.ToString(cboYY.SelectedIndex); string b = cboYY.SelectedValue; Databinding code as follows private void bindYear() { DataTable YearTable = new DataTable(); DataColumn YearColumn; YearColumn = new DataColumn(); YearColumn.DataType = Type.GetType("System.String"); YearColumn.ColumnName = "dobYear"; YearTable.Columns.Add(YearColumn); YearTable.Rows.Add("YYYY"); for (int i = 1940; i <= DateTime.Now.Year; i++) { YearTable.Rows.Add(i); } if (YearTable.Rows.Count > 0) { cboYY.DataSource = YearTable; cboYY.DataBind(); } YearTable.Dispose(); }
-
Embed ObjectI want to show the selected video clip in the asp page.so am using the embed object and iwant to pass the selected videos path to that object.i tried lot but none of them is working.embed object code below i used javascript to pass the value to the object but it is not working javascript follows function playAudio(){ var doc = document.getElementById('path'); var doc1 = document.getElementById('media'); doc.value=hdVideo.value; doc1.src=hdVideo.value; } hdVideo is a hidden field,am setting value in this hidden field from their am taking the value.if am doing window.alert am getting the value,suppose if am hardcoding this value in the embed object it is working.but i want to pass the value at run time. Then body onload event i called this javascript.
-
Javascript ProblemHi Sandeep am sending my code. why the code is not showing after posting.what format i should use for showing the complete code.Now it is showing some part only. Javascript function function openWindow(url) { window.open(url,'Calendar', 'width=500,height=400,left=200,top=250'); } Link Button Code  LinkButton if am just passing 'userdetails.aspx' it will work.i will get popup window.but i want to add each record id also along with that. -- modified at 11:00 Wednesday 17th October, 2007
-
Javascript ProblemHi Sandeep, I Tried with your code,it is not showing any error,page is loading,but when i click on the Link Button am not getting the popup window,that time not showing any error message.
-
Javascript ProblemI want to show the selected records Details on the next page with in the Popup window.iam displaying all the details in the Datagrid,i add one Link button in the Item template when click on this link button it should show the popup window.am binding the data while page loading. Javascript Code as follows function openWindow(url) { window.open(url,'Calendar', 'width=500,height=400,left=200,top=250'); } LinkButton PostbackUrl code as follows PostBackUrl="javascript:openWindow('UserDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>');">LinkButton when am running this page am getting this error message 'The server tag is not well formed'.It is showing in the Postbackurl code line.what is wrong in this line.
-
What is wrong in the JavascriptI want to show a popup window on while clicking a link button .i want to pass the url of the popup window and also the id of each record while Databinding.the code which i used as follows. Javascript as follows function openWindow(url) { window.open(url,'Calendar', 'width=500,height=400,left=200,top=250'); } Link Button Postbackurl Code as follows PostBackUrl="javascript:openWindow('<%# Concatcolumns("UserDetails.aspx?id=",DataBinder.Eval(Container.DataItem,"ID"))%>');">LinkButton Concatcolumns Function as follows public static string Concatcolumns(object obj1, object obj2) { return Convert.ToString(obj1) + Convert.ToString(obj2); } My Javascript code and Concatcolumns functions are correct only problem in my Postbackurl code.what is wrong in that.while page loading i want to bind each record id along with the popup window javascript.
-
How to show a Movie or Video clip in the web pageCan anyone help me to show a Movie or Some Video clip in the Web page.can anyone send any link or get some ideas.
-
ShowModal window Erroram not getting the popup window when am clicking an image button.the code as follows am getting image in this button,but when clicking it is not going to the given page.
-
How to Play a Video MovieCan anyone help me how we can play a video clip or movie in the web page.anybody can get the code.
-
How to show a document in the same formatI want to show the history in the same format which is typing in the admin side.In the admin side i used textbox for typing the History,i written two ,three paragraphs from the admin side and save it.i will get correctly with the same format in the admin side,while saving am not using any trim.in the webside i used some controls label,table,datagris,datalist and textbox if am using other controls except text box this display continously.it will show like paragraphs.but when am using textbox i will get correctly.i don't want use textbox.why it is coming like this.is there any solution
-
HTML Table ErrorI am getting the following error when am adding a table in my page. Validation(XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'table' Validation(XHTML 1.0 Transitional): Attribute 'width' is not a valid attribute of element 'tr' Validation(XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'tr' My Code as follows. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminLogin.aspx.cs" Inherits="Admin_AdminLogin" %> <%----%> Test
I commended the second line eventhough still getting these errors.
-
How to avoid flickeringwhen am deleting a control from panel am getting flickering i add suspendlayout and performlayout eventhough it is getting.How to avoid this
-
How to Use Words in Unicode FontsI download one Malayalam unicode font and install it in the windows fonts.i could see this font in the word,but i cannot change the words to this font.My question is how we can use the unicode font in our webpage.i want to show some text in Malayalam,i had given the font for the Textbox is this Unicode font and when i open the webpage what all letters am typing in the Textbox still showing in English.suppose if we are using some unicode font in the webpage and when the people are opening the webpage will they get words in this font.how we can show a text in unicode fonts without installing the fonts in the clients machine.Because the contents every week it is changing so administrator has to do the changes.
-
How to show Text in Tamil FontsHi.In my web application there is a option for 'News' this news i want to show in Tamil.suppose if we are using some Tamil fonts and inserting all the news in Tamil,how the user will get in Tamil without installing the fonts in their machine.
-
How to show images in the DatagridHi.I want to show the images in the datagrid.i want to bound the datasource into datagrid.the method i used for retrieving images is written down.using this method am getting other fields.i add one template column in the datagrid and add one image control in that item template,the template column datafield given this sql image column name.sql image datatype is Image.i want to show all the images in the datagrid. public static DataSet getImages() { DataSet ds = new DataSet(); using (SqlConnection conn = new SqlConnection(connectionString)) { using (SqlCommand cmd = new SqlCommand("SPOC_PHOTOS_SELECT", conn)) { cmd.CommandType = CommandType.StoredProcedure; using (SqlDataAdapter da = new SqlDataAdapter()) { da.SelectCommand = cmd; try { conn.Open(); da.Fill(ds); return ds; } catch (Exception e) { throw e; return null; } finally { conn.Close(); } } } }