Using ASP.Net 2.0 and VS 2005.
I have a search page that has server controls, (textboxes, dropdownlists,
etc.) that are used for searching and returning data in a GridView. One of
the GridView columns is a bound HyperLink that sends me to a new aspx page.
However, when I try to use Request.Form to get contents of the controls in
the search page all requests are blank. Is this because the hyperlink does
not do a Redirect? and thus the Request.Form is not available? If so, is
there an alternative way to accomplish this? I really like using the
hyperlink. Thanks.
David 7 4970
"David" <dl*****@lifeti meinc.comwrote in message
news:OB******** ******@TK2MSFTN GP04.phx.gbl...
Using ASP.Net 2.0 and VS 2005.
I have a search page that has server controls, (textboxes, dropdownlists,
etc.) that are used for searching and returning data in a GridView. One
of the GridView columns is a bound HyperLink that sends me to a new aspx
page. However, when I try to use Request.Form to get contents of the
controls in the search page all requests are blank. Is this because the
hyperlink does not do a Redirect? and thus the Request.Form is not
available? If so, is there an alternative way to accomplish this? I
really like using the hyperlink. Thanks.
http://www.c-sharpcorner.com/asp/Con...ControlPSD.asp
Mark,
I read this but it references a LinkButton which I am not using. I am using
a HyperlInk control bound to a datafield in a gridView. There are no
CommandName and CommandArgument options in the properties of this control.
Am i missing something? Thanks.
David
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
"David" <dl*****@lifeti meinc.comwrote in message
news:OB******** ******@TK2MSFTN GP04.phx.gbl...
>Using ASP.Net 2.0 and VS 2005. I have a search page that has server controls, (textboxes, dropdownlists, etc.) that are used for searching and returning data in a GridView. One of the GridView columns is a bound HyperLink that sends me to a new aspx page. However, when I try to use Request.Form to get contents of the controls in the search page all requests are blank. Is this because the hyperlink does not do a Redirect? and thus the Request.Form is not available? If so, is there an alternative way to accomplish this? I really like using the hyperlink. Thanks.
http://www.c-sharpcorner.com/asp/Con...ControlPSD.asp
"David" <dl*****@lifeti meinc.comwrote in message
news:OY******** ******@TK2MSFTN GP06.phx.gbl...
Am i missing something?
Yes - use a LinkButton...
I am trying that but the SelectedIndexCh anged does not seem to fire. I
created a sub that would set the value from the row.cells(1) and nothing
happens, the screen just blinks. Doesn't clicking on this LinkButton select
the current row?
David
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:%2******** *******@TK2MSFT NGP02.phx.gbl.. .
"David" <dl*****@lifeti meinc.comwrote in message
news:OY******** ******@TK2MSFTN GP06.phx.gbl...
>Am i missing something?
Yes - use a LinkButton...
"David" <dl*****@lifeti meinc.comwrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
I am trying that but the SelectedIndexCh anged does not seem to fire.
That's right.
I created a sub that would set the value from the row.cells(1) and nothing
happens, the screen just blinks. Doesn't clicking on this LinkButton
select the current row?
No. You need to specifiy the value as the LinkButton's CommandArgument .
OK, I got it to work. I bound the CommandName and CommandArgument to the 2
column values I needed to pass and it worked. Thank you.
David
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:uI******** ******@TK2MSFTN GP06.phx.gbl...
"David" <dl*****@lifeti meinc.comwrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
>I am trying that but the SelectedIndexCh anged does not seem to fire.
That's right.
>I created a sub that would set the value from the row.cells(1) and nothing happens, the screen just blinks. Doesn't clicking on this LinkButton select the current row?
No. You need to specifiy the value as the LinkButton's CommandArgument .
"David" <dl*****@lifeti meinc.comwrote in message
news:uB******** ******@TK2MSFTN GP04.phx.gbl...
OK, I got it to work.
Hurrah!
I bound the CommandName and CommandArgument to the 2 column values I
needed to pass and it worked.
That's right.
Thank you.
You're welcome. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: TPhelps |
last post by:
I have a sample of an unbound (autogeneratecolumns is true) sortable/pagable
datagrid that works.
I want to change one of the columns to a hyperlink. The examples I find use
a bound column. I can get this to work; however, the column header on the
datagrid is not a link/sortable.
What am I missing?
Thanks in advance.
|
by: Wayne Wengert |
last post by:
I am trying to impliment the extensions to the Club Starter kit as described
at:
http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/extendclubwebsitesk.asp
but when I build the hyperlinks in the Gridview Column template as described
at the end of the article I am getting two errors on each of the hyperlinks
("Characer is not valid" and "Expression Expected"). I've included the code
from one of these instances...
|
by: Carlos |
last post by:
Hi all,
I need a field that it is both databound, and hyperlink in a gridview. That
is, the value is obtained from a query, and at the same time needs to point
to a new page where
will be used to make another query. How can this be possible in asp .net?
Thanks in advance,
Carlos.
|
by: Bren |
last post by:
Hi All
VS2005 Gridview control with vb
I am populating a gridview of company staff.
One of the columns is a hyperlink to a SMS texting facility I have so
secrataries can text the managers etc.
i.e Secratary loads the page on the intranet, finds the manager they want to
contact, clicks on the "SMS" hyperlink and is taken to the SMS page to fill
out the message and send it to the manager.
|
by: willip |
last post by:
I have a Gridview control with a Databound Hyperlink. e.g.:
<asp:HyperLinkField HeaderText="MyTitle" DataNavigateUrlFields="MyID"
DataNavigateUrlFormatString="~/ShowMe.aspx?MyID={0}"
DataTextField="MyTitle" SortExpression="MyTitle">
With Norton Ad Blocking turned "Off" this works fine.
Turn Norton Ad Blocking "On" and the rest of the Gridview displays, but any
Hyperlinks have gone!
| |
by: William LaMartin |
last post by:
I have a gridview (with no properties set) on an aspx page which I populate
from an XML file with the code below.
The data in the XML file looks like this
<description>National Trust for Historic Preservation</description>
<URL>http://www.nthp.org/</URL>
<category>Architecture</category>
Can anyone tell me why the other two columns are displayed, but the
|
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= |
last post by:
Hi
I have a GridView that is displaying master records. Some of these records
have child records.
I would like to a column to my master GridView such that for each master
record that has detail records, it displays a hyperlink that then takes the
user to the details page. If a master record doesn't have any children, I
just want it to display its ID with no hyperlink.
|
by: Paul W Smith |
last post by:
The text below is a GridView I am trying to use to display some data from a
database. I am using one templatefield of grid because I want the contents
of the record fields to appear on three different lines.
Everything works except I now want to add an image with which acts as a
hyperlink to another page. The querystring to the new page is a field from
the database. What I cannot get right is the syntax to build the Hyperlink
to the...
|
by: Author |
last post by:
I got into trouble with this problem.
The data I am presenting in a GridView control has a column called
"Website". That data comes from a stored procedure in SQL Server
2000. Most of them have valid http urls. But some of them say
"None" or "Not available".
In the GridView, I would like create a hyperlink for those valid http
urls only, and simply plain-output those which say "None" or "Not
available".
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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.
| |