|
Hi,
How to play a music file as soon as the client click a button.
eg: when a user click a button a bell shall rang, it may be a small file.
Will the file take time to play even after it already play once?
Can it use as bell for calling token or to call a next person in the queue..etc. It need work in web application.
Thankyou
YPKI
|
|
|
|
|
hi friend u can easily play a file in asp.net...
copy a music file in solutiion-explorer...
and then drag it on the page...
and run the application...
and u can play the music file to click on the link..
|
|
|
|
|
Please do not give absurd answers when you have no idea about how to tackle it.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Is it?
|
|
|
|
|
It's great you want to help. In future, try to only answer questions where you know the real answer.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
You can use windows media player to play your file. I am not sure if there's any way to script it in javascript, you'd have to read up on that. You would host it on your server, and once it's downloaded, it can play over and over on the client side.
having a sound with a button is odd for a website, I would not bother if it's just for effect.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
//you can use like this... Preview is my folder name and TRAD.AVI is my video name
<embed src="Preview/TRAD.AVI" style="HEIGHT: 331px; LEFT: 83px; TOP: 171px; WIDTH: 538px" />
|
|
|
|
|
How can i pause the EMBED file and resum it later?
|
|
|
|
|
it opens in a windows media player... your can stop and run like working with media player.
|
|
|
|
|
I cant get the id and events of the embed windows media player. I want to pause it at runtime from code behind
|
|
|
|
|
Hello,
I have a problem. I have a email stored in database in fields (e.g. AddressLine1, Postal Code, Zip .. e.t.c.) I need a solution to display address to user in selected country format. It does't matter online service or offline dll. It doesn't matter free or paid service. Please, help
|
|
|
|
|
I'm confused at what you require.
Can you give some examples of what you need ?
Aren't all emails basically in the same format? name@domain
I'll try to help you.
|
|
|
|
|
If you are talking about the order of address components. i.e. (State, ZipCode) or (ZipCode, State) etc. then use String.Format function. The format string specific to each country may be stored in database.
|
|
|
|
|
i face an error Index was out of range. Must be non-negative and less than the size of the collection in this code plz help
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
|
|
|
|
|
|
haleemasher wrote: cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
use:
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex][0] + "'";
|
|
|
|
|
Please don't cross post.
if(e.RowIndex==-1)
return;
|
|
|
|
|
Damn - how stupid are people today ? What do you THINK that error message could mean ? Do you know how to use a debugger ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
hi all
i want to list all of the logged in users on a page , i did it fine
but i have a problem when the user close the browser i cant remove them from the list,
how can i get use of Session_End in the Global.asax .
this code is in Global.asax
private Code.BL.Users.SysUserCollection users = new Code.BL.Users.SysUserCollection();
public Code.BL.Users.SysUserCollection OnLineUsers
{
get { return users; }
set { users = value; }
}
this code is in BL
public class SysUserCollection : IList<SysUser>
{
List<SysUser> users = new List<SysUser>();
#region IList<SysUser> Members
public int IndexOf(SysUser item)
{
return users.IndexOf(item);
}
public void Insert(int index, SysUser item)
{
throw new Exception("The method or operation is not implemented.");
}
public void RemoveAt(int index)
{
users.RemoveAt(index);
}
public SysUser this[int index]
{
get
{
return users[index];
}
set
{
users[index] = value;
}
}
#endregion
#region ICollection<SysUser> Members
public void Add(SysUser item)
{
if (!this.Contains(item))
{
users.Add(item);
}
}
public void Clear()
{
users.Clear();
}
public bool Contains(SysUser item)
{
foreach (SysUser user in users)
{
if (user.UserId == item.UserId)
return true;
}
return false;
}
public void CopyTo(SysUser[] array, int arrayIndex)
{
throw new Exception("The method or operation is not implemented.");
}
public int Count
{
get { return users.Count; }
}
public bool IsReadOnly
{
get { throw new Exception("The method or operation is not implemented."); }
}
public bool Remove(SysUser item)
{
foreach (SysUser user in users)
{
if (user.UserId == item.UserId)
{
return users.Remove(user);
}
}
return false;
}
#endregion
#region IEnumerable<SysUser> Members
public IEnumerator<SysUser> GetEnumerator()
{
return users.GetEnumerator();
}
#endregion
#region IEnumerable Members
IEnumerator IEnumerable.GetEnumerator()
{
throw new Exception("The method or operation is not implemented.");
}
#endregion
}
thx
|
|
|
|
|
hi guys ,
i have to implement pre/next with numeric mode
like 1 2 3 4 5 next
pre 6 7 8 9 10 next
please tel me how to implemt this with complete discriptin ,as i am very new to custom paging
|
|
|
|
|
Did you ever searched it in google, before posting it over here ?
Have a look[^]
|
|
|
|
|
hi,
Is there a method or third party tool to convert page template to master page.
Thanks in advance.
|
|
|
|
|
What do you mean by "page template" exactly? A standard .aspx?
That's an interesting thought ... I'm assuming you mean if you have 50 pages that all have similar content, you want to (a) scan and extract what is common and (b) update the pages to now point to the master?
What's interesting is that the page designer can be parsed as XML so there is a lot of flexibility there, but I think the problem IMHO would be the references and designer.cs as well.
How large is your application? Sometimes brute force is the way to go, I'd be afraid any utility like that wouldn't be smart enough and I'd end up having to touch at least two or three things on each page anyway.
Jeremy Likness
http://csharperimage.jeremylikness.com/
|
|
|
|
|
plz chk the error in code n reply me
public partial class Default2 : System.Web.UI.Page
{
SqlConnection cnx = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|Coupon Management.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True");
SqlDataAdapter da1 = new SqlDataAdapter();
DataSet ds = new DataSet();
SqlCommand cmd = new SqlCommand();
DataTable dataTable;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
FillVendorGrid();
}
}
private void FillVendorGrid()
{
dataTable = new DataTable();
cmd.Connection = cnx;
cmd.CommandText = "SELECT Coupon_Info.RecievingDate, CouponType.CouponName, Coupon_Info.Serial_Start, Coupon_Info.Serial_End, Coupon_Info.Recieved_By FROM Coupon_Info INNER JOIN CouponType ON Coupon_Info.Coupon_TypeID = CouponType.CouponTypeID";
da1 = new SqlDataAdapter(cmd);
da1.Fill(dataTable);
GridView1.DataSource = dataTable;
GridView1.DataSource = ds;
GridView1.DataSourceID = String.Empty;
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
FillVendorGrid();
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
cmd.Connection = cnx;
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
cnx.Open();
cmd.ExecuteNonQuery();
cnx.Close();
FillVendorGrid();
}
}
modified on Thursday, July 2, 2009 5:32 AM
|
|
|
|
|
What is error message?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|