DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Create confirmation during process

  1. #1
    Join Date
    Sep 2004
    Posts
    56

    Question Create confirmation during process

    I'm just using ASP.NET

    My background is a desktop programmer, as well as users who use it. Usually I make a confirmation when the process took place with instructions

    .... Button_click ()
    if (MessageBox.Show ("Customer has exceeded the budget, sure would be in the process of?") ...)
    (
    / / Next command
    )

    How to do it in ASP.NET
    current coding as follows, but the value of fixed = false txtConfirm

    public void btnSavePrint_Click(object sender, ImageClickEventArgs e)

    txtConfirm.Text = "false";
    ScriptManager.RegisterStartupScript (this.UpdatePanel1, typeof(string), "MDT", "Document.all ['" + txtConfirm.ClientID +"']. Value = confirm ('Customer budget exeeded, continue ?'); javascript:" + Page.GetPostBackEventReference (txtConfirm, "@@@@buttonPostBack ") +"; ", true);

    if(txtConfirm.Text=="true")
    {
    //next command
    }

    Q? : why txtConfirm value always false, though in confirmation I selected OK button

    I need txtConfirm.ClientID value force to server txtConfirm

    any one know how to do that ?

    sorry for my poor english

  2. #2
    Join Date
    Oct 2008
    Posts
    142

    it might depend o the browser with which you are testing

    hi there,

    maybe instead of Document.All[], you should use document.getElementById().
    also, it is document instead of Document, as javascript is case sensitive, to the point that Var1 and var1 might be different variables. Besides, check whether the property you should use is value and not Value because of the same reason.
    I would run your dynamically created javascript code through a javascript debugger to find whether is not giving errors.

    best regards,

    tonci korsano "what you think doesn't matter! what matters is evidence..."

Similar Threads

  1. Replies: 4
    Last Post: 07-10-2006, 07:07 AM
  2. best way to create background process
    By dayfrank in forum C++
    Replies: 1
    Last Post: 06-26-2006, 02:17 PM
  3. Create process from NT server
    By David Garrido in forum VB Classic
    Replies: 0
    Last Post: 06-20-2000, 02:28 AM
  4. Create process from NT server
    By David Garrido in forum VB Classic
    Replies: 0
    Last Post: 06-20-2000, 02:28 AM
  5. Replies: 0
    Last Post: 04-12-2000, 12:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center