Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 11th, 2004, 04:10 AM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to pappu
Default my problem with linkbutton

how can i create link button dynamically in a loop in asp.net

 
Old October 11th, 2004, 04:38 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello,

 I didn't try this before but I do like that:
1- Create the LinkButton
2- set its visibility to false
3- set its visibility to true when I need that.
Thanks,
Marenela

 
Old October 11th, 2004, 05:38 AM
Registered User
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is the standard format.
<asp:LinkButton id="LinkButton1"
     Text="label"
     Command="Command"
     CommandArgument="CommandArgument"
     CausesValidation="true | false"
     OnClick="OnClickMethod"
     runat="server"/>

Being you said dynamically,

dim lnkbtn as new linkbutton
lnkbtn.command = command 'set the command
lnkbtn. [what ever you want to add goes here]
controls.add(lnkbtn) 'to add to the page

Check this link out...
http://msdn.microsoft.com/library/de...webcontrol.asp






Similar Threads
Thread Thread Starter Forum Replies Last Post
WebControls.LinkButton Ric_H ASP.NET 2.0 Basics 1 January 28th, 2006 08:00 AM
linkbutton Beulah VS.NET 2002/2003 3 October 10th, 2005 05:00 PM
linkbutton and postback jtyson ASP.NET 1.0 and 1.1 Professional 1 July 14th, 2003 06:37 PM
linkbutton and postback jtyson ASP.NET 1.x and 2.0 Application Design 0 July 10th, 2003 12:17 PM
linkbutton and autopostback jtyson ASP.NET 1.0 and 1.1 Basics 0 July 10th, 2003 11:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.