0

Project is based on Nhibernate & spring framework with ext.net controls .

I have a usercontrol UCA.ascx which has a hyperlink on click of which I want to generate a popup to show details . So what can be done ? Any help is welcome

  • I already tried to use javascript & even created a user control thinking if I could call usercontrol from usercontrol . I am not able to implement it properly . Can you guide me the right way , about what can be done in this situation ? –  Nov 28 '12 at 10:46

4 Answers4

0

The target attribute allows you set the target window of the anchor.

<a target="_blank" href="url"></a>
Michael K.
  • 555
  • 2
  • 15
0

you can write a function like this

       function openWindow() {
var URL = "/Test.aspx"
        window.open(URL);
        }

and call like this

    <a onclick="openWindow()" />
CodeSpread
  • 327
  • 2
  • 5
0

For popup you can use AJAX modal popup extender.

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx

Anup
  • 80
  • 1
  • 1
  • 6
0

Have you tried using JqueryUI Dialogue Box.

dialogue

add required input box inside the div which is going to popup.

<div id="dialog" title="Basic dialog">
//show details here....
</div>

you can modify the div and add whatever controls you want inside it.

Milind Anantwar
  • 81,290
  • 25
  • 94
  • 125
  • I modified the div adding all my controls inside it . Now I want to set property of ext.net controls by javascript or jquery , or an optimized alternative . –  Nov 29 '12 at 06:25
  • i am sure you must have given some id or class to controls you have added inside that div? now like normal DOM element you can set the property to these elements using jquery code. – Milind Anantwar Nov 29 '12 at 06:44
  • I have a ext:label which has a property "CtCls" , now I want to set value "x" to it . So what should i do ? I tried by document.getElementById("<%= lblpanelheader2.ClientID %>").setAttribute("CtCls","ArmedStayColor"); I even tried by $("#<%=lblpanelheader2.ClientID%>").attr("CtCls","ArmedStayColor"); but no success . –  Nov 29 '12 at 07:08
  • document.getElementById("<%= lblpanelheader2.ClientID %>").setAttribute("CtCls","ArmedAwayColor"); document.getElementById("<%= ImgArmStatus.ClientID %>").setAttribute("ImageUrl","~/images/sysimages/armed_away_indicator.png"); –  Nov 29 '12 at 07:20
  • give alert for id `<%= lblpanelheader2.ClientID %>` you have used.is it returning correct id? – Milind Anantwar Nov 29 '12 at 07:23
  • Ya I am getting the right id , just want to set its 2 properties from jquery or javascript –  Nov 29 '12 at 07:45
  • use this `$(#<%= lblpanelheader2.ClientID %>).attr("CtCls","ArmedAwayColor");` – Milind Anantwar Nov 29 '12 at 07:47
  • try this: `$('#'+<%= lblpanelheader2.ClientID %>).attr("CtCls","ArmedAwayColor");` – Milind Anantwar Nov 29 '12 at 09:58