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 / raju

we can register client script in serverside also....if u
want to make it in serverside use this code...

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

(or)

Me.Page.RegisterClientScriptBlock("close", "<script
language=javascript>javascriptcode......</script>")

I think there is no difference b/n those two....depending
upon the situatio we can use any of these....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

2226


Why mvc is better than asp.net? : Asp.Net MVC

945


Explain the function of new view engine in asp.net? : asp.net mvc

1017


Difference between .NET and previous version?

2577


Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?

1028


Explain the server control events of asp.net ?

993


What is a page life cycle? What are the events in a page life cycle?

884


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

940


What are the major built-in objects in ASP.NET?

1092


Write a code for passing ArrayList in Web API?

1531


What are sql joins?

986


What is the use of session state and application state and difference between them?

914


if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....

2119


Is there any property names “isnavigating”?

1044


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

1031