Hello,
I would like to know how to pass values of a gridview to another page when clicking on the link field in a gridview.
Please help me.
regards,
Mathew
3 10357
Hello,
I would like to know how to pass values of a gridview to another page when clicking on the link field in a gridview.
Please help me.
regards,
Mathew
Are you asking how to save the data of the entire gridview or just the data for a row? To pass values for a specific row you could send the values using a querystring.
Nathan
Are you asking how to save the data of the entire gridview or just the data for a row? To pass values for a specific row you could send the values using a querystring.
Nathan
Dear Nathan,
I would like to pass values to another page using querystring.
Please help me.
Regards,
Mathew
Dear Nathan,
I would like to pass values to another page using querystring.
Please help me.
Regards,
Mathew
There are a few ways to accomplish this.
1. You can get the data for a row and save each column value for that row to a session variable. Then pass the value of each session variable to your querystring.
2. You can use the Eval statement to assign the values of your querystring. - <ItemTemplate>
-
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("ColumnName1") %>'
-
NavigateUrl='<%# "frmeventinfo.aspx?querystring1="+Eval("ColumnName1")+"&querystring1="+Eval("ColumnName2") %>'></asp:HyperLink>
-
</ItemTemplate>
Give one of these ideas a try and let us know if you run into any more problems.
Nathan
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Kevin Lyons |
last post by:
Hello,
I am trying to get my select options (courses) passed correctly from
the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html
I am having difficulty getting the courses to pass the correct option
value and then be displayed at the following URL:
http://www.dslextreme.com/users/kevinlyons/selectResults.html
I am passing countries, products, and courses. The first two display
|
by: Larry Grady |
last post by:
Anyone up for a challenge?
I've been struggling with this for a few days and was hoping someone could
help me. Pouring through all the messageboards I just can't find the
solution.
We have a GridView that needs to be dynamically designed, depending on what
collection of fields our uses want to edit for their product data. We have
400+ fields of information per product so they're selecting a subset of those
fields to edit.
|
by: CSharpguy |
last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the
user to print this grid. When the grid prints it also prints the links, how
can I take the user to a print preview page and not show the templated
fields, (hyperlinks) and also not print those fields?
|
by: jobs |
last post by:
I have a gridview on another page with a column that will link to this
page. I'm flirting with design options, but am considering a template
field with hyperlink navigateurl that includes a query string ?
search=mydata container.
My question/challenge, is that I want to use that query string to set
a textbox on the called page, but then need the query string to no
longer be visible in the url espectially after a refersh or other...
|
by: jrnail23 |
last post by:
I have a user control which contains an UpdatePanel, which contains a
MultiView inside, with a GridView in one of the views.
In my GridView, I have a ButtonField which is supposed to trigger a
server-side operation, using the RowCommand functionality.
In IE, this all works great, but in Firefox (v2.0.0.6), clicking the
above mentioned ButtonField fires off two similar AJAX requests, which
is causing errors in my server-side code.
...
| |
by: Jeff |
last post by:
Hi, I have a ASP.NET 2.0 Web Application. Many of the pages use the ASP.NET
GridView with paging and sorting.
One of the columns of this Gridview is a template column (LinkButton). The
data being retrieved and showed in this GridView produce more than one page
of data.
A given user clicks on the first row hyper link on the Grid on the first
page, then the first row hyper link color changes to look as "visited".
Then the user navigates to...
|
by: EyeHawk |
last post by:
I’m fairly new on ASP and Javascript programming, I have read as much as I can to develop my website in a user friendly manner. I’m using javascript to pass some values in a Form, but is no working, I have tried to research, but being such a specific problem I haven’t being able to find any answers. Hope Somebody Can Help Me or put me in the right direction. Thanks in advance.
I have a form and when clicking on an image all I’m trying to do...
|
by: rosoft |
last post by:
Hi
I'm using a GridView to list data from a table in my database. On of the
fields is a URL and when I click a row in the GridView I want the page to
automaticly open that link. How do I write code to an event i the GridView
so that when I click a row the page opens up the new link in another window?
Lars
|
by: suganya |
last post by:
I have displayed the data from the DB to the GridView made a column in the GridView as HyperLink allowed paging by setting the Allow Paging Property to "True". By clicking on the page no link I have to view other records. For that I have given the coding as
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |