Andrew Siemer's Blog
Enterprise Web Applications, ASP.NET, C#, SQL Server, Architecture, & Writing
Blog Stats
Posts - 59
Articles - 0
Comments - 128
Trackbacks - 0
Home
Archives
Contact
Login
<< "...did you hear that man?..."
|
Home
|
LINQ to SQL - many to many relationships not supported! (yet?) >>
Setting a default button when using master pages
Its always the little things in life! This was pretty easy...once I found it that is.
this.Form.DefaultButton = this.ButtonControl.UniqueID.ToString();
Share This Post:
Print
posted @ Monday, November 05, 2007 4:04 PM
Feedback
#
re: Setting a default button when using master pages
If you place your asp:Button in an asp:Panel you can set the defaultButton property of the panel to the button you desire.
This is especially handy on pages with multiple input "forms".
11/5/2007 5:32 PM |
Jason Whitehorn
#
re: Setting a default button when using master pages
But how change graphics and ser colour for the button? .. thanks
12/15/2007 5:54 AM |
Regali di Natale
#
re: Setting a default button when using master pages
You can set the color of the buttons in two primary ways...using CSS/inline styles, or you can use ASP.NET themes.
Inline styles could look something like this:
/*color of the background of the button*/
background-color:#ff0000;
/*font color of the button*/
color:#ff0000;
Or you can do css something like this:
<style>
.buttonStyle
{
background-color:#ff0000;
color:#ff0000;
}
</style>
<asp:Button cssclass="buttonStyle" id="etc" runat="server" text="button"></asp:Button>
For more on themes look here: http://msdn2.microsoft.com/en-us/library/de93t31k.aspx
12/15/2007 10:51 AM |
Andrew Siemer
#
re: Setting a default button when using master pages
hi thanks
its working fine
8/27/2008 12:10 AM |
Srinivas Vadluri
#
re: Setting a default button when using master pages
Looking great! But one question why to use ToString() when UniqueId itself returns string!!
3/28/2009 3:59 AM |
Ajaykumar Raju
#
re: Setting a default button when using master pages
I have a problem, I have one master page however the default button is in webcontrol. How set default button in this case?
thanks
10/14/2009 5:53 PM |
angelestradamx
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
Enter the code shown above
Remember Me?
News
Twitter
asiemer
Contact me if you want to test drive the application we have been building - create a store and make some cash!
about 2 days ago
asiemer
Sharpening the sword
http://t.co/4TswACmU
about 9 days ago
asiemer
Sharpening the sword
http://t.co/mbwwuqrJ
about 9 days ago
asiemer
I'm a
#toughmudder
! Check out my new 2012 Tough Mudder Texas-Coast Finisher Badge!
http://t.co/p0CPAeWn
@toughmudder
about 10 days ago
asiemer
Udi says domain models are sagas! Interesting perspective.
about 15 days ago
asiemer
@jbogard
No Dell for you sir?
about 15 days ago
asiemer
Udi: The less your relational database is...the easier it is to upgrade them!
about 16 days ago
asiemer
I am hiring .net distributed systems guys at my company in Austin - backed by Dell
#CQRS
#aspnetmvc
#masstransit
about 16 days ago
asiemer
Sketchy
http://t.co/QFl44Zii
http://t.co/2tleHd6Q
about 16 days ago
asiemer
New Videos on CQRS/DDD and Practical CQRS
http://t.co/NzUJNC5d
about 17 days ago
Tag Cloud
asp.net mvc
Atif Aziz
BackLINQ
Ben Scheirman
Dependency Injection
ELMAH
Inversion of Control
Javier Lozano
Jayrock
LINQBridge
MoreLINQ
MVC Contrib
MVC Turbine
ReSharper
Sara J Chipps
spark view engine
more tags...
Recent Comments
Here are the videos from the conference on tekpub:...
by Andrew Siemer
Hi, any possibilities of getting the code you have...
by Shariful Islam
How can we get the code showed during Presentation...
by Ayub Patel
Hey Its really funny i like to see like these more...
by gratis online bingo
FileUltimate is an ASP.NET file manager control wh...
by asp net file browser
Archives
July, 2010 (1)
April, 2010 (1)
February, 2010 (1)
January, 2010 (4)
December, 2009 (3)
November, 2009 (11)
October, 2009 (2)
September, 2009 (1)
August, 2009 (1)
July, 2009 (2)
June, 2009 (1)
May, 2009 (3)
April, 2009 (3)
March, 2009 (3)
November, 2008 (2)
October, 2008 (2)
September, 2008 (2)
June, 2008 (2)
April, 2008 (1)
March, 2008 (1)
February, 2008 (5)
January, 2008 (1)
November, 2007 (2)
October, 2007 (4)
Post Categories
Writing / Editing Books
ASP.NET
C#
SQL
AJAX
Architecture
Automated Builds
Funny
My Monsters
LINQ
Friends
Frank Wang
My Other Blogs
ASP.NET 3.5 Social Networking
From Fat to Freak
Horse training, care, and riding
Photography
My public profiles
AndrewSiemer.com
FaceBook.com
LinkedIn.com
My boating stories
MySpace.com
Virtual .NET Users Group
Syndication:
RSS
ATOM
Hosted by
Copyright © Andrew Siemer - www.andrewsiemer.com