Default.aspx <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication2._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <input id="Hidden1" type="hidden" runat="server" /> </div> </form> </body> </html>
Default.aspx.vb Partial Public Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Hidden1.Value = "" '' getting error like ->Name "Hidden1" is not declared End Sub End Class
Partial Public WebApplication2._Default Inherits System.Web.UI.Page
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)