[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How do you you replace a Gridview HyperLink with a Button

Posted on 2009-04-02
2
Medium Priority
?
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

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

Assisted Solution

by:siancell
siancell earned 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

649 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