hi every one
i need help about if i can use inline code block to write out some variable or not:?
i am examined but i get this error
Code:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>
<body>
<script language="c#" runat="server">
void Page_Load()
{
Response.Write("hellow");
string strSql="hhhhh";
Response.Write(strSql);
}
</script>
<form runat="server">
<asp:TextBox runat="server" ID="i"></asp:TextBox>
<asp:Button runat="server" ID="submit" Text="insert"></asp:Button>
</form>
<%
Response.Write(strSql);//this line causes this error ->
//CS0103: The name 'strSql' does not exist in the current context
%>
</body>
</html>
what i must to do this .
Thanks in advance.
YoOrD.
Beauty is not on the face
Beauty is on the heart
~~<<Ghibran Khalil>>~~