Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to add cliet side event to server side?
and
how to register client script to sever side? wt difference
these two

Answer Posted / yogesh sharma

ClientScript.RegisterStartupScript(Me.GetType
(), "script", "<script language=""javascript"">function1(){}
</script>")

and

ClientScript.RegisterClientScriptBlock(Me.GetType
(),"script","<script language='javascript'>function1(){}
</script>

above two methods use to add client side event to server
side.

Difference between above two is that

ClientScript.RegisterStartupScript will insert script
before closing </form> tag.

and

ClientScript.RegisterClientScriptBlock will insert script
after form start tag <form runat=server > of the page.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

calling result set one procedure to anothar procedure in sql2000

1699


What does the hotspot class in .net do?

952


Why do we need asp.net?

979


How would you create a permanent cookie?

981


How many languages are supported by .NET at present time?

718


What's the difference between viewstate and sessionstate?

997


How is my content secured from unauthorized access?

910


How you can manage the state of application at the server side in ASP.NET?

1014


Fetch one page value to another page without using state-managment ?

853


What is asp.net and how it works?

946


Is asp.net different from asp? If yes, explain how?

969


How does ASP.NET framework maps client side events to Server side events.?

1029


What are the advantages of asp.net mvc framework? : asp.net mvc

972


What is connection pooling and how to enable and disable connection pooling?

958


Why asp.net is used?

979