|
S.Dhanasekaran wrote: This works fine on a local environment, but when i uploaded this to my server, it doesn't work...
This is always a sign that you're confusing what happens on the client and on the server.
S.Dhanasekaran wrote: string soundPath = "";
soundPath = http://"+Request.ServerVariables["HTTP_HOST"]+"/images/LiveChatImages/ringout.wav";
WSounds ws = new WSounds();
ws.Play(soundPath, ws.SND_FILENAME | ws.SND_ASYNC);
If you're doing it on the server, why not use a local path to the file ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
(That'll drive the people in the server room bat sh*t crazy if it has speakers, which could be fun!)
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Google <bgsound> for IE and <embed> for FF, etc.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Hi,
We have a C# windows appilcation that sends out emails to our customers. We want to put some buttons in the content of the mail and when the users click on the buttons, we want to send a reply to some address. We are facing the following problem in this task:
1. In the emails that the customers receive, we are not able to trap the button click event. How to do this? We want to write the code in the button click to send mails to an address. How do we capture the button click event in the mail content?
Thanks in advance
RS
|
|
|
|
|
Can you send the mail in html format and just use a simple mailto:
I'd be surprised if you are able to 'automatically' send emails from an embedded script. There are some security issues there if you think about it.
|
|
|
|
|
I'm trying to use a control I've downloaded, the vbAccelerator IconComboBox[^], but I can't get it to appear in the Toolbox. On the General tab I open "Choose items...", browse to the dll, and select it. I click OK, and the dialogue closes but the control appears nowhere. If I do another "Choose Items..." I see the control is still checked, as if it should be in the Toolbox, but I can't find it anywhere,
|
|
|
|
|
i want remove all of items that are in dropdownlist with javascript. do any body know how can i do this?source of dropdownlist is database.
|
|
|
|
|
Have you heard of Google[^]? It's a little-known tool that comes in handy when you want to learn about things.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
This is the weirdest error. I have several checkboxes on my page, and they all are defined the same way but the problem is only for one of them. The problem is that when I deselect the checkbox a postback will occur but the event will not fire.
The code for the checkbox is straight forward:
<asp:checkbox id="CheckBoxId" runat="server" oncheckedchanged="CheckedChangeFunction" autopostback="true" validationgroup="MyValidationGroup" text="My text" />
|
|
|
|
|
Found the error. The Enable property was set to false in the page_load (don't ask me why, I didn't write that part =))and for some reason the event was not fired when the box was unchecked.
|
|
|
|
|
Hello.
I think the problem is generated span.
Because your checkbox has value on attribute text.
Its populating a span, a input and a label tag.
Event "onchange" is writed on span tag. Its doesnt work.
If u use "onclick" its works.
Good luck.
Sorry i didnt see the date of post.
I hope this answer help someone next time enter here.
|
|
|
|
|
Hi,
i know than have many problam with the Session_End method
in the global.asax file.
my question:
i have a code than run in the session_end method
and this code was no execute. (the code activate other method in other class).
maybe i need to do something before?
for example:
....Session_End....
{
MyClass.MyMethod();
}
Thanks..
Tal
|
|
|
|
|
The Session_End method only runs if there is a persistent session object that times out. The session object is only persisted if you have stored any session variables in it.
Also, a common misconception is that the session ends when the browser window is closed, which is not the case. The session ends when the session object on the server times out (by default 20 minutes after the last request).
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
HI
I had two textboxes username and password and a button(Submit).
Now if i press Enter Key from Keyboard instead of clicking on Submit button
the page should be automatically redirected to another page..........
Please some one help me..........
Thanks in Advance
|
|
|
|
|
in the password text box u write this javascript so that it will automatically calls the submit button when enter key is pressed...
go to source code and in password text box u write onkeydown ="return submitClick(window.event)"
in javascript
function suubmitClic()
{
if(event.keycode==13)//enter key asci code..
{
document.getElementbyid("sumit button name.ClientID").click();
}
}
|
|
|
|
|
Hi all I am using this code to retrive the HTML Table values
<script language="javascript">
function checkall()
{
debugger;
var tbl=document.getElementById('tblCycle');
var tblLength=tbl.rows.length;
for(intcount=1;intcount<tblLength;intcount++)
{
var tblCells=tbl.rows.item(intcount).cells;
var tblCellCount=tblCells.length;
for (icount=0;icount<tblCellCount;icount++)
{
}
}
}
</script>
But I am facing the otherProblem. I have added TextBoxes in my table. But the outText is not printing the value from the textbox. If i use the innerHTML then it just print the attributes. How can Retrive the textbox values ?
Dana
|
|
|
|
|
Use the value property of the textbox element.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
i want to filter a dropdown list with java script code.
my drop down contain 1 2 3 4 5 ...
and i want show just 1 or 2 just one of them. can i remove the others? how?
|
|
|
|
|
HI, i am doing webapplicaton using validation controls...
I have 5 textboxex and 1 button in my page. i set validation controls like RequiredFieldValidator and CompareFieldValidator.
When i click on button without filling the form, all error messages are displaying at a time.. But i need to display message one by one..
what to do for this?
Thank you
G. Satish
|
|
|
|
|
in vb.net we can stop the fuctionality of a code for some time usig threads.in the same way is it possible to stop a javascript fuction for some time
|
|
|
|
|
Not really. Javascript is strictly single threaded, so if you pause the script for a few seconds, the browser freezes up totally and does nothing until the script continues.
If you want the execution of a script to continue after a while, use a timeout to start a function:
function work() {
window.setTimeout('work2();', 5000);
}
function work2() {
}
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
function work() { // do something window.setTimeout('work2();', 5000); // continue after 5 seconds}function work2() { // continue doing something}
sir will u explain once again plz..this example
Thanks in advance....
|
|
|
|
|
The setTimeout method adds a timer in the window object. After the specified time (5000 milliseconds), the code ('work2();') is executed, which will run the work2 function.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
i need coding in asp.net for the version controlling of documents with name , date modified and version no in the same way like your quick search (i.e., in the same way where my question is posted ), could you please help me ASAP
Sahi
|
|
|
|
|
Hi Guys using stroed procedure i try to display some datas in my datagrid,
This stored procedure working good in my query analyzer,
o/p will be like this:
01/01/2008 101 108 Other Expense
01/01/2008 101 109 Own Vehicle Fuel
01/02/2008 101 100 Air
01/02/2008 101 101 Train
01/02/2008 101 102 Bus
01/02/2008 101 103 Local Conveyance
01/02/2008 101 104 Boarding
But when i bind the values in my datagrid,
Its showing the datagrid dateplace only,
01/01/1900, i dont know whats the probs,
Anyone have idea abt this?,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|