Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to realize user interfereing like CS program?

Reply
Thread Tools

How to realize user interfereing like CS program?

 
 
Lei Guangfu
Guest
Posts: n/a
 
      10-17-2003
HI,

In Client Server model, we can get user option to decide
which code will be executed.

For example:

Dim IsRecordExist As Boolean
If IsRecordExist Then
If MessageBox.Show("The relevant record
already exists in the database. Do you want to overwrite
it?", "Overwrite?", MessageBoxButtons.OKCancel,
MessageBoxIcon.Question, MessageBoxDefaultButton.Button2,
MessageBoxOptions.RightAlign) = DialogResult.Cancel Then
Exit Sub
End If
End If
...... Continue

'End of Sample--------------------------------

in web-based program, How can I reach the same purpoose?

Anyone can give me some help?

Thanks in advance.

Lei Guangfu



 
Reply With Quote
 
 
 
 
Natty Gur
Guest
Posts: n/a
 
      10-19-2003
Hi,

Create new webform with the look and feel of messageBox. Use
window.ReturnValue to return value match client selection.

From every webform that yopu want use client side script to use
showModalDialog (vReturnValue = window.showModalDialog(sURL [,
vArguments] [, sFeatures]))
to call your messagebox webpage. You can query vReturnValue to check the
value returned by messagebox.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi, has anyone tried to use C to realize some data structure like cells in Matlab? dd C Programming 1 04-06-2006 05:20 AM
To A.Friend (online criminals, they don't realize anything) oj Computer Support 1 10-20-2005 04:43 PM
how to realize WDS?? sjdy Wireless Networking 1 04-04-2005 05:05 AM
How to realize the communication of applet and ejb? 王崟 Java 0 08-23-2004 05:42 AM
Switching items between listboxes, and letting .net realize it. Ryan Ternier ASP .Net 1 07-25-2004 05:18 PM



Advertisments