G
Guest
I have a user control (.ascx) on a web form (.aspx). So far no code other
than on the page
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
Inherits="Test.default"%>
<%@ Register TagPrefix="test" TagName="test1" Src="test1.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>default</title>
</head>
<body>
<form id="Form1" method="post" runat="server">
<test:test1 id="myTest" Runat="server" />
</form>
</body>
</html>
and in the control there is no code. i want to add this line in the control
page load.
Page.RegisterStartupScript("ctrlId","<script>var ctrlId='"+this.ClientID
+"_';</script>")
but intellisense doesnt have a clue as to that line, it won't compile. BTW
this is ASP.Net 1.1.
Help
than on the page
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
Inherits="Test.default"%>
<%@ Register TagPrefix="test" TagName="test1" Src="test1.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>default</title>
</head>
<body>
<form id="Form1" method="post" runat="server">
<test:test1 id="myTest" Runat="server" />
</form>
</body>
</html>
and in the control there is no code. i want to add this line in the control
page load.
Page.RegisterStartupScript("ctrlId","<script>var ctrlId='"+this.ClientID
+"_';</script>")
but intellisense doesnt have a clue as to that line, it won't compile. BTW
this is ASP.Net 1.1.
Help