|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP.net varibles
Hi,
I have such a code : Code:
<%
int lairX = Convert.ToInt32(Eval("lairX"));
int lairY = Convert.ToInt32(Eval("lairY"));
%>
and I want put content of these varibles into sql query , so i tried this : Code:
<asp:SqlDataSource ID="CellSqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:dbConnectionString %>"
SelectCommand="SELECT * FROM [Map] WHERE (([X] = '<% lairX; %>') AND ([Y] ='<% lairY; %>'))">
</asp:SqlDataSource>
but it doesnt work ,... any idea how to put there the variables ? thanks |
|
#2
|
|||
|
|||
|
Quote:
u can use parameter with sql datasource control
__________________
if you found this post is useful click (right side on this reply ) and agreeweb development help , Coding Stuffs Thank You, ![]() KiranK |
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > ASP.net varibles |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|