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: 3/16/2007 2:51:18 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 62 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
mrp123
Asp.Net User
Usercontrol in webpart3/16/2007 2:51:18 PM

0/0

I have one update panel,in which one user control is added.From that user control another user control is get loaded.

In the second user control I have some javascript validation ,for that i need the client Ids of that object in the second user control.
so I have written code like this in the page load of the second user control

public string strTreeID;

protected

void Page_Load(object sender, EventArgs e)
{
strTreeID =txtBox.ClientID

 StringBuilder
script = new StringBuilder("<script language=javascript>");
script.Append("var strTreeID = '" + strTreeID + "';\n");
script.Append("</script>");
Page.ClientScript.RegisterStartupScript(this.GetType(), "ControlID", script.ToString());
}

and accessing  strTreeID  from javascript.

But strTreeID  is always coming as null .

If I load the same user control from a page,I am getting the value of strTreeID  .

please help me ...
thanks in advance..

Prasanth

 


I think therefore i'm

vPras?
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
Essential ASP.Net 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2006
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
Practical .NET2 and C#2: Harness the Platform, the Language, the Framework Authors: Patrick Smacchia, Pages: 896, Published: 2006
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Real World SharePoint 2007: Indispensable Experiences from 16 MOSS and WSS MVPs Authors: Robert Bogue, Adam Buenz, Scot Hillier, Andrew Connell, Stacy Draper, Luis Du Solier Grinda, Todd Klindt, Jason Medero, Dustin Miller, Shane Perran, Joris Poelmans, Heather Solomon, Nick Swan, Jan Tielens, Mike Walsh, Shane Young, Pages: 504, Published: 2007
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
Advanced SharePoint Services Solutions: Advanced Sharepoint Services Solutions Authors: Scot P. Hillier, Pages: 365, Published: 2005
Microsoft SharePoint: Building Office 2003 Solutions Authors: Scot P. Hillier, Pages: 392, Published: 2006

Web:
Choosing Between a User Control or Web Part for SharePoint Jan 20, 2006 ... The picture isn't completely rosy or there wouldn't be much discussion about whether to do a user control or a Web Part. ...
User Control Web Part I will demonstrate the usage of my web part using a simple Calculator user control which can be used to calculate the sum of two numbers. ...
Add usercontrol to webpart - ASP.NET Forums the code below will allow you to add a user control as a webpart ... Get a generic web part from the user control ...
Call user control from webpart « Greg Galipeau’s Weblog Call user control from webpart. Posted by Greg Galipeau on March 11, 2008. Most SharePoint developers know about the SmartPart. ...
Output Cache User Control in Web Part I am not able to use fragment cache in User Control inside a webpart, because I am getting an below error – OutputCached controls cannot be wrapped by ...
The dynamic UserControl and WebPart Paradox... - ASP.NET Forums I can load a UserControl into a WebPart using Fredrik's tutorial... http:// fredrik.nsquared2.com/viewpost.aspx?PostID=223 ...
Building my own UserControl WebPart part V - Mike's Blog In mine last post about my own UserControl WebPart, I ended the article with .... UserControl in ASP.NET 2.0 Portal using my own UserControl WebPart ...
Mart Muller's Sharepoint Weblog - Choosing Between a User Control ... Jan 23, 2006 ... Robert Bogue wrote a story about choosing between developing a webpart or a usercontrol which is rendered as a webpart with a tool such as ...
MSDN SharePoint - Development and Programming Adding Web User ... I put the .ascx in the a subdirectory called UserControls in the web application . -rich. Is the web part containing anything other than the web part. ...
Sharepoint Webpart Using Web User Control Moreover you need to change only the GUID and Path of the Usercontrol (.ascx files) if you want to deploy any user control in web part. ...




Search This Site:










custom shopping cart

load .htm page using contentplaceholder

happy father's day

problem with install of csk relating to shopping cart table

is there no way to do user level permissions?

code behind - sample files?

security with client-side callbacks

how to change the defaut skin width of the dotnetnuke portal?

c# code in master pager?

new version 1.0.13 of dnnportal-download released today

understanding the basic architecture of dnn 3.0

recover username?

button navigation tab order

how to create "asp.net ajax-enabled web site" in visual web developer express edition 2008

evite type module?

new pa deployment question

wdp output files

how can visual studio's f5 provide msbuild's power?

are there any other dnn tags available for skins?

dcom, web services and workgroup to domain authentication

dnn 3.0.12 help control bug

skmmenu issues...

treeview control help

whats the most complete available membership solution you've seen?

datalist items as webparts?

resx files, necessity, deployment, management, and so on

filtering by portal-wide categories for announcements, events, contacts, etc.

help on iis authentication

how do i change the access denied module title?

one more irritating question about customizing createuser wizard

 
All Times Are GMT