Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 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 April 21st, 2006, 04:56 AM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to oatza
Default How I insert the button into table

I want to insert a select button into the table but when I run, my button not show in the table. How do I?, pls. tell me. thanks.
this is my sample code

in the code behind

Response.Write("<TD ALIGN=CENTER>")
Response.Write("<asp:Button Text='Select' CommandName='Select' CommandArgument='" & Rs("Pcode") & "' runat='server'/>")
Response.Write("</TD>")
Response.Write("<TD ALIGN=LEFT>" & Rs("Pcode") & "</TD>")
Response.Write("<TD ALIGN=LEFT>" & Rs("Pname") & "</TD>")

And when the button click then I want to call Sub ItemCommand. How do I? Help me.

Protected Sub ItemCommand(ByVal sender As Object, ByVal e As RepeaterCommandEventArgs)
        Session("Pname") = e.CommandArgument
        lbMsg.Text = "Hello"
End Sub

 
Old April 23rd, 2006, 05:35 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Cross-post. Please see here for replies: http://p2p.wrox.com/topic.asp?TOPIC_ID=43255

Can you please not cross-post in these forums? Thank you.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: The Carnival Is Over by Dead Can Dance (Track 14 from the album: Dead Can Dance 1981-1998 (Limited Edition) [CD2]) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert table records into another table. hewstone999 Access VBA 2 March 5th, 2008 11:01 AM
Moving the new/insert button on DetailsView jpullam ASP.NET 2.0 Basics 3 September 27th, 2007 05:29 PM
How I insert button into table for select row. oatza ASP.NET 2.0 Basics 5 May 10th, 2006 12:09 AM
Dynamic Insert without Submit button key value jfergy Classic ASP Databases 9 January 17th, 2006 01:49 PM
cannot insert OLE command button event code janefu Excel VBA 1 January 10th, 2006 04:33 AM





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