Development ASP.Net

<%@ Page Language="VB" %>

    Sub Page_Load(Sender As Object, E As EventArgs)
        If Request.Form("txtName") <> "" Then
            lblSentence.Text = Request.Form("txtName") _
                & " selected " & Request.Form("ddlColor")
        End If
    End Sub



ASP.NET Viewstate Form Sample #1



    Enter Your Name:
    
    Pick a Color: