What i have done so far is create an ASCX class, that builds a tiny 4 column Gridview with ID, Date, Name, and Shift as the columns and each row will have unique information and be pageable.
What i need to have done is understand how to make a Row, as a whole, clickable and process the event RowCommand, or create a custom event to process this ultimate event.
The Gridview is in the first View of a Multi-View and upon clicking the row, the users selection would be stored temporarily for a FormView to take the ID selected and fill in the appropriate fields according to the view this ID is related to.
To give you an idea of what is going on.
<asp:Content ID="Content1" ContentPlaceHolderID="cphBody" runat="server">
<asp:MultiView ID="MultiView1" runat="server">
<asp:View ID="vwSelDate" runat="server">
<asp:PlaceHolder ID="phSelDate" runat="server"></asp:PlaceHolder>
</asp:View>
<asp:View ID="vwData" runat="server">
<asp:PlaceHolder ID="phData" runat="server"></asp:PlaceHolder>
</asp:View>
<asp:View ID="vwConfirmation" runat="server">
<asp:PlaceHolder ID="phConfirmation" runat="server"></asp:PlaceHolder>
</asp:View>
</asp:MultiView>
</asp:Content>
Explanation:
phSelDate - loads the SelDate.ascx control, which is of course shown first. User selects a row from the control and it stores that ID and then loads the information into the phData control.
phData - loads the DataInfo.ascx control. From here a user reviews the information that has been loaded from the SelDate control. They either Edit or Delete the information according to their purpose. The Data Info.ascs control is used for 3 different datasets. Currently this is not a problem. But getting from the SelDate view to the DataInfo view is currently the issue.
phConfirmation - will load a simple confirmation of Edit or Deletion and after a certain period of time, will refresh back to the site menu structure for the user to do whatever.
I have used something similar to this before but it was more for reporting and i used javascript to pass a querystring to a another page which opened up in a new window. i dont want a new window to open up and would like to stay away from query strings for this to operate if possible.

New Topic/Question
Reply




MultiQuote





|