C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

how to use this placeholder control?..


Posted Date: 06 Sep 2006      Posted By: vidya       Member Level: Gold     Points: 2   Responses: 2



hi

can you please tel me in detail, how to use this placeholder?
how to place controls and how can i modify the code?


Dim hp As New HyperLink
Dim bc As New HyperLinkColumn

hp.Text = "ADD TO CART"
Label5.Controls.Add(hp)
bc.DataNavigateUrlField = " [Model Number]"
bc.DataNavigateUrlFormatString = "http://localhost/shoppingcart2appVB/webform3.aspx?id={0}"







Responses

Author: sathiya    06 Sep 2006Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Placeholder reserves the space for runtime objects.

to add controls
<PlaceHolder>.Controls.Add(<NewControl>);

To Updatea controls

TextBox tobj = (TextBox) <PlaceHolder>.Controls["<NewControlName>"];

tobj.text = "New String";

@
Sathiya



Author: Hiren Patel    07 Sep 2006Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Take One PlaceHolder Control Give it ID plcParent In Codebehind file using plcParent.Controls.Add() method you can add controls to place holder Regards, Hiren http://hidigs.uni.cc


Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : hyperlink not displaying..please see
Previous : How will we call javascript or vbscript in coding ? give an example with coding?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use