Skip to content

Instantly share code, notes, and snippets.

@sohel-rana
Last active December 26, 2015 23:09
Show Gist options
  • Save sohel-rana/7227906 to your computer and use it in GitHub Desktop.
Save sohel-rana/7227906 to your computer and use it in GitHub Desktop.
string[] paramsStr=new string[4];
paramsStr[0]=ctrl1.ClientID;
paramsStr[1]=ctrl2.ClientID;
paramsStr[2]=ctrl3.ClientID;
paramsStr[3]=ctrl4.ClientID;
string script=string.Format(@"function IDIssue() {
var ctrl1=document.getElementById('{0}');
var ctrl2=document.getElementById('{1}');
var ctrl3=document.getElementById('{2}');
var ctrl4=document.getElementById('{3}');
// add necessary implemenation here
}",
paramsStr
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment