I have an aspx page with multiple controls.
When an image button is clicked, a modalpopup will open. In the modal popup, I have label, textbox and few buttons - Search, Add, Cancel.
When I click search button a grid will open with results matching the text box text. When ever this grid loads the alignment(All the labels and listboxes below this image control) of the page behind(aspx - mainpage) gets messed up.
There is no problem with other button click events in the modal popup.
How can I retain my table structure?
Please help. Sorry cannot post code.
Related
I have prepared one dropdown user control with a searching feature using textbox, panel, and checked listview.
when I click on down arrow PictureBox or in the displayed textbox, the listview panel will open as dropdown, and based on the mouse click I hiding and showing checked listview panel.
Now, when I put my user control within any panel and an open dropdown that time my user control's listview panel is going backside of the parent control/panel as I shown in the screen.
Please Help me.
I have a ModalPopupExtender on one my pages which I am using to render a form to the user, the form contains several fields including a DropDownList with its AutoPostBack property set to true. When the user changes the selected item in the DropDownList POSTBACK occurs and then the modal popup is automatically closed. If I reopen the popup at this point the correct partial updates have been applied, but I do not want the popup to close itself. Because of how the page is constructed (the content of the modal popup is a user control) I can't simply tell the page to redisplay the popup after the SelectedIndexChanged event of the DropDownList. Is there any way to prevent the popup from closing itself?
ModalPopupExtender1.Show();
Use this in the drop down list selected index changed event in code behind
I have a scenario in which a screen has 5 buttons, on click of each button a different grid view should be loaded.
eg: btn1 clicked grdv1 should be loaded,
btn2 clicked grdv2 should be loaded.
How can i achieve the above,
Condition is that the load on the page during each postback should be less or min.
I had done it using iFrame, loading separate aspx pages to iFrame on each btn click, but i cant get the control id's within the gridview loaded, as i need to do operations on the loaded grid.
Can some1 help me out with a simplest solution.
Thanks in advance.
If both the gridviews have same columns then on button click bind corresponding data. If the columns are different then On PageLoad method set all gridview's attribute i.e visible = "false" except the first one. In OnBtnClick_ForGvn make the corresponding gridview visible by gvn.visible = true;. Hope it helps.
I have one requirement like,
One master page with three image buttons, once clicking on any button it redirect's to appropriate page, in that page(it's requester form) i have placed all controls in one panel control(id="MyPanel"), one link button(MyLinkButton) out side to that panel and one modal popup control(id=MyModalpopup) as target control id=MyLinkButton,popupcontrolid=MyPanel. On this page load i did code (MyModalpopup.show()) to show all controls in modal popup.
every thing is working fine but, i have controls like dropdown,checkboxlist with autopostback=true and these are in updatepanel and for these controls i am binding data from code behind. Now the problem here is the data i am unable to bind and when these controls are postback the modal popup is not visible.
i am using C# and 3.5 framework.
What I would do, is have a hidden field (with runat=server) that has a true/false value that is set when the modal is activated/hidden.
Then during the client-side page-load of the postback, read that value and make the modal hidden/shown appropriately.
The other option would be to figure out how to make those controls work without the auto-postback (i.e. populating the controls via ajax).
I have a textbox in a windows form. Currently the focus is on the textbox and i enter some text. Now I click outside the textbox but within the window. This action does not make the text box to lose the focus. The cursor still blinks in the text box. If the click was on another control then the text box would lose the control.
How would I make the text box to lose control when clicked outside of it (not just on another control but anywhere inside the form)?
Thanks in advance.
Datte
Because you click on a control that has no ability of taking the focus (like a form, a label, etc). If you click for instance on another text box the focus should move..
To move the focus programmatically (i.e. in the OnClick event of the Form) use the control.Focus method.