Add the following code to the ASP. NET page:
<Div>
<SCRIPT type = "text/JavaScript" src = "../ckfinder. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
Function browseserver (inputid ){
VaR finder = new ckfinder ();
Finder. basepath = '../ckfinder/'; // The ckfinder import path.
Finder. selectactionfunction = setfilefield; // sets the function when the file is selected.
Finder. selectactiondata = inputid; // input ID of the Receiving address
Finder. Popup ();
}
// Run the command when the file is selected
Function setfilefield (fileurl, data ){
Document. getelementbyid (data ["selectactiondata"]). value = fileurl;
}
</SCRIPT>
<P>
<Asp: textbox id = "txtimgpath" runat = "server" Height = "17px" width = "429px"> </ASP: textbox>
<Input type = "button" value = "" onclick = "browseserver ('<% = txtimgpath. clientid %>');"/>
</P>
</Div>