Re: Client Side Values passed from Server
From: John Cosmas (vabo214_at_msn.com)
Date: 10/02/04
- Next message: Parco: "Re: Can i pass a SqlConnection object with opened connection to a method/function as a parameter?"
- Previous message: remotesoft: "Re: Adding the .NET Framework in an Application"
- In reply to: Lucas Tam: "Re: Client Side Values passed from Server"
- Next in thread: Lucas Tam: "Re: Client Side Values passed from Server"
- Reply: Lucas Tam: "Re: Client Side Values passed from Server"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 2 Oct 2004 13:02:33 -0500
You have to declare the variable as PUBLIC instead of PRIVATE, otherwise the
client cannot get to the server-side code.
"Lucas Tam" <REMOVEnntp@rogers.com> wrote in message
news:Xns95767BA19CAE3nntprogerscom@140.99.99.130...
> "John Cosmas" <vabo214@msn.com> wrote in
> news:#a7vIBJqEHA.1644@tk2msftngp13.phx.gbl:
>
> > In the old form of ASP when code was executed all on one single page,
> > I was able to set a value into a variable and use it all over the page
> > like this -
> >
> > <% pvntDate = Date() %>
> > <input type="button" ID="btnTest"
> > onclick="window.open('test.asp?mydate=<% = pvntDate %>')">
>
> Just declare a page level variable:
>
> Private MyVariable as datetime
>
> --
> Lucas Tam (REMOVEnntp@rogers.com)
> Please delete "REMOVE" from the e-mail address when replying.
> http://members.ebay.com/aboutme/coolspot18/
- Next message: Parco: "Re: Can i pass a SqlConnection object with opened connection to a method/function as a parameter?"
- Previous message: remotesoft: "Re: Adding the .NET Framework in an Application"
- In reply to: Lucas Tam: "Re: Client Side Values passed from Server"
- Next in thread: Lucas Tam: "Re: Client Side Values passed from Server"
- Reply: Lucas Tam: "Re: Client Side Values passed from Server"
- Messages sorted by: [ date ] [ thread ]