Thursday, March 24, 2011

C# how to call Javascript

If You are using asp.net ajax(script manger) you can write the following code


ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Facility", "alert('Select any Facility');", true);

Grid view eval value pass to JavaScript arguments

Following sample Code will help how to pass JavaScript arguments

Sample Code
===========
javascript
-----------

function showPropertiesPage(databound)
{

}

Aspx Code
----------