Click here to Skip to main content
15,884,388 members
Home / Discussions / C#
   

C#

 
AnswerRe: can't play song ! Pin
Anthony Mushrow23-Oct-07 10:56
professionalAnthony Mushrow23-Oct-07 10:56 
QuestionC# app using a C++ dll Pin
LCI23-Oct-07 8:22
LCI23-Oct-07 8:22 
AnswerRe: C# app using a C++ dll Pin
Giorgi Dalakishvili23-Oct-07 8:59
mentorGiorgi Dalakishvili23-Oct-07 8:59 
GeneralRe: C# app using a C++ dll Pin
LCI23-Oct-07 12:02
LCI23-Oct-07 12:02 
GeneralRe: C# app using a C++ dll Pin
Luc Pattyn23-Oct-07 12:06
sitebuilderLuc Pattyn23-Oct-07 12:06 
GeneralRe: C# app using a C++ dll Pin
Mohib Sheth23-Oct-07 16:47
Mohib Sheth23-Oct-07 16:47 
GeneralRe: C# app using a C++ dll Pin
LCI24-Oct-07 2:59
LCI24-Oct-07 2:59 
QuestionI can't make a music play with WMP in an aspx page. [modified] Pin
whale8423-Oct-07 7:50
whale8423-Oct-07 7:50 
I have a webform.aspx like this :

<body MS_POSITIONING="GridLayout"><br />
		<form id="Form1" method="post" runat="server"><br />
			<asp:Panel id="Panel1" style="Z-INDEX: 102; LEFT: 24px; POSITION: absolute; TOP: 24px" runat="server"<br />
				Width="210px" Height="272px">Panel <br />
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="300" border="1"><br />
					<TR><br />
						<TD><br />
							<OBJECT id="Player" style="WIDTH: 121.92%; HEIGHT: 265px" height="265" width="121.92%" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"<br />
								 VIEWASTEXT><br />
<PARAM NAME="URL" VALUE="path"><br />
								<PARAM NAME="rate" VALUE="1"><br />
								<PARAM NAME="balance" VALUE="1"><br />
								<PARAM NAME="currentPosition" VALUE="1"><br />
								<PARAM NAME="defaultFrame" VALUE=""><br />
								<PARAM NAME="playCount" VALUE="10"><br />
								<PARAM NAME="autoStart" VALUE="-1"><br />
								<PARAM NAME="currentMarker" VALUE="0"><br />
								<PARAM NAME="invokeURLs" VALUE="-1"><br />
								<PARAM NAME="baseURL" VALUE=""><br />
								<PARAM NAME="volume" VALUE="100"><br />
								<PARAM NAME="mute" VALUE="0"><br />
								<PARAM NAME="uiMode" VALUE="full"><br />
								<PARAM NAME="stretchToFit" VALUE="0"><br />
								<PARAM NAME="windowlessVideo" VALUE="0"><br />
								<PARAM NAME="enabled" VALUE="-1"><br />
								<PARAM NAME="enableContextMenu" VALUE="0"><br />
								<PARAM NAME="fullScreen" VALUE="0"><br />
								<PARAM NAME="SAMIStyle" VALUE=""><br />
								<PARAM NAME="SAMILang" VALUE=""><br />
								<PARAM NAME="SAMIFilename" VALUE=""><br />
								<PARAM NAME="captioningID" VALUE=""><embed src="path" width="100%" height="223" autostart="1" align="middle" url="path" volume="100"<br />
									stretchtofit="100%"> </embed><br />
							</OBJECT><br />
						</TD><br />
					</TR>									</TABLE><br />
<br />
	</asp:Panel><br />
		</form><br />
	</body>

And a webform.aspx.cs like this

private void Page_Load(object sender, System.EventArgs e)<br />
		{<br />
			// Put user code to initialize the page here<br />
			Utility = new CCUtility(this);	<br />
			string id_bh = Request.QueryString["item_id"];<br />
			id_BH = Convert.ToInt32(id_bh)	;<br />
			string sSql = "SELECT Link FROM tblBaiHat WHERE id_BaiHat='" + id_bh + "'";<br />
			SqlDataAdapter dad = new SqlDataAdapter(sSql,Utility.Conn);<br />
			DataSet dts = new DataSet();<br />
			dad.Fill(dts,"tblBaiHat");<br />
									        path= (string)dts.Tables[0].Rows[0]["Link"];<br />
			Panel1.DataBind();<br />
											}


Variable path look like 'D:\song.wma' for example.
Why WMP can't play this song.Help me please !






-- modified at 13:56 Tuesday 23rd October, 2007

nothing

AnswerRe: I can't make a music play with WMP in an aspx page. Pin
Dave Sexton23-Oct-07 12:16
Dave Sexton23-Oct-07 12:16 
Questionsetup in c# with installation folder not in programfiles Pin
sujithkumarsl23-Oct-07 7:21
sujithkumarsl23-Oct-07 7:21 
AnswerRe: setup in c# with installation folder not in programfiles Pin
il_masacratore23-Oct-07 11:15
il_masacratore23-Oct-07 11:15 
QuestionListBox item Flickering Pin
topksharma198223-Oct-07 6:55
topksharma198223-Oct-07 6:55 
AnswerRe: ListBox item Flickering Pin
Luc Pattyn23-Oct-07 12:12
sitebuilderLuc Pattyn23-Oct-07 12:12 
QuestionOnly see "Content Files" not "Primary Output" Pin
ONeil Tomlinson23-Oct-07 5:32
ONeil Tomlinson23-Oct-07 5:32 
AnswerRe: Only see &quot;Content Files&quot; not &quot;Primary Output&quot; Pin
sujithkumarsl23-Oct-07 5:49
sujithkumarsl23-Oct-07 5:49 
GeneralRe: Only see &quot;Content Files&quot; not &quot;Primary Output&quot; Pin
ONeil Tomlinson23-Oct-07 5:52
ONeil Tomlinson23-Oct-07 5:52 
GeneralRe: Only see &quot;Content Files&quot; not &quot;Primary Output&quot; Pin
sujithkumarsl23-Oct-07 6:05
sujithkumarsl23-Oct-07 6:05 
QuestionProbleme mouse event When hosting Win32 in WPF Pin
k_samsamsam_k23-Oct-07 4:04
k_samsamsam_k23-Oct-07 4:04 
AnswerRe: Probleme mouse event When hosting Win32 in WPF Pin
Fred Griggs15-Jun-08 0:50
Fred Griggs15-Jun-08 0:50 
Questionhow to access a ms access database in c# and use the fetched infos Pin
stephan_00723-Oct-07 3:33
stephan_00723-Oct-07 3:33 
AnswerRe: how to access a ms access database in c# and use the fetched infos Pin
pmarfleet23-Oct-07 4:03
pmarfleet23-Oct-07 4:03 
GeneralRe: how to access a ms access database in c# and use the fetched infos Pin
stephan_00723-Oct-07 4:21
stephan_00723-Oct-07 4:21 
GeneralRe: how to access a ms access database in c# and use the fetched infos Pin
pmarfleet23-Oct-07 4:54
pmarfleet23-Oct-07 4:54 
QuestionAccessing control of another form Pin
Rahul Babu23-Oct-07 2:46
Rahul Babu23-Oct-07 2:46 
AnswerRe: Accessing control of another form Pin
J4amieC23-Oct-07 3:01
J4amieC23-Oct-07 3:01 

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.