"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:uU**************@TK2MSFTNGP02.phx.gbl...
In 1.x, you'd go into your codebehind and do:
protected Email as TextBox
sub page_Load(..)
Email.Text = Request.QueryString("Email")
end sub
in 2.0 you could omit the 1st line..
Karl
--
http://www.openmymind.net/
Thank you kindly, this worked a treat. Sorry to be a nuisence, could you I
would like to apply the exact same principle to this control:
<asp:DropDownList ID="TypeOfParrot" Runat="server" name="TypeOfParrot"
class="textbox">
<asp:ListItem Value="">Please Select</asp:ListItem>
<asp:ListItem Value="Cockatoo">Cockatoo</asp:ListItem>
<asp:ListItem Value="MaCaw">MaCaw</asp:ListItem>
<asp:ListItem Value="African Grey">African Grey</asp:ListItem>
</asp:DropDownList>
So if the Querystring in the URL had domain.com?Parrot=Cockatoo , the
DropDownList above would default to this value both visually and behind the
scenes.
Any help again appreciated!!
Regards,
Gary.
PS - Really need to learn .net, and fast.