Yes, it does. Thanks Ray
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eo%23yhSKjEHA.644@tk2msftngp13.phx.gbl...[color=blue]
> It can be the same page, different page, different server, different[/color]
site -[color=blue]
> it doesn't matter. But, regardless, you'll have to hit a server again.
> Example:
>
>
> <%
> If Request.Querystring("x") = "1" Then
> Response.Write "Okay, NOW the code in here will run..."
> '''code, code, code
> End If
> %>
>
>
> <button onclick="location.href+='?x=1'">Run a sub</button>
>
>
> See, instead of calling a sub from your button, you call the page again,[/color]
but[color=blue]
> pass something in the querystring that can tell your SERVER-side code that
> it should do something. Does that make sense at all?
>
> Ray at home
>
>
>
> "SyrU" <dthmtlgod@hotmail.com> wrote in message
> news:%23etnSgIjEHA.1776@TK2MSFTNGP15.phx.gbl...[color=green]
> > Hmmm, thanks didn't realize that. Is there any another way I can have a
> > user click on a button and run a sub routine or do I have to pass the[/color]
> value[color=green]
> > to another page?.
> >
> >
> > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > news:O94OVLHjEHA.712@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > the event is CLIENT side, your code is SERVER side, they can't[/color][/color][/color]
interact.[color=blue][color=green][color=darkred]
> > > You'll have to post to the server and process from there.
> > >
> > > --
> > > Curt Christianson
> > > Owner/Lead Developer, DF-Software
> > > Site:
http://www.Darkfalz.com
> > > Blog:
http://blog.Darkfalz.com
> > >
> > >
> > > "SyrU" <dthmtlgod@hotmail.com> wrote in message
> > > news:u4k0HBHjEHA.2652@TK2MSFTNGP15.phx.gbl...
> > > >I have the below code. I am trying to send information to a[/color][/color]
> subroutine,[color=green]
> > I[color=darkred]
> > > > am getting an Object Required Error.
> > > >
> > > > <input type="button" name="pSearch" value="Search"
> > > > onclick="DisplayRecords()">
> > > >
> > > > Then in my ASP page I have this
> > > >
> > > > Sub DisplayRecords()
> > > >
> > > > dim conn
> > > > dim strsql
> > > > dim mycount
> > > >
> > > > ...
> > > > ...
> > > >
> > > > End Sub
> > > >
> > > > I think I am doing this correctly.
> > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]