Showing posts with label background. Show all posts
Showing posts with label background. Show all posts

Wednesday, March 28, 2012

Modal Popup Disable Background

I have a modalpopup for viewing some labels and buttons. But when i show modalpopup, background will not be disabled in IE 7 (it works for Firefox 2.0.0.3) . I looked at the codes in

( http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx ), but it has <atlas tags, not <asp tags.

Any idea?

Regards..

if you use the default css classes which are also used in the ajaxcontroltoolkit samplewebsite the background will be disabled in FF, IE6 and IE7.


Of course i tried it before writing here. But it did not work.

Regards..

Modal Popup Extender - how to set values on main page

Hi

I've got a Modal Popup Extender that shows a Pane and greys out the main page in the background. The main page has a Label (Label1) on it and the Pane (Pane1) that is being popped up has a Text Box (Text1) on it.

I want the user to fill in some text in the Text Box on the popped up Pane, and when the user clicks Button1 (the OK button on the Pane), it should take TextBox1.Text and place it in Label1.Text.

How do I do this? I'm using C#. Sorry, I know this is a basic questions for all you AJAX guru's out there. :)

Thanks in advance!

Regards
Edward

try javascript,

label1.value = textbox1.value;

Saturday, March 24, 2012

Modal popup visibility and background...

My ModalPopup panel is being visible before its disappears..

It flicks on the screen int the HTML load...
How can I fix this?

And...What is the style of modalPopoupExtender demo in atlas control toolkit site?

How can I make one similiar?

thanx!Please see FAQ #1 (http://forums.asp.net/thread/1293293.aspx#1) and StyleSheet.css in the root of the SampleWebSite.
Hi...Thanx...
BUT...I got three problems...

First...modalBackground stylesheet doesn't work in Firefox..because opacity and filter properties...
and..
Second...modalBackground stylesheet doesn't work with Dropdownlist control..it remains with default style...

finally...my last problem is that style="visibility:false;" doesn't work...

I just want to make something similiar to Insert Code modal of this page...with all components behind disabled and with low opacity...and it is hide on pageload =D..
this can't be so difficult...I also would like to load my usercontrol inside the modalpopup panel...BUT...is very difficult work with updatepanel and modalpopup together...

here is my code:

"DivRegisterUnit" style="visibility:false;"> "LabelUnitID" runat="server" Text="ID:"> "TextBoxUnitID" runat="server"> "LabelUnitDescription" runat="server" Text="Descri??o:"> "TextBoxUnitDescription" runat="server"> "ButtonRegisterUnit" runat="server" Text="Salvar" />

"MpeRegisterUnit" runat="server"> "modalBackground" OkControlID="ButtonRegisterUnit" PopupControlID="DivRegisterUnit" TargetControlID="LinkButtonRegisterUnit" />

<div id="DivRegisterUnit"> <asp:Label ID="LabelUnitID" runat="server" Text="ID:"></asp:Label> <asp:TextBox ID="TextBoxUnitID" runat="server"></asp:TextBox> <asp:Label ID="LabelUnitDescription" runat="server" Text="Descri??o:"></asp:Label> <asp:TextBox ID="TextBoxUnitDescription" runat="server"></asp:TextBox> <asp:Button ID="ButtonRegisterUnit" runat="server" Text="Salvar" /> </div> <cc1:modalpopupextender id="MpeRegisterUnit" runat="server"> <cc1:ModalPopupProperties BackgroundCssClass="modalBackground" OkControlID="ButtonRegisterUnit" PopupControlID="DivRegisterUnit" TargetControlID="LinkButtonRegisterUnit" /> </cc1:modalpopupextender>

Hi...
I resolved two of my three problems :P

First...I was wrong...
Third...I used "visible:none;"

the only one that I can't fix was the dropdownlist problem...

thanx..
If the issue is that the dropdown remains visible when the ModalPopup is displayed, the reason can be found in the FAQ. Our next release will have a workaround for this; you can get the code from CodePlex now if you want to try it out early.

Wednesday, March 21, 2012

ModalPopup and IE Styling?

Hey all, i am using a modalpopup extender and in firefox the styling is PERFECT. However, in IE, the modal is all black background, no opacity, and looks honestly terrible. Here is my CSS:

}.watermark {background: #FFAAFF;}.popupControl {background-color:#c2d0e0;position:absolute;visibility:hidden;border-style:solid;border-color: #6780b8;border-width:1px;}.modalBackground {background-color:#c2d0e0;filter:alpha(opacity=70);opacity:0.7;}.modalPopup {background-color:#c2d0e0;border-width:1px;border-style:solid;border-color:#6780b8;padding:3px;width:250px;}
Any ideas?

Acctually... nevermind... seems to make itself formatted properly when hosted by IIS... ;)