ASPxCallback Control is simply a data callback control , That is, do not refresh a page to display data , Mainly through the registration of client-side events and server-side events to communicate with each other to complete the task .

How to use ASPXCallback:

  1. Add to page CallBack Components , And set up ClientInstanceName attribute ( Client identity , Such as ClientInstanceName="Callback1").
  • register CallBack Server side events for components ASPxCallback_Callback, This method is the server-side handler that the client will call .
  • register CallBack Component's CallbackComplete event , It is used to handle the operation after callback , And through the parameter e obtain parameter And set the returned result Value .
  • On the client side, the user CallBack Component client methods PerformCallback Method , To call the server-side ASPxCallback_Callback event .          Code :Callback1.PerformCallback(id)
  • CallBack Component calls automatically CallbackComplete event , Complete this operation .

The following example will show you how to enable the server-side method to update DIV Data in .

HTML Code , Three DIV, Every DIV Each has a label , By calling Javascript function ShowDetails To update DIV The content of , Where the parameters are Div ID The last number of .ASPxCallback Component to register the server at the same time OnCallback event , Used to handle callbacks ,ClientSideEvents Of CallbackComplete Method is called automatically when the callback completes .

ASPxCallback Control more related articles

  1. devexpress Controls ASPxCallback

    ASPxCallback Mainly through the registration of client-side events and server-side events to communicate with each other to complete the task .ASPxCallback Control encapsulates a lot of Ajax operation , It's very convenient to use , If the page needs to brush the local operation and do not want to ...

  2. DevExpress Components AspxCallBack Pass values to multiple controls on the client side

    AspxCallBack From the server to the client, a single control can use CallbackEventArgs Of e.Result To pass on value , Here is how to transfer values to multiple controls . ASPX Page code : <dx:ASPxCallba ...

  3. JS call Android、Ios Native controls

    I talked with you in my last blog , About JS And Android.Ios Detailed code implementation of communication between native controls , Let's talk about it today JS call Android.Ios The similarities and differences of communication , In order to help us in hybrid development , ...

  4. HTML5 progress and meter Control

    stay HTML5 in , Added progress and meter Control .progress Control is progress bar control , It can indicate the progress of the task , Such as Windows Software installation in the system . File copy and other scenes progress .meter Control is the metering bar control , Denotes a ...

  5. Baidu flash html5 Self switching Multi file asynchronous upload control webuploader Basic usage

    Dual core browser in chrome The kernel uses uploadify There is always 302 problem , I don't know how to fix it , I like 360 The browser is to help customers control the rendering kernel : If the page needs to use speed kernel by default , labeling :<meta name=& ...

  6. JS And APP Native control interaction

    " Hot update "." Thermal deployment " I believe that the mixed development of children's shoes must be no stranger , that APP How to avoid every upgrade in APP The app store releases ? The concept of hybrid development is used here , Especially for e-commerce websites ...

  7. UWP Necessary for development : Common data list control summary comparison

    Today, I want to introduce UWP Develop common data list for summary and comparison , As a reference for future project development .UWP Please refer to [UWP Summary of necessary and common knowledge points for development ]. This time mainly discusses the following controls : GridView: Used to display data ...

  8. 【 Step on the pit shorthand 】 Open source calendar control , By the way, a comprehensive analysis of the open source library package released to Bintray/Jcenter Whole process ( new ), Make open source easier ~

    One . Write it at the front Self use android studio Start , By its unique way of dependence :compile 'com.android.support:appcompat-v7:25.0.1' I am deeply attracted by , Ever since I had it , hemp ...

  9. For Baidu WebUploader Secondary encapsulation of open source upload control , Streamline the front-end code ( Two sentences of code to upload )

    Preface First of all, let's make a statement , I'm right WebUploader Secondary encapsulation of open source upload control , The bottom is still WebUploader Realized , Just to use it more succinctly . Here to tell us about WebUploader brief introduction : WebUp ...

Random recommendation

  1. Javascript in appendChilid() connotation

    <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <m ...

  2. ffprobe Use specific explanations

    clip 1. grammar 2. Description and narration 3. Options 3.1 Flow indicator 3.2 General options 3.3 Audio and video options 3.4 Main options 4. Writer 4.1 The default value is 4.2 compact, csv 4.3 flat 4 ...

  3. adopt Servlet Of response Draw page captcha

    java part package com.servlet; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; ...

  4. What is? Jsp

    1. What is? jsp java server page(java Server side page technology ), yes sun Company developed a server-side dynamic page generation technology specification . Because direct use servlet Generate page , If the page is complex , ...

  5. Java Basics ---IO( Two )--File class 、Properties class 、 Print stream 、 Sequence flow ( Combined flow )

    Lesson one      File class One . summary 1.File class : Abstract representation of file and directory pathnames 2. characteristic : 1) Used to encapsulate a file or folder as an object 2) It is convenient to operate the attribute information of files and folders 3)File Class is not ...

  6. Java Reading notes ( 5、 ... and ) Target data type conversion

    Data type conversion must meet the following rules : Not right boolean Type to type Object types cannot be converted to objects of unrelated classes   // Can different objects be named with the same name ? According to the scope principle , Maybe ? Turn the big one into the small one ...

  7. Github Use : Upload locally , Keep up with it

    Not for a long time Github I forgot how to synchronize again , Git The desktop was deployed the year before last . 1. open GitHub Desktop -- file -- clone repository --- Operate one of the desired files ...

  8. excel Picture link to picture

    Sub LoadImage() Dim HLK As Hyperlink, Rng As Range For Each HLK In ActiveSheet.Hyperlinks ' In the circular activity worksheet ...

  9. Rights management -ACL

    Rights management -ACL author : Yin Zhengjie Copyright notice : Original works , Declined reprint ! Otherwise, the legal liability will be investigated . One .ACL Introduction and opening of permissions 1.ACL About permissions For example, there is a directory under the root (”/yinzhengjie“), The owner of this directory ...

  10. spark Mistakes encountered 1- Out of memory

    Original code : JavaRDD<ArticleReply> javaRdd = rdd.flatMap(new FlatMapFunction<String, ArticleReply ...