0
我在我的aspx文件下面的BulletedList
<asp:BulletedList ID="DocumentList" runat="server"
DisplayMode="LinkButton" onclick="DocumentList_Click">
<asp:ListItem Value="Documents/testpage.pdf" Text="testpage.pdf" >test page</asp:ListItem>
<asp:ListItem Value="Documents/testpage2.pdf" Text="testpage2.pdf">test page 2</asp:ListItem>
</asp:BulletedList>
我想要做的就是在我的CS文件,我想assing以下
Sting filepath = // here i want to get the ListItem Value
Sting filename = // here i want to get the file name present in Listitem text.
如何在下面的按鈕單擊事件中獲得上述兩個值。
protected void DocumentList_Click(object sender, BulletedListEventArgs e)
{
}