473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

databind expression for url with 2 params?

Hi,

I have a datagrid, that needs a HyperLink Column.

The url for this link has 2 parameters in it, eg
www.mydomain.com/index.aspx?param1=b&param2=a

The values for param1 and 2 are in my datasource. What databinding
expression should I use?

I don't want to have my datasource contain the url, as this is a
presentation layer issue, not data issue.

Thanks
Martin
Nov 18 '05 #1
3 952
In this case I would suggest you to use TemplateColumn, not HyperLink Column
Look at this article:
http://www.ftponline.com/vsm/2002_08...tips/esposito/

Regards,
Martin

"Martin" <x@y.z> wrote in message
news:ux**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have a datagrid, that needs a HyperLink Column.

The url for this link has 2 parameters in it, eg
www.mydomain.com/index.aspx?param1=b&param2=a

The values for param1 and 2 are in my datasource. What databinding
expression should I use?

I don't want to have my datasource contain the url, as this is a
presentation layer issue, not data issue.

Thanks
Martin

Nov 18 '05 #2
Thanks Martin
"Martin Marinov" <me********@mecrossroad.bg> wrote in message
news:up**************@TK2MSFTNGP10.phx.gbl...
In this case I would suggest you to use TemplateColumn, not HyperLink Column Look at this article:
http://www.ftponline.com/vsm/2002_08...tips/esposito/

Regards,
Martin

"Martin" <x@y.z> wrote in message
news:ux**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have a datagrid, that needs a HyperLink Column.

The url for this link has 2 parameters in it, eg
www.mydomain.com/index.aspx?param1=b&param2=a

The values for param1 and 2 are in my datasource. What databinding
expression should I use?

I don't want to have my datasource contain the url, as this is a
presentation layer issue, not data issue.

Thanks
Martin


Nov 18 '05 #3
Check out this also,
http://www.extremeexperts.com/Net/FA...inURLLink.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Martin" <x@y.z> wrote in message
news:ux**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have a datagrid, that needs a HyperLink Column.

The url for this link has 2 parameters in it, eg
www.mydomain.com/index.aspx?param1=b&param2=a

The values for param1 and 2 are in my datasource. What databinding
expression should I use?

I don't want to have my datasource contain the url, as this is a
presentation layer issue, not data issue.

Thanks
Martin

Nov 18 '05 #4

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

Similar topics

23
by: Paul Rubin | last post by:
OK, I want to scan a file for lines matching a certain regexp. I'd like to use an assignment expression, like for line in file: if (g := re.match(pat, line)): croggle(g.group(1)) Since...
5
by: Mike | last post by:
For ASP .Net display of a protected value what's better <%# %> (with DataBinding) or the ASP <%= %>? Is one more efficent or is there no difference? Thank you.
7
by: news.microsoft.com | last post by:
Hi, Is the compilation of XSLT, using XPathNavigator.Compile, only beneficial when the returned XPathExpression is cached? Next question, how do I cache the returned XPathExpression object? ...
10
by: aualias | last post by:
This seems like such a lame question, but how do you bind to a CheckBox with ASP.NET? With Windows Forms there is a DataBindings collection. I do not see it with the web version of the control,...
1
by: Martin | last post by:
Hi, I've got a web label control which I set a databind expression on the Text attribute in the html for the page (aspx file). At runtime, I want to override this attribute, so before I do...
2
by: Roy | last post by:
This may seem silly, but I'm just curious... I've noticed that in the code-behind, asp:Label has the .DataBind property yet has NO corresponding .DataSource property? Am I missing something? How...
2
by: Steve Hershoff | last post by:
Hi everybody, I have a question about asp.net's labels and the DataBind method. I have a method in a code-behind page (this is VisualStudio 2003 btw) that (simplified) looks like this: ...
9
by: micron_make | last post by:
I am trying to parse a file whose contents are : parameter=current max=5A min=2A for a single line I used for line in file: print re.search("parameter\s*=\s*(.*)",line).groups()
3
by: Dan Smithers | last post by:
What constitutes a constant-expression? I know that it is something that can be determined at compile time. I am trying to use template code and keep getting compiler errors "error: cannot...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
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...

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.