|
 |
aspx thread: Using Variables Once I got it... (Little Urgent)
Message #1 by "Salvador Gallego" <salvito@h...> on Tue, 18 Jun 2002 06:59:24
|
|
Hi,
I had parsing two variables from another aspx page and I just want to use
that variables on my Sql Query in the actual page.
In my code, I have a For statement which read the content of my Text Boxes
placed on a "Add Panel" which I had made, so I need to use that mentioned
variables and insert it inside my actual text boxes, but when I do that,
it tell me that I can't use <% %> tags inside a control with the
runat="server" atribute. Aniway it can't read the value...
I think I can solve this problem but actually I don't know the way to do
it, this is little urgent because I must finish this work today;
Any Ideas please?
If I find the solution before I'll post it;
Thanks a lot in advance,
From Spain,
Salvador Gallego.
Message #2 by "Salvador Gallego" <salvito@h...> on Tue, 18 Jun 2002 07:27:21
|
|
Ok, Solved!!
The code was reading the variables in the good way, but the problem was my
Sql Query in the procedure that fills my datagrid at the star.
This query was using the two Strings which came from the other page in
the "where" clausule (...where admin_zone=myTwoStrings) and the error was
related with the object OleDbDataReader...
Now the problem is that the two variables I had pars becames useless
because I just want the administrator to see the fields of the "zone" that
he is administrating.
How could I show the table fields of that query even if it is empty?
Maybe using the Rowcount property or something in my "databind"
(or "filldatagrid", as you like ...) procedure?
Again I'll post before if I find the solution, but please, remember this
is a little urgent ;-)
Thanks again,
Salvador Gallego.
> Hi,
> I had parsing two variables from another aspx page and I just want to
use
t> hat variables on my Sql Query in the actual page.
> In my code, I have a For statement which read the content of my Text
Boxes
p> laced on a "Add Panel" which I had made, so I need to use that
mentioned
v> ariables and insert it inside my actual text boxes, but when I do that,
i> t tell me that I can't use <% %> tags inside a control with the
r> unat="server" atribute. Aniway it can't read the value...
> I think I can solve this problem but actually I don't know the way to do
i> t, this is little urgent because I must finish this work today;
> Any Ideas please?
> If I find the solution before I'll post it;
> Thanks a lot in advance,
> From Spain,
> Salvador Gallego.
|
|
 |