Calling C# function(code behind) from javascript function

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Sep 2007
Posts: 7
Reputation: Ninad is an unknown quantity at this point 
Solved Threads: 0
Ninad's Avatar
Ninad Ninad is offline Offline
Newbie Poster

Calling C# function(code behind) from javascript function

 
0
  #1
Sep 26th, 2007
Hi,

I have a problem in my code.
I am putting a image icon in my coe and want to call the code behind function Left_Click() on its OnClick() event.
But the Click event is generating after two times clicking.
and I have wriiten in the Page Load event
I want to write in PageLoad() method

as.Add.Attributes("onclick","javascript:Lef_Click();return false;

For this I have to write a javascript function Lef_Click() and have to call that code behind function Left_Click() in it.
Is there any method to do this.
Please! Help me out.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC