473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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=XXXXXX','htwflash','height=565,width=80 0,scrollbars=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.
Jul 21 '05 #1
2 1400
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,scroll b
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

--
Message posted via http://www.dotnetmonster.com
Jul 21 '05 #2
Emit this client side script for opening the window through the following
method
Page.Registerstartupscript

for more info. please visit the following link

http://aspnet.4guysfromrolla.com/art...21104-1.2.aspx

"Solvig" wrote:
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=XXXXXX','htwflash','height=565,width=80 0,scrollbars=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.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
3
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
3
by: Teckie03 | last post by:
Hi, does anyone know how to display a seperate browser from server process? My ASP.NET app control (ascx) has Archive button that does its own work , including updating an html page called...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
2
by: Solvig | last post by:
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...
10
by: Ben | last post by:
Hi, I made an application in classic asp (reservation of books and video stuffs for students) and want to migrate to asp.net. The user has to chose a date, then pushung on a submit button. The...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
2
by: gsauns | last post by:
Is it possible to, on a click of a button, run server-side code, and then, upon page refresh, run a client-side Javascript function? The client-side code would run only when the page was refreshed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.