473,569 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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('ht tp://www.zzzzz.com/htw.htm?id=XXXX XX','htwflash', 'height=565,wid th=800,scrollba rs=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 1412
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=javasc ript>"
sScript & = "window.open('h ttp://www.zzzzz.com/htw.htm?
id=XXXXXX','htw flash','height= 565,width=800,s crollb
ars=no,resizabl e=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.Registerst artupscript

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('ht tp://www.zzzzz.com/htw.htm?id=XXXX XX','htwflash', 'height=565,wid th=800,scrollba rs=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
12406
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, 'height=200,width=400,status=no,toolbar=no, menubar=no,location=no resizable=no scrollable=no'); but I can't seem to invoke the client side script from within a Server...
3
469
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 architecture into .Net -- not looking to do it at this time, just to understand how I would achieve it. In the old environment, we had two classes, a client...
3
1852
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 Index.html. After finishing its work, it should spawn a new browser and display the updated Index.html file. How can I do that? Thank you for any...
22
2156
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 stage. One approach I have used on other systems is to prevent the action buttons appearing. For example, if one did not have the Role of...
2
294
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 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...
10
2028
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 whole day is then displayed in cels of a table. The user has then to click in a cel representing a hour of the day and an object (book ..), and...
2
6937
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
2
1138
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 by that particular button.
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7970
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.