CodeVerge.Net Beta


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

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/27/2006 4:51:08 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
luisevalencia
Asp.Net User
How to change the link of a linkbutton on each page?1/27/2006 4:51:08 PM

0/0

Hello, I have a  master page with buttons on it.  Its a toolbar whhich haves a button called help.  Each page of my site has a help page, I would like to change that button url on each page.

 

is that possible??


Microsoft Certified Professional
http://spaces.msn.com/levalenciam
dannychen
Asp.Net User
Re: How to change the link of a linkbutton on each page?1/27/2006 5:12:55 PM

0/0

  You should expose a property on your MasterPage which returns the button.  In your pages, specify a MasterType directive pointing at your MasterPage.  Then in code (like Page_Load) you can do:  Me.Master.MyHelpButton.NavigateUrl = "some help url" on each page you would like this for.

  If you want to apply this to each page, I would consider creating a base page class that has a property for for the HelpUrl and have each page inherit it (use pageBaseType in web.config to ensure it).  Use FindControl to find the Help button and assign it from the property.  Then on each page you can do instead:

<%@ Page ... HelpUrl="help1.aspx" %>

--
Danny


disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Building a Web 2.0 Portal with ASP.NET 3.5: None Authors: Omar AL Zabir, Pages: 308, Published: 2007
Microsoft FrontPage 2002 Unleashed Authors: William R. Stanek, David Berry, Duane Hellums, Mark Ray, Jinjer Simon, Pages: 1184, Published: 2001
ASP.NET 2.0 Everyday Apps For Dummies Authors: Doug Lowe, Pages: 504, Published: 2006
ASP.NET 2.0 Instant Results Authors: Imar Spaanjaars, Paul Wilton, Shawn Livermore, Pages: 456, Published: 2006
FrontPage 2003 for Dummies: For Dummies Authors: Asha Dornfest, Pages: 384, Published: 2003
Microsoft Visual C# .NET 2003 Developer's Cookbook: Developer's Cookbook Authors: Mark Schmidt, Simon Robinson, Pages: 787, Published: 2003
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
The Internet for Dummies Authors: John R. Levine, Margaret Levine Young, Carol Baroudi, Pages: 408, Published: 2007

Web:
Change the flash file(.swf) each time when link button control is ... I am sorry to say i have three link buttons and each time when i click the link button the flash file should change. ...
Change the flash file(.swf) each time when link button control is ... Re: Change the flash file(.swf) each time when link button control is pressed ... Whenever i click on the textbox, all the contents on the page is ...
So, You Want A Link Button, Huh? In this tutorial I'll show you an easy way to make your own link button ... Here's what each part means:. FORM tells the computer a form item is going here. ... Just change out the "page.html" with the URL of the page you want to click ...
How To Create Animated Link Button How To Create Animated Link Button. Improve your website navigation with ready ... How To Change Windows Standard Buttons · How To Glass Buttons Web Page ... Selected button(s) will be moved one position left/right each time you click ...
Change display in status bar with link button ? - ASP.NET General Change display in status bar with link button ? ASP.NET General. ... Each Button opens every link, subculture69 [email protected] ...
asp:link button event to change the label text : Link Button « Asp ... asp:link button event to change the label text : Link Button « Asp Control « ASP .Net. ... <%@ Page Language="VB" %>




Search This Site:










tree view

set numeric textbox value in javascript

change the menu button color after clicked, and stay there until other button be clicked

session in master page

accessing pictures in themes

menu problem in firefox

variables....

creating absolute reference to .js file in master page

contentplaceholder problems

designating media type in css with themes

menucontrol - view only some items

treeview collapse accessibility problems

allow user to choose a masterpage - how to?

setting cookie from master page for ascx?

meta tags

how to display different title in one master page

master page and menu control - menu renders improperly - please help me !!

treeview - how do i keep the state of a tree-view the same

how to access js files from a master page

save/load general preferences/properties

tree view behaviour

programmatically setting the selected node in sitemapdatasource

who includes who?

static menu item hover styles disappear when navigating its dynamic menu

changing path to web.sitemap file

treeview - synchronizing changes to datasource

usinng a second menu control to display childitems permanently

need helpin asp.net 2.0 (master page)

master page and content page format

can i use 2 sitemap in a page?

  Privacy | Contact Us
All Times Are GMT