|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Adding WebControl using a Button....I'm developing a WebSite that will have several Lists and Details and I want to access the detail of the records just clicking in the record in DataGrid (for example). The detail will appear in the botton (or top) of the list. All of this will be managed with events and will not pass in the Query String (for security reasons I don't want to use the query string). With all this, when I click a link button in the data grid, if I load a WebUserControl with the detail (from a DropDownList, CheckBox with auto-postback or anohter button), we need to click twice to raise the right event. Why? Yes, I know why. The first time we loaded WebUserControl was in the Event fase of the life cycle and the second was in the Page_Load. There is lot's of WebSites that have this implemented and the question is: How? How can load (or fake the load) in the Buttton click a WebUserControl and all the events been catch when the WebUserControl is loaded in the Page_Load? All of this without using the Query String. What is the best approche? WebUserControl or IFrame? Hope that someone could help me. tkx in advance Paulo Aboim Pinto Odivelas - Portugal Nice question.
I will suggest you to use nested datagrids. I mean, nest a datagrid inside an datagrid and bind data nested datagrid thru the parent datagrid's ItemDataBound event. - Vadivel Kumar http://vadivelk.net tkx for the response.
I have lot's of application for this feature like a search panel and the hitlist panel that I want to perform the search after click the "Search" link (or button); Have the collapse button for a certain part of the screen, etc. This problem can be use in all of this features. I don't want to pre-load the WebUserControl and make the Visible = true when I want him to show. I want to only load want I need and I need when I click one link (or button). There is no other way to resolve this? Paulo Aboim Pinto Odivelas - Portugal Vadivel Kumar wrote: Show quoteHide quote > Nice question. > > I will suggest you to use nested datagrids. I mean, nest a datagrid > inside an datagrid and bind data nested datagrid thru the parent > datagrid's ItemDataBound event. > > - > Vadivel Kumar > http://vadivelk.net hi Paulo, yes, make sure you set an explicit id for your dynamic control,
and also make sure that it is rebuilt the same way it was built previously after a postback. Try some of the suggestions in the following post : http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.buildingcontrols/browse_frm/thread/74537d30f5337999/23ed93f9941ae970?lnk=st&q=alessandro+zifiglio&rnum=3&hl=en#23ed93f9941ae970 Regards, Alessandro Zifiglio Show quoteHide quote "Esqueleto" <esquel***@tusofona.com> ha scritto nel messaggio news:1151317991.796540.218030@p79g2000cwp.googlegroups.com... > tkx for the response. > > I have lot's of application for this feature like a search panel and > the hitlist panel that I want to perform the search after click the > "Search" link (or button); Have the collapse button for a certain part > of the screen, etc. > > This problem can be use in all of this features. I don't want to > pre-load the WebUserControl and make the Visible = true when I want him > to show. I want to only load want I need and I need when I click one > link (or button). > > There is no other way to resolve this? > > Paulo Aboim Pinto > Odivelas - Portugal > > Vadivel Kumar wrote: >> Nice question. >> >> I will suggest you to use nested datagrids. I mean, nest a datagrid >> inside an datagrid and bind data nested datagrid thru the parent >> datagrid's ItemDataBound event. >> >> - >> Vadivel Kumar >> http://vadivelk.net >
ValidationControl evaluationfunction ASP.NET 2.0
Gridview extra header row with command button and paging Responding to changes to controls in a Repeater Custom Controls with non-String Attributes Response.Redirect not being called after sending an email Web control which is a combobox with an editable portion XML Dropdownlist- Custom DataTextField asp.net 1.1 X 2.0 compatibility issue how to trigger an action by clicking in a field of detailsview? Anyway to enable a ToolTip for each ListItem |
|||||||||||||||||||||||