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!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/15/2008 8:37:59 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 25 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
pbarunkumar
Asp.Net User
Using Common buttons....1/15/2008 8:37:59 AM

0/0

Hai guys,

Is it possible to use common buttons in a application?  I am using Master page in my application. That master page has some buttons (like new, save, edit..) How do i use these buttons in content pages? For example, If i click the save button it fires the current content page's save method. Please anyone give me a sample for this. Thanks in advance.

revkev
Asp.Net User
Re: Using Common buttons....1/15/2008 2:54:36 PM

0/0

Master pages are somewhat for "design" purposes.  My suggestion here is to create a simple ascx file (custom control) with your buttons and the logic behind them and then place the custom control on the page (drag and drop) and then there you have it!

You create the ascx page the same way that you would create any other page...  add the buttons, add the functionality, then save... basically it is like creating your own class!

cheers....


Remember to "Mark As Answer" if this post has helped you! Thanks....
And I say unto you, Ask, and it shall be given you; seek, and ye shall find; knock, and it shall be opened unto you...
LK 11:9
http://adventwebdesign.net
Amanda Wang - M
Asp.Net User
Re: Using Common buttons....1/17/2008 10:22:10 AM

0/0

Hi,

 

pbarunkumar:
That master page has some buttons (like new, save, edit..) How do i use these buttons in content pages?

I would suggest you declare a delegate event in the conent page.

For example:

Button btn = (Button)this.Page.FindControl("ctl00$ContentPlaceHolder1$btn");// find the btn control that is on the master page
        btn.Click += new EventHandler(btn_Click);//declare a delegate event

 protected void btn_Click(object sender, EventArgs e)
    {
        //.. try to write some handle code.

    }

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Read Me First!: A Style Guide for the Computer Industry Authors: Sun Technical Publications, Pages: 356, Published: 2003
Microsoft Office 2003 All-in-one: All-in-one Authors: Joseph W. Habraken, Pages: 951, Published: 2004
Microsoft Office Specialist Excel: Study Guide Authors: Linda F. Johnson, Pages: 474, Published: 2006
Windows XP Timesaving Techniques For Dummies Authors: Woody Leonhard, Justin Leonhard, Pages: 590, Published: 2004
How to Do Everything with PowerPoint 2002 Authors: Ellen Finkelstein, Pages: 433, Published: 2002
GUI Bloopers 2.0: Common User Interface Design Don'ts and DOS Authors: Jeff Johnson, Pages: 407, Published: 2007
Access 2007 All-In-One Desk Reference for Dummies: All-in-one Desk Reference for Dummies Authors: Alan Simpson, Margaret Levine Young, Alison Barrows, April Wells, Jim McCarter, Pages: 768, Published: 2006
The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP Authors: David Powers, Pages: 784, Published: 2007
The JFC Swing tutorial: A Guide to Constructing GUIs Authors: Kathy Walrath, Mary Campione, Safari Tech Books Online (Online service, Pages: 770, Published: 2004

Web:
How to Use Buttons, Check Boxes, and Radio Buttons (The Java ... JButton, A common button. How to Use the Common Button API and How to Use JButton Features .... The API for using buttons falls into these categories: ...
Simple links using basic actionscript - one frame to another using ... Simple links using basic actionscript - one frame to another using common. buttons. Step One: Setting up the document. 1. Go to: Modify > Document. ...
How to Use Buttons, Check Boxes, and Radio Buttons A common button. How to Use the Common Button API and How to Use JButton Features. JCheckBox · (in the API reference documentation), A check box button. ...
Common buttons Run, Default, Exit, Help Common buttons Run, Default, Exit, OK. These buttons appear at the bottom of ... It also supports conversion from plain text to RTF file using Unicode fonts ...
How to Use Buttons A common button. This section. ... One of a group of radio buttons. How to Use Radio Buttons ... The API for using buttons falls into three categories: ...
Viewable with Any Browser: Campaign So, I have displayed the "Viewable With Any Browser" button to emphasize that I ... what browser you're using and what didn't work) and I'll try to fix it. ...
Office 2003: Overview of Clip Art, UWEC Common Toolbar Buttons. Depending on the Office program, you will be using either the Drawing or Picture toolbar to modify Clip Art. Not all the options on ...
Using the radio button smart clip Using the radio button smart clip. Macromedia Flash 5's radio button smart ... Common Libraries> Smart Clips), and drag two or more Radio Button smart clips ...
What are some common questions about authorizing JAWS for Windows ... What are some common questions about authorizing JAWS for Windows using the .... Press TAB until you get to the available commands group of radio buttons. ...
Styling a Flex Button control using embedded fonts at Flex Examples Is there any trick to getting a common Button to use embedded fonts? ... Styling the Flex DataGrid control using a custom separator skins » ...

Videos:
Are Roman Catholics Christians? 1 of 17 Best resolution on minimize mode. See lower right-hand buttons on You Tube Flash Player. Catholic Apologist, Vic Scaravilli, sets the record straig...
Wyotech Trim and Upholstery Class - Laramie, Wyoming http://www.wyotech.edu This is a slideshow of my project truck ( 1995 Dodge Ram 1500 ) - in the WYOTECH Trim and Upholstery class. I took this clas...
911 Octopus New Version here: tons of amazing new footage http://video.google.com/videoplay?docid=8205707050292695515 Vote for this, email it to your friends, ...
Mac OS X 10.5 - Leopard - Dashboard Preview Mac OS X Tiger introduced Dashboard, a wonderful world of widgets that perform common tasks and give you fast access to information on the Web. With ...
How to Pwn Your iPhone iPod Touch (Unlock or Jailbreak) 2.0! READ ALL OF MORE INFO!!!!!! BETTER QUALITY VERSION http://youtube.com/watch?v=sSzBaQVinTc&fmt=18 Ok first thing first, you need to download the Hac...
Are Roman Catholics Christians? 2 of 17 Best resolution on minimize mode. See lower right-hand buttons on You Tube Flash Player. Catholic Apologist, Vic Scaravilli, sets the record straig...
Are Roman Catholics Christians? 3 of 17 Best resolution on minimize mode. See lower right-hand buttons on You Tube Flash Player. Catholic Apologist, Vic Scaravilli, sets the record straig...
Video Production: Cameras From the Nortel LearniT tutorial series, Digital Video Production this episode explores the various types and functions of video cameras.
Are Roman Catholics Christians? 6 of 17 Best resolution on minimize mode. See lower right-hand buttons on You Tube Flash Player. Catholic Apologist, Vic Scaravilli, sets the record straig...
Are Roman Catholics Christians? 4 of 17 Best resolution on minimize mode. See lower right-hand buttons on You Tube Flash Player. Catholic Apologist, Vic Scaravilli, sets the record straig...




Search This Site:










horizontal sub menu

dynamically load in stylesheets at runtime

having issues with menu and making one item bold

css placed in app_themes not placed in <head> ?

can you disable the popout image?

themes and skins

label control in content place holder help

skins - design time

themes

sitemapresolve

problem with themes and gridview

creation of menu problem...want a dynamic effect ..

menu control - making parent node not clickable

problem to design menu with swap image

theming for custom controls in asp.net 2.0

textbox in menu dynamic item...

menu control html-rendered code different when using sitemap

multiple row menu

assorted treeview questions

is css case sensitive?

no target attribute in sitemapnode element?

wizard control

asp:menu image backgrounds

menu control behaving absurdly on sorting a grid on the page

how to control the text-size effects on the master page presentation

treeview nodes alphabetic order.

multiple sitemapproviders and multiple nodes

tree view - not upto the requirement

menu control, seperating child sub menu from master menu

how to set a dynamically created style's id?

  Privacy | Contact Us
All Times Are GMT