.NET Logo
Welcome Guest Search | Active Topics | Members | Log In | Register

ถามเรื่อง GridView ใน ASP.NET หน่อยครับ Options · View
Reakchai
Posted: Wednesday, July 23, 2008 5:02:54 PM
Rank: มือฝึกหัด
Groups: Member

Joined: 7/23/2008
Posts: 2
Location: Thailand

เราจะเอาค่าจาก  Gridview โดยการใช้การ LinkButton

โดยเมื่อเรากดที่ LinkButton แล้วเราจะเอาค่าจาก Gridview ที่ Filed [Serials] ครับ

แล้วเอาค่าที่ได้ส่งไปอีกหน้า web หนึ่งครับ แล้วจะเอาค่าที่ได้ในหน้าใหม่ไปค้าหาข้อมูลรถยนต์คันดังกล่าว

 

JoJoUshi
Posted: Tuesday, August 05, 2008 1:30:25 AM
Rank: มือฝึกหัด
Groups: Member

Joined: 6/23/2008
Posts: 5
Location: lardphrao 107
JoJoUshi
Posted: Tuesday, August 05, 2008 1:34:29 AM
Rank: มือฝึกหัด
Groups: Member

Joined: 6/23/2008
Posts: 5
Location: lardphrao 107

ลองใช้ function Eval("ชื่อฟิลที่ต้องการ") ดูนะคับ

asp:HyperLink ID="linkProduct" runat="server" Text="Eval("Proid")" NavigateUrl='<%# "~/Auction/detailProduct.aspx?ProductID=" + Eval("ProductID")%>

 

<

JoJoUshi
Posted: Tuesday, August 05, 2008 1:36:29 AM
Rank: มือฝึกหัด
Groups: Member

Joined: 6/23/2008
Posts: 5
Location: lardphrao 107

โทดทีคับพิมพลาดไป asp:HyperLink ID="linkProduct" runat="server" Text='<%#Eval("ProName")%>'
NavigateUrl='<%# "~/Auction/detailProduct.aspx?ProductID=" + Eval("ProductID")%>' />

<

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.


Sponsored by