I have two questions to ask in this forum
1) How to include java script file in .aspx file?
2) I wrote a following class with a function called JavaScriptFunct ion. The issue I am facing is when I am using this function to display message, the background of web page was white ie no style sheets were applied to .aspx page and no others controls were displayed. When I click on “ok”, I am coming back to same page.
The code for the JavaScriptFunct ion is as follows
public static void JavaScriptFunct ion(string alertmessage)
{
System.Web.Http Context.Current .Response.Write ("<script language='javas cript'>");
System.Web.Http Context.Current .Response.Write ("alert('" + alertmessage + "')");
System.Web.Http Context.Current .Response.Write ("</SCRIPT>");
}
.
Thanks in advance
surya
1) How to include java script file in .aspx file?
2) I wrote a following class with a function called JavaScriptFunct ion. The issue I am facing is when I am using this function to display message, the background of web page was white ie no style sheets were applied to .aspx page and no others controls were displayed. When I click on “ok”, I am coming back to same page.
The code for the JavaScriptFunct ion is as follows
public static void JavaScriptFunct ion(string alertmessage)
{
System.Web.Http Context.Current .Response.Write ("<script language='javas cript'>");
System.Web.Http Context.Current .Response.Write ("alert('" + alertmessage + "')");
System.Web.Http Context.Current .Response.Write ("</SCRIPT>");
}
.
Thanks in advance
surya
Comment