Solved

How do you you replace a Gridview HyperLink with a Button

Posted on 2009-04-02
2
244 Views
Last Modified: 2012-05-06
I want to replace the HyperLink in GridView template with a Button labelled submit which will perform same actions show below. Please show be the replacement code how to do this.

                              <itemtemplate>
                                <asp:HyperLink ID="myForm" runat="server" Text='submit'>
                                    NavigateUrl='<%# "FormDetails.aspx?cust_id=" + Eval("cust_id")%>' />
                            </itemtemplate>
0
Comment
Question by:tcmmaxt
2 Comments
 
LVL 27

Accepted Solution

by:
nmarun earned 125 total points
ID: 24049850
0
 
LVL 4

Assisted Solution

by:siancell
siancell earned 125 total points
ID: 24050386
You can try and use a regular button,
<input type="button" value="submit" onclick="window.location='FormDetails.aspx?cust_id=<%# Eval("cust_id")%>'" />

Place that inside the item template tags.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now