jayvit
asked on
hyperlinks displayed in checkbox list
Here is it ,I am trying to do :-
I got list of files uploaded into my system. All those uploaded files need to be displayed. Now the user has the option of removing any of those uploaded files.
By grouping hyperlinks in to checkbox list, the user can select(check) the files he things of removing and click the remove button
<%@ Page Language="C#" %>
<script runat="server">
void CheckMe(Object Sender, EventArgs E)
{
int i;
messg.Text="<p>Selected Item(s):</p>";
for (i=0; i<check1.Items.Count; i++)
{
if (check1.Items[i].Selected)
messg.Text+=check1.Items[i ].Text + "<br />";
}
}
</script>
<html>
<body>
<form runat="server">
<asp:CheckBoxList id="check1" AutoPostBack="True" TextAlign="Right" OnSelectedIndexChanged="Ch eckMe" runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:CheckBoxList>
<br />
<asp:label id="messg" runat="server"/>
<br />
<asp:Button id="ButtonRemove" runat="server" Text="Remove"></asp:Button >
</form>
</body>
</html>
I need to display hyperlinks in the checkbox list.
Item1, Item2, Item3, Item4, Item5, Item6 should all be hyperlinks.
And also
Upon selection of those checkboxes and click of Removebutton, those hyperlinks are removed.
Thanks,
Jay
I got list of files uploaded into my system. All those uploaded files need to be displayed. Now the user has the option of removing any of those uploaded files.
By grouping hyperlinks in to checkbox list, the user can select(check) the files he things of removing and click the remove button
<%@ Page Language="C#" %>
<script runat="server">
void CheckMe(Object Sender, EventArgs E)
{
int i;
messg.Text="<p>Selected Item(s):</p>";
for (i=0; i<check1.Items.Count; i++)
{
if (check1.Items[i].Selected)
messg.Text+=check1.Items[i
}
}
</script>
<html>
<body>
<form runat="server">
<asp:CheckBoxList id="check1" AutoPostBack="True" TextAlign="Right" OnSelectedIndexChanged="Ch
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:CheckBoxList>
<br />
<asp:label id="messg" runat="server"/>
<br />
<asp:Button id="ButtonRemove" runat="server" Text="Remove"></asp:Button
</form>
</body>
</html>
I need to display hyperlinks in the checkbox list.
Item1, Item2, Item3, Item4, Item5, Item6 should all be hyperlinks.
And also
Upon selection of those checkboxes and click of Removebutton, those hyperlinks are removed.
Thanks,
Jay
30 points this guy must be kidding
ASKER
Ok, I increased 50 points
Jay
Jay
<asp:CheckBoxList id="check1" AutoPostBack="True" TextAlign="Right"
runat="server">
<asp:ListItem>
<a href="www.google.com">Item 1</a></asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:CheckBoxList>
runat="server">
<asp:ListItem>
<a href="www.google.com">Item 1</a></asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:CheckBoxList>
Jayvit, experts over here work for the points ... so dont be stingy.
Yes A question minimum must be for 125 -250 points.
a 50 questions is a theorical question for example
a 50 questions is a theorical question for example
ASKER
Ok, djhex
You showed me the static way. I appreciate that. How, about if I wanna make an addition of items in runtime with hyperlink controls to that. I will hike the point value on it.
I need to add controls in runtime for my actual case. i.e., creating checkbox list and adding items with hyperlinks to it.
Thanks,
Jay
You showed me the static way. I appreciate that. How, about if I wanna make an addition of items in runtime with hyperlink controls to that. I will hike the point value on it.
I need to add controls in runtime for my actual case. i.e., creating checkbox list and adding items with hyperlinks to it.
Thanks,
Jay
I have almost the solution on my hands. I dont want to force you but I need more points
ASKER
150 points.
Thanks,
Jay
Thanks,
Jay
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.