473,406 Members | 2,378 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,406 software developers and data experts.

More on variable URLs

Sorry to keep beating this to death, but I still can't get it to work and
have not been able to find an example of what I want to do.

I want to make a template/url column in a datagrid use a different template
depending on the contents of the data the grid is bound to.

In my codebehind (vb) I have a loop going through the dataset. It populates
two variables with the two kinds of templates I want to use. I think that
part works OK.

Now I'm just having trouble referring to those variables in my html, so I
think I'm close.

I have this the html where the in the datagrid section which is where I'm
trying to access variables I declare and populate in the codebehind. How
should I refer to these:

<%# DataBinder.Eval(Container, lcVar1, lcVar2) %>

I'm getting a "Variable is not declared" errors. I've tried a more
fully-qualified name, but that didn't work either. This seems a lot like a
newbie error, so I'm hoping for a nice simple (forehead slapping) thing.
TIA!

--

Matt

"Gravity. It's not just a good idea, it's the law!"
Nov 18 '05 #1
0 793

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

Similar topics

1
by: phpkid | last post by:
Howdy I've been given conflicting answers about search engines picking up urls like: http://mysite.com/index.php?var1=1&var2=2&var3=3 Do search engines pick up these urls? I've been considering...
4
by: bofh | last post by:
I'm working on a project where I need to store a CGI query in a database field. The query contains variables which will be substitued at runtime (e.g., today's date, key to select upon, etc), and...
7
by: JIM.H. | last post by:
Hello, What is the life span of public variable defined in the class. Is there any way to define a global variable in aps.net, and use it in all the following pages. Thanks, Jim.
20
by: laredotornado | last post by:
Hi, I'm using PHP 4.3. I have 15 pages in which I need to take the content of the BODY and put it in a little table ... <table> <tr><td colspan="3"><img src="header.gif"></td></tr> <tr>...
18
by: Santy | last post by:
Hello Friends, I want to know some details regarding the C programming. When we run the program exe then how the variable are stored in the memory area according to their Storage classes and...
13
by: David | last post by:
Hi all, I have a singleton ienumerable that collects data from a database. I have listed the code below. It has the usual methods of current, move and reset. I need to go to a certain position...
2
by: k.j.stellema | last post by:
I wonder if this is possible.. i have a couple of anchors inside a page and all have 'pretty' URLs in the form of 'foo/bar/' and 'foo/ béar/'. If the user clicks on such an anchor (they are...
11
by: ymic8 | last post by:
Hi everyone, this is my first thread coz I just joined. Does anyone know how to crawl a particular URL using Python? I tried to build a breadth-first sort of crawler but have little success. ...
1
globalguideline
by: globalguideline | last post by:
Hi all here at forum. I am working to find out some solution to access a web page in PHP that is showing information on the bases of given argument in query string variable. My problem is this that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
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...

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.