Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

ASP.NET Default Button

I have a home.aspx page that loads controls based on Request.Params

The Case statement in the Master Page is

 Select Case CStr(Request.Params("page"))
            Case "home" --------------------
A bunch of case statements
---------------------------

Case Else
                Session("info") = " Home Page"
                Dim uc As UserControl = CType(LoadControl("includes/login.ascx"), UserControl)
                uc.ID = "uc99"
                ContentPlaceHolder1.Controls.Add(uc)
End Select

includes/login.ascx has this button
<asp:ImageButton ID="ImageButton1" src="images/btnLogin.jpg" runat="server" TabIndex="1"  />

How do I make that the default if someone just hits the enter key?

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of newyuppie
newyuppie
Flag of Ecuador image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Larry Brister

ASKER

Excellent...to the point...and right on time.  With a code example.  Some of the experts could take a lesson from this answer.  Great job newyuppie.
thank you for the kind comments. im glad it helped you. cheers
NY