I have a best practice question.
I have company declared on the code behind page as Public.
I want it to display in a table (not built yet) on my script page. Is it still acceptable to use the response.write("") like <%=company%> which works fine or should the var be placed in a container like a TB or Lable?
Thanks
I have company declared on the code behind page as Public.
I want it to display in a table (not built yet) on my script page. Is it still acceptable to use the response.write("") like <%=company%> which works fine or should the var be placed in a container like a TB or Lable?
Thanks
Code:
<script language="vbscript" runat="server">
Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim drbol As SqlDataReader
Dim sqlbol As String = ClSql.getsql("bol", "2009020300552")
drbol = getmiscdata.getdata(sqlbol)
While drbol.Read
company = (drbol(2))
End While
End Sub
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<%=company%>
</div>
</form>
</body>