CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 7/3/2007 10:51:04 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
optet
Asp.Net User
Need Help Accessing other Web Parts Titles7/3/2007 10:51:04 PM

0/0

Hi all,

I am creating a custom web part that basically lists all the web parts on the page and lets the user choose from a list which web parts it wants to use.  With that I do some processing that is not important.  The problem I ran into is I don't know how to get the names of the other web parts on the page.  Is there any way of going about doing this?  I am using VS 2003 .NET 1.1 if that helps.

Thanks in advance,

optet

bhaskar_412
Asp.Net User
Re: Need Help Accessing other Web Parts Titles7/4/2007 8:49:30 AM

0/0

Hi,

You can get all the controls in a page from Page.Controls hierarchy. Then you check the type using "as" or some other ways, and cast it to a webpart. So after that you can access the Webpart title by using the Webpart.Title property.

 

Hope it helps !!!

Bhaskar

optet
Asp.Net User
Re: Need Help Accessing other Web Parts Titles7/5/2007 5:03:23 PM

0/0

Hi bhaskar,

Your post helped me go in the right direction and I figured it out, thank you. 

I ran into a new problem though.  With the titles of the web parts I have I made buttons with those names.  So now the web part has a checkbox for each web part title.  What I want to do now is if that button is pushed, I want to copy that web part and put it in a new window to print.  I oringally planned on doing this via javascript by opening a new window and using the id's WebPartWPQ1, WebPartWPQ2, etc to get the innerHTML and put that in the new window.  The problem is I don't know how to match up which web part title belongs to which webpart ID.  I have tried using the methods like .ID or .ClientID but this just gave me the ASP.NET id which I didn't think would be very useful.  Can any one else help me out with a way to do this?

Thanks,

optet

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Special Edition Using Microsoft SharePoint Portal Server Authors: Jonathan Hassell, Robert Ferguson, Pages: 704, Published: 2002
Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 Authors: Amanda Murphy, Shane Perran, Pages: 552, Published: 2007
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006
Cataloging Correctly for Kids: An Introduction to the Tools Authors: Sheila S. Intner, Joanna F. Fountain, Jane E. Gilchrist, Pages: 136, Published: 2006
The Administrator's Guide to SharePoint Portal Server 2001 Authors: Bill English, Pages: 464, Published: 2002
Peterson's Four-Year Colleges Authors: Thomson Peterson's, Peterson's Guides Staff, Peterson's, Pages: 3087, Published: 2005
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
MCTS: Microsoft Office SharePoint Server 2007 Configuration: Exam 70-630 Authors: James Pyles, Pages: 617, Published: 2008
How to Use Microsoft Office Xp: Visually in Full Color Authors: Sherry Kinkoph, Jennifer Fulton, Pages: 336, Published: 2001

Web:
Display the Excel Web Access Web Part in Web Browser view ... Microsoft Office Excel Web Access is a Web Part that can be displayed alone on a Web Part Page, or connected to other Web Parts on a dashboard or other Web ...
TheMSsForum.com >> Windows Services >> Office web parts access ... If anyone can help that would be great John Tag: Office web parts access Tag: ... When I specify the title to one of them (Appearance > Title) the other one ...
Safari Books Online - 9780596514075 - Essential SharePoint 2007 ... Login, Subscribe or Try Safari Now to access the entire content. ... Copy customized web parts to other pages and deploy them to other sites. ...
Need help with accessing a control within a template field Webpart - web user control - page_load firing as postback ... Help - Need to allow Java Client to post form data to ASPX Web Page ...
microsoft access and web and web site Resources | TechRepublic We are running Windows XP Home Verison and need to be able to block our niece .... NET 2.0 Web Part Framework, either the Web site administrator or other ...
Developing a Custom Web Part, Part 1 Oct 10, 2005 ... Create Data Access Code (If Necessary) The Web Part must .... Like many other series on IntranetJournal.com, I plan to include how-to ...
MSDN SharePoint - Development and Programming How do I hide a Web ... No other page can find or access the web part. ... however, i need to hide or show content editor webparts on page load itself. ...
Performing joins between SharePoint lists | Sahil Malik - blah ... Or I just need to package it as a web part and insert it on MOSS site. ... I am trying to perform this operation but everytime I try to access the data ...
Accessing Controls in SharePoint Web Parts using JavaScript on the ... A rather long title for this post, but that's what it comes down to. SharePoint WebPart Suppose you want to access controls in the same Web Part on the ...
Learn: Research Tips - UW Madison Libraries Does it have the kind of information you need? Look at the title, abstract, subject headings, table of contents, and keywords, web address or other ...

Videos:
Need PPC Marketing Help with Google Adwords Advertising? Get Internet marketing help from the ultimate Google pay per click advertising tool! Your PPC results will double by automating your page's relevan...
How to make a Youtube video with Windows Movie Maker How to use WMM to save a file into the correct format to upload onto Youtube Please feel free to ask any questions by commenting or email me at: jo...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...
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...
Introduction to Google Data Jeff Fisher walks through basic history and concepts behind the Google Data protocol. Visit the documentation for more information and list of availa...
Opencast Project Open House at UC Berkeley http://www.opencastproject.org/ Opencast is an initiative driven by higher education institutions to empower: institutions - to make informed choic...
Customer Centric Web Decision Making Google TechTalks July 24, 2006 Avinash Kaushik, Senior Manger, Web Research and Analytics, Intuit
Objects: they just work Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Bob Binder
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...




Search This Site:










visual studio 2008 stability problems with explorer.exe?

is asp.net going to replace asp?

login error in ssl :

reference controls in masterpage from class in app_code

membership user and pass works locally but not remotely

server error

image url not rendering correctly

discussion forum component

re-write code for an acess db to a sql db

why does date formatting change?

losing confidence in dnn - bug with templates??

need concise definitions for .aspx and .asmx

how to create a generate email verification ?

how to put a "register" link next to "login" link?

current url using server variables

import users to dnn database

configuration error

modify excel spreadsheet on the webpage

security misbehavior

tutorial "render blocks"

urgent threading problem [ threads in an array ]

how to create link to other .ascx control passing querystring parameters

how does the scheduler work?

adam and forced password change

trying to talk to my usercontrol

triggering an exe files

log4net and exception block..

asp and asp .net on same server.

urlencode + firefox = not good

how to get session variable on rdlc

 
All Times Are GMT