473,503 Members | 9,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

varible between asp and asp.net

Hi All,

How can I use the variable declared in asp tag in server variables in asp.net?
Here is what I was trying to do.

<%dim i as int16

for i= 1 to 20%>

<asp:panel id="pnl"&<%=i%> runat="server">

<asp:Label id="Label1" runat="server">Label</asp:Label>

<asp:RadioButtonList id="rdolist" runat="server"></asp:RadioButtonList>

</asp:panel>
<% next%>
I would highly appreciate your help.

Thanks a million in advance.

mamun
Jul 21 '05 #1
2 1205
try to assign the value to a control and then you can access that from the server side code in aspx file

"Mamun" wrote:
Hi All,

How can I use the variable declared in asp tag in server variables in asp.net?
Here is what I was trying to do.

<%dim i as int16

for i= 1 to 20%>

<asp:panel id="pnl"&<%=i%> runat="server">

<asp:Label id="Label1" runat="server">Label</asp:Label>

<asp:RadioButtonList id="rdolist" runat="server"></asp:RadioButtonList>

</asp:panel>
<% next%>
I would highly appreciate your help.

Thanks a million in advance.

mamun

Jul 21 '05 #2
Hi Mamum,

You can normaly use that in asp and aspx however it is not really nice aspx
code.

Also you can use int32 because that seems to be more efficient in aspnet.

Have a look as well to these easy quickstart pages.

http://samples.gotdotnet.com/quickstart/

I hope this helps a little bit?

Cor
Jul 21 '05 #3

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

Similar topics

2
1433
by: Jack | last post by:
Hello, Under is C procedure: #include<stdio.h> #include<conio.h> void ab(int x) { if(x<5) { ab(x+1); printf("%d ",x);
1
4101
by: Abby Lee | last post by:
I hard coded "TheYear" (the table) and "MonthPD" (a field) into my script to make sure the query worked (it did)...so now I want to replace an actual year (table) with varible which the next step...
6
30543
by: The8thSense | last post by:
how to declare static varible and static method inside a class ? i try "public static ABC as integer = 10" and it said my declaration is invalid Thanks
4
1348
by: Xero | last post by:
Hello. I am using vb.net. There are two forms in my project. One is 'base' and the other one is 'savecurrent'. There is a value stored in a textbox called 'qc_a' in 'base'. I want to inherit...
2
1392
by: salportaro | last post by:
Hello: Here is the situation. VB.NET I have several forms and I have a XML file that can start with a particular for for debugging/layout reasons. This is a mdi project. Normaly you would...
1
1132
by: Peter | last post by:
Does anybody know how to convert a string to a varible? For example, I have defined 2 structures Structure SS dim Name as string dim ID as short end structure Structure TT
23
1476
by: paul | last post by:
HI! How so get the name of the present page into a variable? I need it because I need to attach it to a path so I can make others link to me. My pages are in iframes. Paul
2
2295
by: Aido82 | last post by:
Hi, this is probably a stupid question. Im trying to declare a varible to have the value of that in a text box when i declare the varible is there a way to give it the value in a text box...
1
3346
by: anniefs | last post by:
hi help me i m so much stuck int he code and i have no time .... i used ASP VBscipt and javascript functions with MS database javascript function add records in MS DB by using ASP vbscript...
3
1417
by: Sachin | last post by:
Hi Folks, I have one query in regarding const varible interpretaion by C/C++ compiler. How Compiler actually differentiate between normal stack varible and const varible during program execution?...
0
7207
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
7095
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...
1
7015
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
7470
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
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
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...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.