• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Session Tag on aspx page

My attached column is bombing out because of the session in the navigate tag.

If I hard code it, works fine.  

I know I'm missing something simple here.
<telerik:GridHyperLinkColumn DataTextFormatString="Search CRM"
                        DataNavigateUrlFields="sourceNumber" UniqueName="sourceNumber" DataNavigateUrlFormatString="http://inboundcalls/default.aspx?ph={0}&u=<%=Session("userName")%>"
                        HeaderText="Search CRM" DataTextField="sourceNumber">
                    </telerik:GridHyperLinkColumn>

Open in new window

0
lrbrister
Asked:
lrbrister
1 Solution
 
Kyle AbrahamsSenior .Net DeveloperCommented:

Try this:

='<%# Session("userName") %>'


Pretty sure you want the databinding expression.

If not try

='http://inboundcalls/default.aspx?ph={0}&u=<%= Session("userName")% >'
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now