473,587 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with hyperlinkcolumn , I can't seem to get it work!

I've tried several posting examples to no avail.
I'm trying to pass two parameters to the hyperlink inside of the grid. I've
gone to this link that was posted, and besides the typo (missing '>') I can't
get it to work.
http://www.extremeexperts.com/Net/fa...inURLLink.aspx

Does anyone have a working example?
need: pagename?tab=(t abname)&id={0}
first is a request.param value (tabname)
second is a container field (SurveyResponse headerid)

Help......Thanx .
Nov 19 '05 #1
4 1168
How about this? Does this work for you?
<asp:datagrid id="Datagrid1" runat="server" AutoGenerateCol umns="False"
BorderColor="bl ack"
HeaderStyle-CssClass="table Header" ItemStyle-CssClass= "tableItem" >
<Columns>
<asp:TemplateCo lumn HeaderText="MyC ol">
<ItemTemplate >
<asp:Hyperlin k runat="server"
Text='<%#DataBi nder.Eval(Conta iner.DataItem," Name")%>'
NavigateUrl='pa gename?tab=<%Re quest.QueryStri ng("tabname")%> &id=<%#DataBind e
r.Eval(Containe r.DataItem,"Sur veyResponsehead erid")%>' ID="Hyperlink1 "/>
</ItemTemplate>
</asp:TemplateCol umn>
</Columns>
</asp:datagrid>

--
Gopal Rangaswamy
Microsoft Certified Solutions Developer
FMS, Inc.
<http://www.fmsinc.com/consulting>
<http://www.fmsinc.com/dotnet/SourceBook/>

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:8E******** *************** ***********@mic rosoft.com...
I've tried several posting examples to no avail.
I'm trying to pass two parameters to the hyperlink inside of the grid. I've gone to this link that was posted, and besides the typo (missing '>') I can't get it to work.
http://www.extremeexperts.com/Net/fa...inURLLink.aspx
Does anyone have a working example?
need: pagename?tab=(t abname)&id={0}
first is a request.param value (tabname)
second is a container field (SurveyResponse headerid)

Help......Thanx .

Nov 19 '05 #2
I tried this and as I thought, it doesn't appear to allow <% %>.
So when you look at the link it lists the text
<%Request.Param s("tab")%>&id=< %#DataBinder.Ev al(Container.Da taItem,"SurveyR esponseheaderid ")%>'

"Gopal (FMS, Inc.)" wrote:
How about this? Does this work for you?
<asp:datagrid id="Datagrid1" runat="server" AutoGenerateCol umns="False"
BorderColor="bl ack"
HeaderStyle-CssClass="table Header" ItemStyle-CssClass= "tableItem" >
<Columns>
<asp:TemplateCo lumn HeaderText="MyC ol">
<ItemTemplate >
<asp:Hyperlin k runat="server"
Text='<%#DataBi nder.Eval(Conta iner.DataItem," Name")%>'
NavigateUrl='pa gename?tab=<%Re quest.QueryStri ng("tabname")%> &id=<%#DataBind e
r.Eval(Containe r.DataItem,"Sur veyResponsehead erid")%>' ID="Hyperlink1 "/>
</ItemTemplate>
</asp:TemplateCol umn>
</Columns>
</asp:datagrid>

--
Gopal Rangaswamy
Microsoft Certified Solutions Developer
FMS, Inc.
<http://www.fmsinc.com/consulting>
<http://www.fmsinc.com/dotnet/SourceBook/>

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:8E******** *************** ***********@mic rosoft.com...
I've tried several posting examples to no avail.
I'm trying to pass two parameters to the hyperlink inside of the grid.

I've
gone to this link that was posted, and besides the typo (missing '>') I

can't
get it to work.

http://www.extremeexperts.com/Net/fa...inURLLink.aspx

Does anyone have a working example?
need: pagename?tab=(t abname)&id={0}
first is a request.param value (tabname)
second is a container field (SurveyResponse headerid)

Help......Thanx .


Nov 19 '05 #3
Here is the corrected version,

<asp:datagrid id="Datagrid1"
runat="server" AutoGenerateCol umns="False" BorderColor="bl ack"
HeaderStyle-CssClass="table Header"
ItemStyle-CssClass="table Item">

<Columns>
<asp:TemplateCo lumn HeaderText="Ord er">
<ItemTemplate >
<asp:Hyperlin k runat="server" Text= '<%#
DataBinder.Eval (Container.Data Item,"ProductNa me").tostring %>'
NavigateUrl='<% # "page.aspx?Name =" & DataBinder.Eval
(Container.Data Item,"ProductNa me").tostring & _

"&ProductID =" &
DataBinder.Eval (Container.Data Item,"ProductID ").tostring %>'
ID="ProductName "/>
</ItemTemplate>
</asp:TemplateCol umn>

</Columns>

</asp:datagrid>
Check out now, if you still face problem. Let me know about it.

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:83******** *************** ***********@mic rosoft.com...
I tried this and as I thought, it doesn't appear to allow <% %>.
So when you look at the link it lists the text:
<%Request.Param s("tab")%>&id=< %#DataBinder.Ev al(Container.Da taItem,"SurveyR e
sponseheaderid" )%>'
"Gopal (FMS, Inc.)" wrote:
How about this? Does this work for you?
<asp:datagrid id="Datagrid1" runat="server" AutoGenerateCol umns="False"
BorderColor="bl ack"
HeaderStyle-CssClass="table Header" ItemStyle-CssClass= "tableItem" > <Columns>
<asp:TemplateCo lumn HeaderText="MyC ol">
<ItemTemplate >
<asp:Hyperlin k runat="server"
Text='<%#DataBi nder.Eval(Conta iner.DataItem," Name")%>'
NavigateUrl='pa gename?tab=<%Re quest.QueryStri ng("tabname")%> &id=<%#DataBind e r.Eval(Containe r.DataItem,"Sur veyResponsehead erid")%>' ID="Hyperlink1 "/>
</ItemTemplate>
</asp:TemplateCol umn>
</Columns>
</asp:datagrid>

--
Gopal Rangaswamy
Microsoft Certified Solutions Developer
FMS, Inc.
<http://www.fmsinc.com/consulting>
<http://www.fmsinc.com/dotnet/SourceBook/>

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:8E******** *************** ***********@mic rosoft.com...
I've tried several posting examples to no avail.
I'm trying to pass two parameters to the hyperlink inside of the grid.

I've
gone to this link that was posted, and besides the typo (missing '>') I
can't
get it to work.

http://www.extremeexperts.com/Net/fa...inURLLink.aspx
Does anyone have a working example?
need: pagename?tab=(t abname)&id={0}
first is a request.param value (tabname)
second is a container field (SurveyResponse headerid)

Help......Thanx .


Nov 19 '05 #4
thanx! that was the ticket! Thanx to both of you!

"Saravana" wrote:
Here is the corrected version,

<asp:datagrid id="Datagrid1"
runat="server" AutoGenerateCol umns="False" BorderColor="bl ack"
HeaderStyle-CssClass="table Header"
ItemStyle-CssClass="table Item">

<Columns>
<asp:TemplateCo lumn HeaderText="Ord er">
<ItemTemplate >
<asp:Hyperlin k runat="server" Text= '<%#
DataBinder.Eval (Container.Data Item,"ProductNa me").tostring %>'
NavigateUrl='<% # "page.aspx?Name =" & DataBinder.Eval
(Container.Data Item,"ProductNa me").tostring & _

"&ProductID =" &
DataBinder.Eval (Container.Data Item,"ProductID ").tostring %>'
ID="ProductName "/>
</ItemTemplate>
</asp:TemplateCol umn>

</Columns>

</asp:datagrid>
Check out now, if you still face problem. Let me know about it.

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:83******** *************** ***********@mic rosoft.com...
I tried this and as I thought, it doesn't appear to allow <% %>.
So when you look at the link it lists the text:

<%Request.Param s("tab")%>&id=< %#DataBinder.Ev al(Container.Da taItem,"SurveyR e
sponseheaderid" )%>'

"Gopal (FMS, Inc.)" wrote:
How about this? Does this work for you?
<asp:datagrid id="Datagrid1" runat="server" AutoGenerateCol umns="False"
BorderColor="bl ack"
HeaderStyle-CssClass="table Header" ItemStyle-CssClass= "tableItem" > <Columns>
<asp:TemplateCo lumn HeaderText="MyC ol">
<ItemTemplate >
<asp:Hyperlin k runat="server"
Text='<%#DataBi nder.Eval(Conta iner.DataItem," Name")%>'
NavigateUrl='pa gename?tab=<%Re quest.QueryStri ng("tabname")%> &id=<%#DataBind e r.Eval(Containe r.DataItem,"Sur veyResponsehead erid")%>' ID="Hyperlink1 "/>
</ItemTemplate>
</asp:TemplateCol umn>
</Columns>
</asp:datagrid>

--
Gopal Rangaswamy
Microsoft Certified Solutions Developer
FMS, Inc.
<http://www.fmsinc.com/consulting>
<http://www.fmsinc.com/dotnet/SourceBook/>

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:8E******** *************** ***********@mic rosoft.com...
> I've tried several posting examples to no avail.
> I'm trying to pass two parameters to the hyperlink inside of the grid.
I've
> gone to this link that was posted, and besides the typo (missing '>') I can't
> get it to work.
>
http://www.extremeexperts.com/Net/fa...inURLLink.aspx >
> Does anyone have a working example?
> need: pagename?tab=(t abname)&id={0}
> first is a request.param value (tabname)
> second is a container field (SurveyResponse headerid)
>
> Help......Thanx .


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4836
by: Jongmin | last post by:
Hi! I am making HyperLinkColumn in datagrid. It is simple to make the hyerlinkcolumn with one datafield. <asp:HyperLinkColumn Text="NAME" DataNavigateUrlField="NAME" DataNavigateUrlFormatString="http://www.aaa.com?Name={0}" SortExpression="NAME" />
1
1445
by: Dmitri Manushin | last post by:
Hi all, i have HyperLinkColumn in DataGrid <asp:HyperLinkColumn DataNavigateUrlField="PostID" DataNavigateUrlFormatString="http://localhost/forum/posts.aspx?id={0}" DataTextField="Subject" HeaderText="ôÅÍÁ"> This code work, but when i do next <asp:HyperLinkColumn DataNavigateUrlField="PostID"...
3
3373
by: SStory | last post by:
I have a style sheet for my site. It has various classes in it. It has <A: styles defined for all anchor tags. I have a datagrid in ASP.NET with a stylesheet linked to the page. It defines links a yellow which is what I normally won't but in this case I want to override the link color and can't seem to do it. I set the forecolor in...
3
1215
by: Morten | last post by:
Hi. After a while I finaly discovered how to use HyperLinkColumns. What I can't find is how to send mote than one "value" like page.aspx?id1&id2!!! <asp:HyperLinkColumn DataNavigateUrlField="InvoNo" DataNavigateUrlFormatString="Invo.aspx?Id={0}" DataTextField="InvoNo" HeaderText="Invo No."> <HeaderStyle...
3
3366
by: TJS | last post by:
how can I encrypt the querystring values for a HyperLinkColumn ? in example below I would like to encrypt value for field1 ====================================================== <asp:HyperLinkColumn Text="View" DataNavigateUrlField="field1" DataNavigateUrlFormatString="page.aspx?idx={0}"></asp:HyperLinkColumn>
0
991
by: Tim::.. | last post by:
Question 1... Hi can someone please tell me why I can't put the following LDAP string into my web.config fill as an <appSetting> <appSettings> <add key="strLDAP" value="'LDAP://doamin.domain.com', 'Administrator', 'Password'" /> </appSettings>
10
1746
by: tshad | last post by:
I have a Datagrid with a column: <asp:HyperLinkColumn DataTextField="JobTitle" DataNavigateUrlField="PositionID" DataNavigateUrlFormatString="AddNewPositions.aspx?PositionID={0}" HeaderText="Job Title" Visible="True" SortExpression="JobTitle"/>
1
2818
by: Roy | last post by:
I'm assuming this is amazingly simple and I'm just missing the boat. On the html side of an asp.net page I have a datagrid, a "search" button, and 8 text boxes for search criteria. A user enters in varying search criteria, hits "search", info is passed to a stored proc, results return and displayed in the datagrid. Every field in the...
2
1049
by: serge calderara | last post by:
Dear all, I have a dataset bound to a datagrid object. One of this grid column is an HyperLinkColumn template defined as follow : <asp:HyperLinkColumn HeaderText="ID" DataTextField="ID" DataNavigateUrlField="ID" DataNavigateUrlFormatString="Event.aspx?ReelId={0}"> </asp:HyperLinkColumn> Is it possible to catch the clik event of the...
2
1911
by: momo | last post by:
Hello Guys, I have a bit of a problem, I created a Dll called SecureQueryStringDll.dll and I had the dll put bin folder of my application first and it did not work so I then put it in the bin folder of c:\inetpub\wwwroot and it still does not work. Here is the error I get from it: temporary asp.net...
0
7923
marktang
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...
0
7852
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...
0
8349
jinu1996
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...
0
6629
agi2029
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...
1
5719
isladogs
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...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
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...
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.