Cover | Table of Contents | Colophon
RadioButtonList with two items:
Single and Married. To do so, switch to Source View and add the
following bold lines:<asp:RadioButtonList ID="rblMaritalStatus"
runat="server" AutoPostBack="True">
<asp:ListItem>Single</asp:ListItem>
<asp:ListItem>Married</asp:ListItem>
</asp:RadioButtonList><br />
btnSearch) and
enter the following code on the code-behind to redirect the search
string to Google's site:Protected Sub Page_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles Me.Load
'---inserting client-side script
Dim script As String = _
"alert('Time on the server is " & Now & "');"
Page.ClientScript.RegisterClientScriptBlock( _
Me.GetType, "MyKey", script, True)
End Sub
Server.Transfer. Even so, passing values from one
page to another this way is a challenge.
http://www.oreilly.com/catalog/aspnetadn/.
http://www.oreilly.com/catalog/aspnetadn/.
http://www.oreillynet.com), pages that belong
to the ONDotnet subsite display the ONDotnet logo (a leaping dolphin)
in their headers, rather than the generic O'Reilly
Network logo (the ever-familiar tarsier). Pages at other subsites,
such as Perl.com and ONLamp.com, do likewise.
SiteMapDataSource
SiteMapPath
Menu
TreeView
http://www.oreilly.com/catalog/aspnetadn/.
http://www.nissanusa.com) uses menus to allow
visitors of their site to choose the various vehicle models they want
to view.
SiteMapDataSource1 as its data source (see Figure 2-42). The SiteMapDataSource1 control was added
when the TreeView control was configured earlier.
WebPartManagerControl and one
or more WebPartZone controls to the
page.WebPartManager
WebPartZone
<asp:RadioButtonList ID="rblMode" runat="server" AutoPostBack="True">
<asp:ListItem>Browse Display Mode</asp:ListItem>
<asp:ListItem>Design Display Mode</asp:ListItem>
</asp:RadioButtonList>
BrowseDisplayMode). To allow users to move
Web Parts, you need to set the display mode to design display mode
(DesignDisplayMode).Protected Sub rblMode_SelectedIndexChanged( _
ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles rblMode.SelectedIndexChanged
Select Case rblMode.SelectedIndex
Case 0 : WebPartManager1.DisplayMode = _
WebPartManager.