Get the value from prompt dialog and save

  1. #1

    Get the value from prompt dialog and save

    Hi,

    I am using the Ext.Msg.Prompt to accept a value, how can i save it to the database.

    my code is as follows:

    
    
    
    Protected Sub btnAddFold(ByVal sender As Object, ByVal e As AjaxEventArgs)
    
    
            Ext.Msg.Prompt("Folder Name", "Please enter a folder name: ", New JFunction("showResultText")).Show()
    
    
    
    
    
    End Sub


    please guide ????

  2. #2

    RE: Get the value from prompt dialog and save

    Hi,

    Use AjaxMethod. For example, call AjaxMethod in 'showResultText' function and pass the prompt value to the server side.
    http://examples1.ext.net/#/Events/AjaxMethods/Overview/
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    RE: Get the value from prompt dialog and save

    I added the keyword before a server side method as: [AjaxMethod]

    But, it is coming as error with underline as: Declaration expected, the [AjaxMethod] is not identified by the VS 2008 editor, is there any reference i need to add.

    I am already using the following Imports at the top of my page:

    Imports Coolite.Ext.Web


    please excuse me, as iam new to ajax world and to coolite.

    Thanks and Regards,






  4. #4

    RE: Get the value from prompt dialog and save

    Hi,

    If you use VB then you have to use angle brackets for attribute


    <AjaxMethod>
    Vladimir Shcheglov
    Sr. Developer
  5. #5

    RE: Get the value from prompt dialog and save

    Hi,

    Please provide a sample, i tried but not working.

    I followed what you suggested, but it's not working, may be i am not doing what it need to be done.

    
    
    
    <script language="javascript" type="text/javascript" >
    
    
    var showResultText = function (btn, text) {
    
    
    Coolite.AjaxMethods.GetFolderName(text);
    
    
    };
    
    
    </script>
    In the server side code iam doing the following:
    
    
    
    <AjaxMethod()> _
    
    
    Public Sub GetFolderName(ByVal fname As String)
    
    
    Me.lblFoldName.Text = String.Concat("U entered : ", fname)
    
    
    End Sub
  6. #6

    RE: Get the value from prompt dialog and save

    Please help..............

    Sample please ........................






Similar Threads

  1. Save as dialog on client side for image
    By vishal.jhala@gmail.com in forum 1.x Help
    Replies: 0
    Last Post: Aug 06, 2011, 9:02 PM
  2. Fileupload after Save Dialog issue
    By reyonlines in forum 1.x Help
    Replies: 5
    Last Post: Jan 03, 2011, 6:27 PM
  3. [CLOSED] Mulitple textbox in Standard prompt dialog
    By CarWise in forum 1.x Premium Help
    Replies: 3
    Last Post: Nov 25, 2010, 11:12 AM
  4. [CLOSED] Save Dialog v0.8.1
    By cobiscorp in forum 1.x Premium Help
    Replies: 3
    Last Post: Aug 10, 2010, 10:29 AM
  5. [CLOSED] Save as dialog?
    By Jurke in forum 1.x Premium Help
    Replies: 1
    Last Post: Jun 01, 2009, 1:53 PM

Posting Permissions