Click here to Skip to main content
15,915,851 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Frieds,

Here i want Some Information About Cursor in Asp.net.

Example:when i click the some button:this.form1.Attributes.Add("style", "cursor:wait");

and this.form1.Attributes.Add("style", "cursor:default");

But this in JavaScript,but i want sever side coding in c# can anyone help regarding this.


Regards,

Anilkumar.d
Posted

1 solution

Do you realize that anything which happens with Web application UI happens in client side only, inside a Web browser? APS.NET only generates content which is rendered on the client side, even though it might look like server side deals with UI directly. It does not. You can always generate JavaScript code you demonstrated in your question, as well as any other.

—SA
 
Share this answer
 
Comments
Anil Honey 206 7-Sep-11 23:44pm    
What u said is Correct But iam facing some problem in Button event fires the cursor should be wait.i have written like this ImageButton2.Attributes.Add("onClick", "javascript:return doHourglass()"); from javascript iam calling.So after Completing the Button event i have used one dailogbox means if (ret == DialogResult.OK)
{
GenerateReport(sfg.FileName.ToString());
ImageButton2.Attributes.Add("onClick", "javascript:return doHourglass1()");
}
sfg.Dispose();

doHourglass() is for wait

doHourglass1() is for default.

But its not working after Deafault also the cursor is still in wait position.Iam not gettting where iam doing mistake.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900