Lhgcoredialogplugin v3.5.2 usage

Source: Internet
Author: User

 

Download the latest version from the author's blog

Http://www.cnblogs.com/lhgstudio

After decompression

Copy the entire lhgdialog directory to the root directory of your project. There is only one skins directory and two files: lhgcore. Min. js and lhgdialog. Min. js

Use

For example, to click "comeinuserlist. aspx" on the current page, the pop-up window is packagelastcheck. aspx.

Reference the Javascript file of the control on the comeinuserlist. ASPX page:

 

< Script Type = "Text/JavaScript" SRC = "../Lhgdialog/lhgcore. Min. js" > </ Script >
< Script Type = "Text/JavaScript" SRC = "../Lhgdialog. Min. js? S = chrome" > </ Script >
< Script Type = "Text/JavaScript" Language = "JavaScript" >

Function Opdlg2 (weburl ){
VaR Testdg =   New J. Dialog ({ID: ' Test19 ' , Page: weburl, width: 900 , Height: 610 , Title: ' Operations of the bottle chest field Examiner ' , Cover: True , Rang: True , Btnbar: False });
Testdg. showdialog ();
}

</ Script >

 

Then, add

 

< TD >
< A Style = "Cursor: hand" Onclick = "Opdlg2 ('../packageflow/packagelastcheck. aspx? Id = <% # eval (" ID ") % > ') "> Check Start quantity </ A >
</ TD >

 

In this way, the pop-up window packagelastcheck. aspx can be implemented, and parameters can be included.

 

----------------

 

In the pop-up window packagelastcheck. aspx, when you submit this page, you will be prompted that the submission is successful, close the window, and refresh the parent window comeinuserlist. aspx

In packagelastcheck. aspx

 

< Script Type = "Text/JavaScript" >
VaR DG = Frameelement. lhgdg;
Function Closdlg (){
DG. Cancel ();
}
Function Closdlgreload (){
DG. curwin. Location. Reload ();
DG. Cancel ();
}
</ Script >

 

Then in the button event of its background file. CS

 

 

Protected Void Button2_click ( Object Sender, eventargs E)
{
// Clientscript. registerstartupscript (GetType (), "alert", "alert ('submitted successfully! '); Closdlg (); ", true );
// Prompt that the submission is successful, and then close the window
// Clientscript. registerstartupscript (GetType (), "alert", "closdlg (); alert ('submitted successfully! '); ", True );
// Close the window and prompt that the submission is successful.
// Clientscript. registerstartupscript (GetType (), "alert", "closdlgreload (); alert ('submitted successfully! '); ", True );
// Close the window, refresh the parent page, and prompt that the submission is successful.
Clientscript. registerstartupscript (GetType (), " Alert " ," Alert ('submission successful! '); Closdlgreload (); " , True );
// First, it prompts that the submission is successful. Then, close the window in implementation and refresh the parent page.
}

 

 

In this way, the above functions can be implemented!

 

Note: If you want to use Ajax on this page,

 

 

< ASP: scriptmanager ID = "Scriptmanager1" Runat = "Server" >
</ ASP: scriptmanager >

Asp: updatepanel id =" updatepanel1 " runat =" server " >
contenttemplate >
put the Form Content here, Textbox, And then, functions such as pawn shop association can be found, implementation of the refreshing effect
contenttemplate >
Asp: updatepanel >

<ASP: buttonID= "Button1"Runat= "Server"Height= "21px"Onclick= "Button#click" 
Text= "Submit"Width= "Pixel PX" />

 

The button must not be placed in updatepanel. It should be placed outside, and other operations are not different.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.