S
SAL
Hello,
I'm using vs2005 and ajax exentions 1.0.61025.0.
I have a page with a Gridview control that's inside of an update panel. I
also have a DetailsView on this page inside of another update panel. The
Detailsview handles the inserting of records into the Gridview.
The page is behaving as expected except the ItemInserting event (and there
the inserting) is being called twice. I have logic in place that is handling
this but it would be nice if the inserting events were not being called
twice and I don't see why this is happening. I'm including the html and the
code behind in case it could help. I'm sure this is simple but I just am not
getting it.
Thanks in advance
S
HTML:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="gvStormDetail" runat="server"
AutoGenerateColumns="False" DataSourceID="dsStormDetail"
EnableViewState="False" SkinID="gridviewSkin" Width="568px">
<Columns>
<asp:BoundField DataField="StormValueID"
HeaderText="StormValueID" InsertVisible="False"
ReadOnly="True" SortExpression="StormValueID"
Visible="False" />
<asp:BoundField DataField="StormAssetType"
HeaderText="Asset Category" SortExpression="StormAssetType" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="StormAssetTypeID"
HeaderText="StormAssetTypeID" SortExpression="StormAssetTypeID"
Visible="False" />
<asp:BoundField DataField="StormAssetName"
HeaderText="Storm Asset Name" SortExpression="StormAssetName" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="UniqueID"
HeaderText="UniqueID" SortExpression="UniqueID" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="Description"
HeaderText="Description" SortExpression="Description" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="EstValue"
HeaderText="Estimated Value" SortExpression="EstValue"
DataFormatString="{0:C0}" HtmlEncode="False" >
<ItemStyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:BoundField DataField="CntyAssetID"
HeaderText="CntyAssetID" SortExpression="CntyAssetID"
Visible="False" />
</Columns>
</asp:GridView>
<br />
<asp:ObjectDataSource ID="dsStormDetail" runat="server"
OldValuesParameterFormatString="original_{0}"
SelectMethod="GetStormAssetsByCntyAssetdId"
TypeName="StormAssetsMainBLL" EnableViewState="False">
<SelectParameters>
<asp:SessionParameter Name="id"
SessionField="cntyAssetId" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
<br />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="dvStormInsert"
EventName="ItemInserted" />
</Triggers>
</asp:UpdatePanel>
<asp:UpdatePanel ID="upInsert" runat="server" EnableViewState="False"
UpdateMode="Conditional" ChildrenAsTriggers="False">
<ContentTemplate>
<asp:Label ID="lblAssetType" runat="server"
EnableViewState="False" Font-Size="10pt"
Text="Category" Width="88px" BackColor="#EFEFEF"
Height="18px"></asp:Label><aspropDownList ID="ddlAssetType" runat="server"
AutoPostBack="True" DataSourceID="dsAssetTypes"
DataTextField="StormAssetType"
DataValueField="StormAssetTypeID"
Width="156px"
EnableViewState="False">
</aspropDownList><asp:ObjectDataSource
ID="dsAssetTypes" runat="server"
OldValuesParameterFormatString="original_{0}"
SelectMethod="GetAssetTypesPlusNone"
TypeName="StormAssetTypeBLL" EnableViewState="False"></asp:ObjectDataSource>
<br />
<aspetailsView ID="dvStormInsert"
runat="server"
DefaultMode="Insert"
EnableViewState="False"
Height="50px"
Width="280px"
SkinID="detailsviewSkin"
AutoGenerateRows="False"
DataKeyNames="StormValueID"
DataSourceID="dsStormInsert"
OnItemInserted="dvStormInsert_ItemInserted"
OnItemInserting="dvStormInsert_ItemInserting" >
<Fields>
<asp:BoundField DataField="StormValueID"
HeaderText="StormValueID" InsertVisible="False"
ReadOnly="True" SortExpression="StormValueID" />
<asp:TemplateField HeaderText="CntyAssetID"
SortExpression="CntyAssetID">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"
Text='<%# Bind("CntyAssetID") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtCntyAssetId" runat="server"
Enabled="False" EnableViewState="False"
Text='<%# Bind("CntyAssetID")
%>'></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%#
Bind("CntyAssetID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Storm Asset"
SortExpression="StormAssetID">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server"
Text='<%# Bind("StormAssetID") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<aspropDownList ID="ddlStormAsset"
runat="server"
DataSourceID="dsStormAsset"
DataTextField="StormAssetName"
DataValueField="StormAssetID"
Width="156px">
</aspropDownList>
<asp:ObjectDataSource ID="dsStormAsset"
runat="server"
OldValuesParameterFormatString="original_{0}"
SelectMethod="GetStormAssetsByAssetTypeId"
TypeName="StormAssetsBLL">
<SelectParameters>
<asp:ControlParameter
ControlID="ddlAssetType" Name="id" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%#
Bind("StormAssetID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Description"
SortExpression="Description">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server"
Text='<%# Bind("Description") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtDescription" runat="server"
Text='<%# Bind("Description") %>'></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%#
Bind("Description") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="UniqueID"
SortExpression="UniqueID">
<EditItemTemplate>
<asp:TextBox ID="TextBox5" runat="server"
Text='<%# Bind("UniqueID") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtUniqueId" runat="server"
Text='<%# Bind("UniqueID") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvUniqueId"
runat="server" EnableViewState="False"
ErrorMessage="UniqueID is a required field"
ControlToValidate="txtUniqueId">*</asp:RequiredFieldValidator>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label5" runat="server" Text='<%#
Bind("UniqueID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<InsertItemTemplate>
<asp:LinkButton ID="lbInsert" runat="server"
CausesValidation="True" CommandName="Insert"
Text="Insert"></asp:LinkButton>
<asp:LinkButton ID="lbCancel" runat="server"
CausesValidation="False" CommandName="Cancel"
OnClick="lbCancel_Click"
Text="Cancel"></asp:LinkButton>
</InsertItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server"
CausesValidation="False" CommandName="New"
Text="New"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Fields>
</aspetailsView>
<asp:ObjectDataSource ID="dsStormInsert" runat="server"
EnableViewState="False" InsertMethod="StormValueInsert"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetStormValues"
TypeName="StormValueBLL">
<InsertParameters>
<asparameter Name="cntyAssetId" Type="Int32" />
<asparameter Name="stormAssetId" Type="Int32" />
<asparameter Name="description" Type="String" />
<asparameter Name="uniqueId" Type="Int32" />
</InsertParameters>
</asp:ObjectDataSource>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlAssetType"
EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
Code Behind:
#Region "Constants"
Protected Const ASSETTYPEID As String = "assetTypeId"
Protected Const CNTYASSETID_ROW As Integer = 0
'Protected Const ASSETTYPE_ROW As Integer = 1
Protected Const STORMASSET_ROW As Integer = 1
Protected Const DESCRIPTION_ROW As Integer = 2
Protected Const UNIQUEID_ROW As Integer = 3
Protected Const ASSETTYPE_DD As String = "ddlAssetType"
Protected Const STORMASSET_DD As String = "ddlStormAsset"
Protected Const CNTYASSETID_TXT As String = "txtCntyAssetId"
Protected Const DESCRIPTION_TXT As String = "txtDescription"
Protected Const UNIQUE_TXT As String = "txtUniqueId"
#End Region
Protected Sub dvStormInsert_ItemInserting(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.DetailsViewInsertEventArgs) Handles
dvStormInsert.ItemInserting
e.Cancel = True
Dim ddl As DropDownList =
dvStormInsert.Rows(STORMASSET_ROW).FindControl(STORMASSET_DD)
If Not ddl Is Nothing Then
If ddl.SelectedValue = "" Then Return
Dim sBLL As New StormValueBLL
Dim stormAssetId, uid As Integer
Dim desc As String
stormAssetId = ddl.SelectedValue
uid = e.Values(UNIQUEID_ROW - 1)
desc = e.Values(DESCRIPTION_ROW - 1)
sBLL.StormValueInsert(e.Values(CNTYASSETID_ROW), stormAssetId,
desc, uid)
ResetDropdowns()
Dim txt As TextBox =
dvStormInsert.Rows(DESCRIPTION_ROW).FindControl(DESCRIPTION_TXT)
If Not txt Is Nothing Then txt.Text = Nothing
txt = dvStormInsert.Rows(UNIQUEID_ROW).FindControl(UNIQUE_TXT)
If Not txt Is Nothing Then txt.Text = Nothing
upInsert.DataBind()
End If
End Sub
Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.LoadComplete
SetCntyAssetId()
End Sub
Protected Sub dvStormInsert_ItemInserted(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.DetailsViewInsertedEventArgs) Handles
dvStormInsert.ItemInserted
SetCntyAssetId()
ResetDropdowns()
End Sub
Protected Sub SetCntyAssetId()
Dim txt As TextBox =
dvStormInsert.Rows(CNTYASSETID_ROW).FindControl(CNTYASSETID_TXT)
If Not txt Is Nothing Then
Dim id As Integer = Session("cntyAssetId")
If id > 0 Then
txt.Text = id
End If
End If
End Sub
Protected Sub ResetDropdowns()
ddlAssetType.SelectedValue = -1
End Sub
Protected Sub lbCancel_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
Me.ddlAssetType.SelectedValue = -1
Me.upInsert.DataBind()
'Dim ddl As DropDownList =
dvStormInsert.Rows(STORMASSET_ROW).FindControl(STORMASSET_DD)
'If Not ddl Is Nothing Then
' ddl.Items.Clear()
'End If
End Sub
I'm using vs2005 and ajax exentions 1.0.61025.0.
I have a page with a Gridview control that's inside of an update panel. I
also have a DetailsView on this page inside of another update panel. The
Detailsview handles the inserting of records into the Gridview.
The page is behaving as expected except the ItemInserting event (and there
the inserting) is being called twice. I have logic in place that is handling
this but it would be nice if the inserting events were not being called
twice and I don't see why this is happening. I'm including the html and the
code behind in case it could help. I'm sure this is simple but I just am not
getting it.
Thanks in advance
S
HTML:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="gvStormDetail" runat="server"
AutoGenerateColumns="False" DataSourceID="dsStormDetail"
EnableViewState="False" SkinID="gridviewSkin" Width="568px">
<Columns>
<asp:BoundField DataField="StormValueID"
HeaderText="StormValueID" InsertVisible="False"
ReadOnly="True" SortExpression="StormValueID"
Visible="False" />
<asp:BoundField DataField="StormAssetType"
HeaderText="Asset Category" SortExpression="StormAssetType" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="StormAssetTypeID"
HeaderText="StormAssetTypeID" SortExpression="StormAssetTypeID"
Visible="False" />
<asp:BoundField DataField="StormAssetName"
HeaderText="Storm Asset Name" SortExpression="StormAssetName" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="UniqueID"
HeaderText="UniqueID" SortExpression="UniqueID" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="Description"
HeaderText="Description" SortExpression="Description" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="EstValue"
HeaderText="Estimated Value" SortExpression="EstValue"
DataFormatString="{0:C0}" HtmlEncode="False" >
<ItemStyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:BoundField DataField="CntyAssetID"
HeaderText="CntyAssetID" SortExpression="CntyAssetID"
Visible="False" />
</Columns>
</asp:GridView>
<br />
<asp:ObjectDataSource ID="dsStormDetail" runat="server"
OldValuesParameterFormatString="original_{0}"
SelectMethod="GetStormAssetsByCntyAssetdId"
TypeName="StormAssetsMainBLL" EnableViewState="False">
<SelectParameters>
<asp:SessionParameter Name="id"
SessionField="cntyAssetId" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
<br />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="dvStormInsert"
EventName="ItemInserted" />
</Triggers>
</asp:UpdatePanel>
<asp:UpdatePanel ID="upInsert" runat="server" EnableViewState="False"
UpdateMode="Conditional" ChildrenAsTriggers="False">
<ContentTemplate>
<asp:Label ID="lblAssetType" runat="server"
EnableViewState="False" Font-Size="10pt"
Text="Category" Width="88px" BackColor="#EFEFEF"
Height="18px"></asp:Label><aspropDownList ID="ddlAssetType" runat="server"
AutoPostBack="True" DataSourceID="dsAssetTypes"
DataTextField="StormAssetType"
DataValueField="StormAssetTypeID"
Width="156px"
EnableViewState="False">
</aspropDownList><asp:ObjectDataSource
ID="dsAssetTypes" runat="server"
OldValuesParameterFormatString="original_{0}"
SelectMethod="GetAssetTypesPlusNone"
TypeName="StormAssetTypeBLL" EnableViewState="False"></asp:ObjectDataSource>
<br />
<aspetailsView ID="dvStormInsert"
runat="server"
DefaultMode="Insert"
EnableViewState="False"
Height="50px"
Width="280px"
SkinID="detailsviewSkin"
AutoGenerateRows="False"
DataKeyNames="StormValueID"
DataSourceID="dsStormInsert"
OnItemInserted="dvStormInsert_ItemInserted"
OnItemInserting="dvStormInsert_ItemInserting" >
<Fields>
<asp:BoundField DataField="StormValueID"
HeaderText="StormValueID" InsertVisible="False"
ReadOnly="True" SortExpression="StormValueID" />
<asp:TemplateField HeaderText="CntyAssetID"
SortExpression="CntyAssetID">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"
Text='<%# Bind("CntyAssetID") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtCntyAssetId" runat="server"
Enabled="False" EnableViewState="False"
Text='<%# Bind("CntyAssetID")
%>'></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%#
Bind("CntyAssetID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Storm Asset"
SortExpression="StormAssetID">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server"
Text='<%# Bind("StormAssetID") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<aspropDownList ID="ddlStormAsset"
runat="server"
DataSourceID="dsStormAsset"
DataTextField="StormAssetName"
DataValueField="StormAssetID"
Width="156px">
</aspropDownList>
<asp:ObjectDataSource ID="dsStormAsset"
runat="server"
OldValuesParameterFormatString="original_{0}"
SelectMethod="GetStormAssetsByAssetTypeId"
TypeName="StormAssetsBLL">
<SelectParameters>
<asp:ControlParameter
ControlID="ddlAssetType" Name="id" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%#
Bind("StormAssetID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Description"
SortExpression="Description">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server"
Text='<%# Bind("Description") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtDescription" runat="server"
Text='<%# Bind("Description") %>'></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%#
Bind("Description") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="UniqueID"
SortExpression="UniqueID">
<EditItemTemplate>
<asp:TextBox ID="TextBox5" runat="server"
Text='<%# Bind("UniqueID") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtUniqueId" runat="server"
Text='<%# Bind("UniqueID") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvUniqueId"
runat="server" EnableViewState="False"
ErrorMessage="UniqueID is a required field"
ControlToValidate="txtUniqueId">*</asp:RequiredFieldValidator>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label5" runat="server" Text='<%#
Bind("UniqueID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<InsertItemTemplate>
<asp:LinkButton ID="lbInsert" runat="server"
CausesValidation="True" CommandName="Insert"
Text="Insert"></asp:LinkButton>
<asp:LinkButton ID="lbCancel" runat="server"
CausesValidation="False" CommandName="Cancel"
OnClick="lbCancel_Click"
Text="Cancel"></asp:LinkButton>
</InsertItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server"
CausesValidation="False" CommandName="New"
Text="New"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Fields>
</aspetailsView>
<asp:ObjectDataSource ID="dsStormInsert" runat="server"
EnableViewState="False" InsertMethod="StormValueInsert"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetStormValues"
TypeName="StormValueBLL">
<InsertParameters>
<asparameter Name="cntyAssetId" Type="Int32" />
<asparameter Name="stormAssetId" Type="Int32" />
<asparameter Name="description" Type="String" />
<asparameter Name="uniqueId" Type="Int32" />
</InsertParameters>
</asp:ObjectDataSource>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlAssetType"
EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
Code Behind:
#Region "Constants"
Protected Const ASSETTYPEID As String = "assetTypeId"
Protected Const CNTYASSETID_ROW As Integer = 0
'Protected Const ASSETTYPE_ROW As Integer = 1
Protected Const STORMASSET_ROW As Integer = 1
Protected Const DESCRIPTION_ROW As Integer = 2
Protected Const UNIQUEID_ROW As Integer = 3
Protected Const ASSETTYPE_DD As String = "ddlAssetType"
Protected Const STORMASSET_DD As String = "ddlStormAsset"
Protected Const CNTYASSETID_TXT As String = "txtCntyAssetId"
Protected Const DESCRIPTION_TXT As String = "txtDescription"
Protected Const UNIQUE_TXT As String = "txtUniqueId"
#End Region
Protected Sub dvStormInsert_ItemInserting(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.DetailsViewInsertEventArgs) Handles
dvStormInsert.ItemInserting
e.Cancel = True
Dim ddl As DropDownList =
dvStormInsert.Rows(STORMASSET_ROW).FindControl(STORMASSET_DD)
If Not ddl Is Nothing Then
If ddl.SelectedValue = "" Then Return
Dim sBLL As New StormValueBLL
Dim stormAssetId, uid As Integer
Dim desc As String
stormAssetId = ddl.SelectedValue
uid = e.Values(UNIQUEID_ROW - 1)
desc = e.Values(DESCRIPTION_ROW - 1)
sBLL.StormValueInsert(e.Values(CNTYASSETID_ROW), stormAssetId,
desc, uid)
ResetDropdowns()
Dim txt As TextBox =
dvStormInsert.Rows(DESCRIPTION_ROW).FindControl(DESCRIPTION_TXT)
If Not txt Is Nothing Then txt.Text = Nothing
txt = dvStormInsert.Rows(UNIQUEID_ROW).FindControl(UNIQUE_TXT)
If Not txt Is Nothing Then txt.Text = Nothing
upInsert.DataBind()
End If
End Sub
Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.LoadComplete
SetCntyAssetId()
End Sub
Protected Sub dvStormInsert_ItemInserted(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.DetailsViewInsertedEventArgs) Handles
dvStormInsert.ItemInserted
SetCntyAssetId()
ResetDropdowns()
End Sub
Protected Sub SetCntyAssetId()
Dim txt As TextBox =
dvStormInsert.Rows(CNTYASSETID_ROW).FindControl(CNTYASSETID_TXT)
If Not txt Is Nothing Then
Dim id As Integer = Session("cntyAssetId")
If id > 0 Then
txt.Text = id
End If
End If
End Sub
Protected Sub ResetDropdowns()
ddlAssetType.SelectedValue = -1
End Sub
Protected Sub lbCancel_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
Me.ddlAssetType.SelectedValue = -1
Me.upInsert.DataBind()
'Dim ddl As DropDownList =
dvStormInsert.Rows(STORMASSET_ROW).FindControl(STORMASSET_DD)
'If Not ddl Is Nothing Then
' ddl.Items.Clear()
'End If
End Sub