CodeVerge.Net Beta


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




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: 7/20/2006 4:52:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 30 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
tim99
Asp.Net User
control names within placeholder7/20/2006 4:52:09 PM

0

i have a master page
on one of the paged that sits inside the master page i have some dynmically built checkboxes and i then neeed to check them if a condition is true
this workd in a page which is not using a master page as i have given the id of the checkbox the id of the record e.g id="2"
so i run this code to see if it needs to be checked
 chk =   (CheckBox)Page.FindControl(reader.GetSqlValue(0).ToString());
chk.Checked = true;
however it is not finding the control because .net has decided to rename the control to
ctl00_ContentPlaceHolder1_2 instead of just 2
is there a way I can either tell .net to not rename controls or to somehow find out what the string in front of the actual id is e.g placeholder.controlprefix or some such thing
any help greatly appreciated.


bluemistonline
Asp.Net User
Re: control names within placeholder7/21/2006 6:58:01 PM

0

you can use:

chk =   (CheckBox)Page.FindControl(chk.NamingContainer + "_" + reader.GetSqlValue(0).ToString());


James Hearst
.NET Application Developer
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft Sharepoint: Building Office 2007 Solutions in C# 2005 Authors: Scot Hillier, Pages: 513, Published: 2007
Access 2007 VBA Programming For Dummies Authors: Joseph C. Stockman, Alan Simpson, Pages: 386, Published: 2007
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Programming Data-driven Web Applications with ASP.NET Authors: Don Wolthuis, Donny Mack, Doug Seven, Pages: 704, Published: 2002
Building Web Applications with C# and .NET: A Complete Reference Authors: Dudley W. Gill, Pages: 718, Published: 2002
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Professional ASP.NET 1.1 Authors: Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson, Pages: 1337, Published: 2004
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006

Web:
Login Control/Validation Summary within Content Placeholder Within the content placeholder, I have placed a Login control (Login1) ... Login1_UserNameRequired.errormessage = "User Name is required."; ...
How do I reference a 'selection' made within a placeholder.control ... How do I reference a 'selection' made within a placeholder.control.dropdownlist? Last post 09-02-2008 8:34 PM by Matt-dot-net. 7 replies. ...
ASP.NET Help: Using the PlaceHolder ASP.NET Control NET HTML source code of a sample search form shown below, for example, there are two controls contained within the PlaceHolder1 PlaceHolder control: a ...
PLACEHOLDER NOT RENDERING CONTROLS... PLS HELP :-( - .NET ASP LinkButtons within the placeholder are not rendering at all, there is nothing within the user control TD where i want the menu items to ...
cmserver general IDENTIFYING CHECKBOXLIST CONTROL within CUSTOM ... IDENTIFYING CHECKBOXLIST CONTROL within CUSTOM PLACEHOLDER CONTROL - Angel. 15- Jul-08 06:58:07. Hi..im going around in circles with this and ...
AMIS Technology blog » Blog Archive » ADF 11g Placeholder Data ... create a new Placeholder Data control - specify a name .... method of conveying information to and within a development team is face-to-face conversation. ...
Using the PlaceHolder Control One of the more underutilized controls is the PlaceHolder control. ... PageHeader { FONT-SIZE: 14pt } How to tell control name when used in a content placeholder in ... Hey everyone. I have a page that worked great before I updated it to a masterpage based page... My problem is this - I have a label that I hide - ID ...
The Moth: An item placeholder must be specified on VS 2008 RTM Specify an item placeholder by setting a control's ID property to ... its own and within it place a asp:Placeholder whose ID you set to "itemPlaceholder". ...
Jitsu Finally, you can define default markup within a placeholder:
Videos:
Flash Game Beta: Klown ver. 0.11 JOIN OUR TEAM! AOL IM: r0w0x PROGRAMMERS (AS2) - The core 'Klown' engine is almost completely done. I am looking for someone to help me program more...
الجهاد PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload.vi...
Fogos 2008 ! PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload.v...
PowerPoint: Basics Episode 1 (of an 18-part series). This Nortel LearniT tutorial reviews the basics of PowerPoint and gets you started using it right away.
الله اكبر PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload.vi...
tutty shih tzu PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload....
قدرة الله قوية PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload.vi...
Structuring Personal Information When Everything Can Be Saved and Searched... Google TechTalks May 17, 2006 William Jones William Jones is an Research Associate Professor in The Information School at the University of Washingt...
www.moldytoaster.com ce? I have found that both Christians and Muslims can justify the killing of people in their holy book, thus, they do. I hear that buddhists blame de...
www.moldytoaster.com on of his pride. Sharifz (1 month ago) Show Hide Marked as spam -3 Good comment Poor comment Reply i can tell that most americans are fucking idio...












how to remember the menu selection in master page???

loading theme stylesheets dynamically

links don't work in masterpage

asp.net 2.0 themes

how to create a munu like menu like http://www.trainingcamp.com/us/training/msft/sql2005_roadmap.asp

design view not rendering properly with themes

msdn style sitemappath + menu control

dynamically populate a treeview

how to theme a masterpage?

the file web.sitemap required by xmlsitemapprovider does not exist

server side validation in wizzard

theme problems

open a treeview at the right place

content place holder in the <head> tag

masterpage and headers?

problem with asp.net menu control - leaving a top margin of about 1 or 2px in ie

how do you set the page titles on a master theme subpage

getting submitted field when there is a master page and content place holder

ckick on treeview node to diplay value in panel

asp:menu - only show links to sub-items in current section

creating sitemap automatically?

can we add meta tag and title inside a page that contains a master page

menu with windows authentication and groups

any tool to build skins

displaying a gridview in content page from master page menu control !!!

treeview isn't updated from xmldatasource

how to: true image menus that still use web.sitemap. look->

access the current theme folder

closing & refreshing

treeview

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT