Server side and client side actions on one button in ASP.NET

S

Solvig

Server side and client side actions on one button in ASP.NET

I am stuck. How do I find a start to a solution.

After checking all fields in a form I want to save changes in the database,
open a new window without toolbar with a fixed size and close the existing
web window. Or change the web window to above. The new window is a Flash
application where you can not use back and forward arrows.

I use VB.NET in ASP.NET.

This is what my customer wants:

The window should be opened using the following line of Javascript:

window.open('http://www.zzzzz.com/htw.htm?id=XXX...lbars=no,resizable=no,toolbar=no,status=no');

with XXXXXX replaced with the correct ID.

XXXXXX is an argument when the form was opened.

The problem as I find it is that I want to do server side checking and then
open/close window at client side.
 
R

Ritesh Jain via DotNetMonster.com

Hi,
if i am not wrong what u want is to validate the data at server side and
then open the onther page w/o any tool bar and etc...........

i think u can try this............

private sub Validate(.......)handles butXYZ.Click

'function Validate() will validate ur form data.....
if Validate()
Dim sScript As String

sScript = "<script language=javascript>"
sScript & = "window.open('http://www.zzzzz.com/htw.htm?
id=XXXXXX','htwflash','height=565,width=800,scrollb
ars=no,resizable=no,toolbar=no,status=no');"
sScript & ="</script>

response.write(sScript)

Else
'Validation fail handler...

End if

end sub


I hope this will help u.................

Regards,
Ritesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top