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 the latest version of asp.net?

1067


Why session is used in asp.net?

1066


What role “#&&” plays in a querysting?

1059


Can we create a multiple user simultaneously ?

1179


What does session_start () do?

1158


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

1263


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

2119


How does a content page different from a master page?

1077


What is %20 in a url?

949


What does mean by a neutral culture?

1134


Is there any limit for query string? Means what is the maximum size?

1002


Why we use content place holder in asp.net?

1091


What are the merits and demerits of viewstate?

1083


What are cookies in asp.net?

1113


What is application state?

971