Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

And yes, it needs to be explained...

 

I load a page that has server-side vbscript and client-side javascript.

I use javascript on runat=server buttons and at SOME point (after everything has finished) I want to create a connection to a database FROM THE SERVER (cant have all the clients connecting straight into it) and input the data there.

 

It seriously sounds like calling server-side code from client-side, and I *know* that's silly... but I'm trying to figure a way around it.

 

Having both client- and server- side code on a button will not work, since the server will run it at once, while the client waits for input...

 

Can I somehow "delay" server-side code?

waiting for an event to happen/trigger it?

 

I've also thought of opening another window-passing the data to it- and server-side running the connection to DB, then closing it immediately...

but that's not exactly a dream situation...

 

anyone? :(

 

 

Note: ALL client-side scripting has to be javascript as a requirement (although if there's a solution in vbscript, I'd be more than happy to hear it).

  • Moderators
Posted

You're using vbScript on the server-side? (or did you mean VB.NET?)

 

I'm not sure I understand your question. You can use IsPostBack in the form load event to check if it's a post back or not. NOt sure if that's what you're looking for.

Visit...Bassic Software
Posted

I can use whatever I wish on the server-side.

 

Is it possible to pass the desired data (that can be a lot) to another ASP.NET page without using a url parameter scheme...?

(You know, redirecting to another page, using a bogus url...)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...