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

What is ascx?

923


What are httphandlers and httpmodules and difference between them?

964


How can we apply themes to an asp.net application?

997


What is cache in asp net?

966


Where do the cookie state and session state information be stored?

885


Explain the benefits of viewstate?

968


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

961


Can I tap into other windows livetm services?

943


What is different authentication mechanisms used in ASP.NET?

1058


What are the two types of web pages?

907


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

2109


WSDL means?

1099


What is asp short for?

966


What are the new data controls in asp.net 2.0?

918


What is the page life cycle in asp.net?

934