L
Lauchlan M
Hi.
Following the example at
http://www.codeproject.com/useritems/ooaspnet.asp?print=true, I have a
datagrid descendant class that shows a JavaScript confirm dialog before
deleting a row from the grid.
My first two questions are:
(i) Currently this class is in my project namespace.
I suppose it's a good idea to have this in some more generic custom
namespace so I can use this in several ASP.NET projects.
What is the best way to take this component and do that?
(ii) Currently using the component involves dropping a normal datagrid on
the webform and then editing the HTML view of the designer
<%@ Register tagprefix="dg" Namespace="iCARnetWebInterface"
Assembly="iCARnetWebInterface" %>
and
<aspatagrid . . .> </asp:datagrid> to <dgelDataGrid> . . .
</DelDataGrid> eg:
<dgelDataGrid id="DataGrid1" runat="server" CellPadding="3"
BackColor="White" BorderWidth="1px"
BorderStyle="None" BorderColor="#CCCCCC" AllowPaging="True"
PageSize="8" AutoGenerateColumns="False"
Height="168px" Width="448px">
.. . .
</dgelDataGrid></TD>
How would I go about making this modified/descended/inherited component
available from the toolbar, so it registers itself and inserts itself into
the webform appropriately?
My third question would be how I would modify the grid so that if JavaScript
isn't available on the browser, it posts back a confirm message including a
yes and a no button and only deletes on the yes button being pressed.
All juicy questions, it seems . . .
Thanks!
Lauchlan M
Following the example at
http://www.codeproject.com/useritems/ooaspnet.asp?print=true, I have a
datagrid descendant class that shows a JavaScript confirm dialog before
deleting a row from the grid.
My first two questions are:
(i) Currently this class is in my project namespace.
I suppose it's a good idea to have this in some more generic custom
namespace so I can use this in several ASP.NET projects.
What is the best way to take this component and do that?
(ii) Currently using the component involves dropping a normal datagrid on
the webform and then editing the HTML view of the designer
<%@ Register tagprefix="dg" Namespace="iCARnetWebInterface"
Assembly="iCARnetWebInterface" %>
and
<aspatagrid . . .> </asp:datagrid> to <dgelDataGrid> . . .
</DelDataGrid> eg:
<dgelDataGrid id="DataGrid1" runat="server" CellPadding="3"
BackColor="White" BorderWidth="1px"
BorderStyle="None" BorderColor="#CCCCCC" AllowPaging="True"
PageSize="8" AutoGenerateColumns="False"
Height="168px" Width="448px">
.. . .
</dgelDataGrid></TD>
How would I go about making this modified/descended/inherited component
available from the toolbar, so it registers itself and inserts itself into
the webform appropriately?
My third question would be how I would modify the grid so that if JavaScript
isn't available on the browser, it posts back a confirm message including a
yes and a no button and only deletes on the yes button being pressed.
All juicy questions, it seems . . .
Thanks!
Lauchlan M