Hi all
I have problems trying to get the values that I have in my listview control
my code is as follow:
the value that I would like to get is PolicyName and PolicyDescription,
and my code behind is
when I execute the page I don't get any information under LBselectedTitle.text neither LBSelectedDescr.text
Nay help will be greatelly appreciated
Thanks
I have problems trying to get the values that I have in my listview control
my code is as follow:
<
SelectedItemTemplate
>
<
tr
class
=
"rlvISel"
>
<
td
>
<
asp:Button
ID
=
"DeselectButton"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Deselect"
CssClass
=
"rlvBSel"
Text
=
" "
ToolTip
=
"Deselect"
/>
<
asp:Button
ID
=
"DeleteButton"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Delete"
CssClass
=
"rlvBDel"
Text
=
" "
ToolTip
=
"Delete"
/>
<
asp:Button
ID
=
"EditButton"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Edit"
CssClass
=
"rlvBEdit"
Text
=
" "
ToolTip
=
"Edit"
/>
</
td
>
<
td
>
<
asp:Label
ID
=
"PolicyIDLabel"
runat
=
"server"
Text='<%# Eval("PolicyID") %>' />
</
td
>
<
td
>
<
asp:Label
ID
=
"SUBNameLabel"
runat
=
"server"
Text='<%# Eval("SUBName") %>' />
</
td
>
<
td
>
<
asp:Label
ID
=
"PolicyNameLabel"
runat
=
"server"
Text='<%# Eval("PolicyName") %>' />
</
td
>
<
td
>
<
asp:Label
ID
=
"PolicyDescriptionLabel"
runat
=
"server"
Text='<%# Eval("PolicyDescription") %>' />
</
td
>
</
tr
>
</
SelectedItemTemplate
>
the value that I would like to get is PolicyName and PolicyDescription,
and my code behind is
when I execute the page I don't get any information under LBselectedTitle.text neither LBSelectedDescr.text
Nay help will be greatelly appreciated
Thanks
Dim values As New Hashtable()
RLVPolicy.SelectedItems(0).ExtractValues(values)
Dim Name As String = values("PolicyName")
Dim Description As String = values("PolicyDescription")
LBSelectedTitle.Text = Name
LBSelectedDescr.Text = Description