CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/24/2006 8:23:57 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 49 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
Maulik Soni
Asp.Net User
DefaultButton Property and Master Pages3/24/2006 8:23:57 PM

0/0

Hello,

I have use following code to set the button as a default button on my customerInfo page.

<form id="Form1" Defaultbutton="SubmitButton" runat="server">

</form>

This works fine. but i have a different scenario. I

have used Master Page for my site. So obviously the <form> tag will be in the master page. not in the content page.

as a solution : I have used panel control to set the button as a default button on my content page.

DOES ANYone knows any other method for given scenario ?

maulik soni

[email protected]

 

 


Maulik Soni
Tech Lead (.NET Applications)
SvDeursen
Asp.Net User
Re: DefaultButton Property and Master Pages3/24/2006 10:02:49 PM

0/0

You can set it programmatically like this:

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Form.DefaultButton = "Button1";
    }
}

I hope this helps.

My blog
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. LeBlond, Pages: 989, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Access 2002: The Complete Reference Authors: Virginia Andersen, Pages: 1220, Published: 2001
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
A First Look at ASP.NET V. 2.0 Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 498, Published: 2004
Mastering Microsoft VBA Authors: Guy Hart-Davis, Pages: 707, Published: 2005
Access 2000: The Complete Reference Authors: Virginia Andersen, Pages: 1319, Published: 1999
Mastering VBA for Microsoft Office 2007 Authors: Richard Mansfield, Pages: 888, Published: 2008

Web:
Setting a default button when using master pages re: Setting a default button when using master pages. Gravatar If you place your asp:Button in an asp:Panel you can set the defaultButton property of the ...
HtmlForm.DefaultButton Property (System.Web.UI.HtmlControls) If you are using master pages in your application and you are setting the DefaultButton property from a content page, use the UniqueID property of the ...
How Do I Set the DefaultFocus or DefaultButton in a Page Based on ... NET with the Enter Key when I use Master Pages and your solution worked ! ... The form's default button is property is set to button 1, however if the user ...
ASP 101 - Quick Tips The new DefaultButton property addresses this issue by telling the form which button ... Update: Using DefaultButton and DefaultFocus with MasterPages ...
Setting default button using masterpages : button, default, masterpage Jun 20, 2007 ... Here's the problem: I'm using masterpages. ... controls to use the panel's default button property by including the controls in panel object ...
Default Button with Master Page - ng.asp-net-forum ... gaskell.org » Setting a default button using Master Pages in ASP. ... Can you specify how to set the DefaultButton property on a form ...
Panel's DefaultButton whims: not every IButtonControl is the same ... This result is a Panel control where the DefaultButton property actually works with LinkButtons in Master pages in both IE and Firefox! ...
ASP.NET default button - Stack Overflow I could wrap everything in asp Panels and set the DefaultButton property, but that seems a bit tedious. Is there a better way? asp.net masterpages ...
HtmlForm.DefaultButton Property (System.Web.UI.HtmlControls) If you are using master pages and you set the DefaultButton property from a content page, use the UniqueID property of the IButtonControl button. ...
Form.DefaultButton stopped working in firefox - bytes DefaultButton property in the docs that "If you are using master pages in your application and you are setting the DefaultButton property ...




Search This Site:










install business intelligence development studio

tabindex problem in windows forms

auto formating code on aspcompat code

downgrade project from 2008 to 2005

vb on mac

linking a details view control to a gridview control

i can not add a watch when debuging !!!

how to get information about visual studio ide???

lock compilation assembly in web.config

applying master pages through a config file and xhtml 1.0 transitional validation

owc control problem in asp.net

fail installing team foundation server on vmware/virtual machine

how to get rid of these dots

vs purchasing options

tfs source control compare

vs 2005 professional support vb 6.0 code?

same 2 usercontrols in an aspx page

typed data set designer

:@ vs.net 2005 installation issues

visual studio analyzer rpc bridge

logging application block

how to debug stored procedure in visual studio 2005

xsl:include reported as an error

bata one and web application

can't add a sql database in vs 2005

converting htm files to aspx files in visual studio 2005

new web site on vista 5308

app_code not working properly?

moving a project from one copy of visual studio to another

'asp' is an unrecognized tag prefix?

  Privacy | Contact Us
All Times Are GMT