varible between asp and asp.net

  • Thread starter Thread starter Mamun
  • Start date Start date
M

Mamun

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
 
try to assign the value to a control and then you can access that from the server side code in aspx file
 
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
 
Back
Top