passing value

  • Thread starter Thread starter Yama
  • Start date Start date
Y

Yama

Hi,

Simple question:

Is there a way to a value from client-side to server-side upon a click?

function _getReport(ReportName) { alert(ReportName); }

<asp:datalist id="dlReports" runat="server">
<itemtemplate>
<img height="7" src="../ReportsImages/navlink.gif" width="5">
<a class="Normal" id="<%#
DataBinder.Eval(Container.DataItem,"Description") %>"
href="ReportMainPage.aspx" onclick="return _getReport('<%#
EncryptString(DataBinder.Eval(Container.DataItem,"Description"))%>');">
<%# DataBinder.Eval(Container.DataItem,"Description") %></a>
</itemtemplate>
</asp:datalist>

What I would like to accomplish is to pass the report name to server-side
from client-side upon clicking on a link above.

Yama
 
Hi Yama,

Are you sure you are using the VB.net language?

Then it is just

on a button event or whatever postback

dim myvalue as integer = mytexttbox.text


Cor
 
Back
Top