Passing variables problem

  • Thread starter Thread starter acko bogicevic
  • Start date Start date
A

acko bogicevic

Hi i have a folowing problem
I have a textbox and a link.
When i click a link i would like to pass and value of the txtDeadLine,
but i do not know sintax.
Here is what i have:

<asp:TextBox id="txtDeadLine" runat="server" Width="100px"
CssClass="DDiText"></asp:TextBox>

<A
onclick="window.open('Kalendar.aspx?textbox=txtDeadLine','cal','width=25
0,height=300,left=270,top=180')"
href="javascript:;"><IMG src="Slike\cal.gif" border="0"></A>

I know that what i need is something like this.

<A onclick="window.open('Kalendar.aspx?textbox=txtDeadLine&Value='Here i
do not know, ...

Thanks
Alexandar
 
You could a client side javacript function such as :

function MyAction()
{
window.open('url.asp?prm='+MyForm.elements["txtDeadLine"].value);
}
 
Back
Top