Samples,Code snippets, etc

Saturday, July 12, 2008

This post will be having Samples,Code snippets, etc

To start with, external javascript reference ,
Page.RegisterClientScriptBlock(string key, string script);

This peace of code register a client side JavaScript block with "Script Key" (If this is already registered then previous f.js file will be replaced) and script -- external file that is referenced.


if(Page.IsClientScriptBlockRegistered(string key))
this peace of code checks if script block is registered or not.


after that JavaScript fucntion can be called from the C# code, some what like this.
button1.Attributes.Add("onClick", "javascript:return function name();");

Samples,Code snippets, etc

This post will be having Samples,Code snippets, etc

To start with, external javascript reference ,
Page.RegisterClientScriptBlock(string key, string script);

This peace of code register a client side JavaScript block with "Script Key" (If this is already registered then previous f.js file will be replaced) and script -- external file that is referenced.


if(Page.IsClientScriptBlockRegistered(string key))
this peace of code checks if script block is registered or not.


after that JavaScript fucntion can be called from the C# code, some what like this.
button1.Attributes.Add("onClick", "javascript:return function name();");

New Technologies, tools, features, etc


This post will be having New Technologies, tools, features, etc in the .net industry and its related.
To start with, we provide the link to asp.net futures
http://www.asp.net/downloads/futures/


http://www.asp.net/DynamicData/


http://www.asp.net/MVC/


http://www.asp.net/ironpython/

New Technologies, tools, features, etc


This post will be having New Technologies, tools, features, etc in the .net industry and its related.
To start with, we provide the link to asp.net futures
http://www.asp.net/downloads/futures/


http://www.asp.net/DynamicData/


http://www.asp.net/MVC/


http://www.asp.net/ironpython/

LinkWithin

Blog Widget by LinkWithin

Recommended Books