Showing posts with label greetings. Show all posts
Showing posts with label greetings. Show all posts

Wednesday, March 28, 2012

Modal PopUp control needs dynamic data on button click

greetings,

Have a modal popup control as follows:

<

cc1:ModalPopupProperties
TargetControlID="lb_verify"
PopupControlID="P_popup"
BackgroundCssClass="modalBackground"
DropShadow="true"
OkControlID="lb_ok1"
OnOkScript="onOk()"
CancelControlID="lb_cancel1"/>
</cc1:ModalPopupExtender>

What I'm trying to do is to populate a gridview full of options (that is on the p_popup panel) when the user clicks the lb_verify link button. This gridview will be populated based on a textbox entry, so it's dynamic.

When I try to do this on the lb_verify.click action, the sub does not fire... only the popup modal...

Following is my lb_verify sub just in case that will help...

Protected

Sub lb_verify_Click(ByVal senderAsObject,ByVal eAs System.EventArgs)Handles lb_verify.Click
Dim AVAs AddressVerification =New AddressVerification
Dim APAs AddressProperties =New AddressProperties
With AP
.address1 = tb_address1.Text
.city = tb_city.Text
.state = tb_state.Text
.zip = tb_zip.Text
EndWith
Dim resultAsString = AV.AddressVerified(AP)
SelectCase result
Case"M"
L_msg.Text ="modal popup / pick from grid"
gv_verify.DataSource = AV.GetAddressAlternates(AP)
gv_verify.DataBind()
CaseElse
L_msg.Text = result
EndSelect
EndSub

Let me know and thanks.

Rock

This sounds like work item 207 which is not yet implemented.

Monday, March 26, 2012

Modal Popup Offset problem

Greetings,

Sorry to ask such a simple question, but my Modal Popup is working great except that it is popping up offset -- both the popup control and the background.

Are there any instances/tags that would "contain" the popup? I'm assuming this is more of an HTML problem, but assumed the "modal" part of the control would find the entire IE (6.0) window.

Ideas?

Thanks.

Dan

Figured it out myself -- I had the panel to be popped up inside another table, so the modal was acting "inside" that cell. Moved it to the bottom of the page and it works great.

Dan