|
ooohhh ok.
but be careful if your laptop's regional settings is different with your servers. if that's happens, i may suggest, you can use CultureInfo class.
yes. you were right. i just know that when i posted it... :p
thank you too redha
|
|
|
|
|
Hi...
How to Exporting multiple GridView to multiple sheets in single excel file.
please help me.
Pradeep Reddy
|
|
|
|
|
Have you attempted to solve the problem yourself?
If not, why not?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi all,
I having a string like this
<INPUT onkeypress=ValidateTime() id=t2_2 onblur=validateBtime(document.Baco.t2_2) style="WIDTH: 50px\" maxLength=5 value=20:00 >
Now I want to replace the
value=20:00
with another value. How can I do this using Javascript.
Thanks
Dana
|
|
|
|
|
danasegaranea wrote: How can I do this using Javascript.
By writing a regular expression.
It's generally considered rude to ask someone to do your work for you without having made a serious attempt to solve the problem yourself. There are plenty of examples of regular expressions available on the web if you look for them. I suggest you go away and do some research.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I have a problem which i am facing in my chat application. I am working on asp.net 2.0 and C#. My problem is regarding a sound functionality. I have to provide a visitor with a functionality of ringing a bell on the visitor chat window page. So when the visitor rings the bell, it is supposed to ring on the operator's machine. Now i have the below mentioned code... This works fine on a local environment, but when i uploaded this to my server, it doesn't work...
the logic is as follows... i have 2 pages - the visitor chat window & the operator chat window...
When the visitor presses the bell icon on the visitor chat window page, i write his ID & Is Belled flag onto to an XML file.
Now on the operator side i check continuously for correct operator receiving the ringing. Then i am calling the sound function on my server. No plug ins are used...
string soundPath = "";
soundPath = "http://"+Request.ServerVariables["HTTP_HOST"]+"/images/LiveChatImages/ringout.wav";
System.Media.SoundPlayer myPlayer = new System.Media.SoundPlayer();
myPlayer.SoundLocation = soundPath;
myPlayer.Play();
i am using the soundplayer class in asp.net 2.0
another code i also tried with no success is below:
public void PlaySound()
{
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);
}
public class WSounds
{
[DllImport("WinMM.dll")]
public static extern bool PlaySound(string fname, int Mod, int flag);
// these are the SoundFlags we are using here, check mmsystem.h for more
public int SND_ASYNC = 0x0001; // play asynchronously
public int SND_FILENAME = 0x00020000; // use file name
public int SND_PURGE = 0x0040; // purge non-static events
public void Play(string fname, int SoundFlags)
{
PlaySound(fname, 0, SoundFlags);
}
}
Anybody can help me with my problem... both these codes are working in my local system ... but none work on the server. Can anybody point out where i am wrong?
Thanks & regards,
S.Dhanasekaran
dhansmani@gmail.com
|
|
|
|
|
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
|
|
|
|