Wednesday, March 21, 2012

Passing variables problem

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','c al','width=25
0,height=300,left=270,top=180')"
href="javascript:;"><IMG src="http://pics.10026.com/?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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!You could a client side javacript function such as :

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

--

"acko bogicevic" <aconi2002@.yahoo.com> a crit dans le message de
news:%23qKpHmUyDHA.1524@.TK2MSFTNGP10.phx.gbl...
> 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','c al','width=25
> 0,height=300,left=270,top=180')"
> href="http://links.10026.com/?link=javascript:;"><IMG src="http://pics.10026.com/?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
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!

0 comments:

Post a Comment