add subscribers to or remove subscribers from that Content. The list may
contain just one Content item, but it could just as easily contain 10
Content items.
Each Content item would look something like this:
---------------------------------------------
<content title 1>
<content description 1>
add new subscriber:
<textbox for subscribers e-mail address<button to add subscriber>
list of current subscribers:
<checkbox for subscribere-****@addressof. subscriber
<checkbox for subscribere-****@addressof. subscriber
<checkbox for subscribere-****@addressof. subscriber
<checkbox for subscribere-****@addressof. subscriber
<button to remove selected subscribers>
--
<content title 2>
<content description 2>
add new subscriber:
<textbox for subscribers e-mail address<button to add subscriber>
list of current subscribers:
<checkbox for subscribere-****@addressof. subscriber
<checkbox for subscribere-****@addressof. subscriber
<checkbox for subscribere-****@addressof. subscriber
<checkbox for subscribere-****@addressof. subscriber
<button to remove selected subscribers>
---------------------------------------------
I have two methods addSubscriber and delSubscriber that I need to call
from one of the two buttons, and here's where I'm having trouble.
using somthing like this:
Expand|Select|Wrap|Line Numbers
- <asp:Button ID="testBtn" runat="server" oncommand="addSubscriber"
- Text="Add Subscriber" />
Content "Add Subscriber" buttons on the page was clicked.
the method is this:
Expand|Select|Wrap|Line Numbers
- private void addSubscriber(object sender,
- System.Web.UI.WebControls.CommandEventArgs e)
- {
- Response.Write("trace 1: " + e.CommandArgument.ToString());
- }
"addSubscri ber" method?
Many thanks in advance
Kevin
THINGS I'VE ALREADY TRIED (though quite possible one will work with a
little help)
Expand|Select|Wrap|Line Numbers
- <asp:Button ID="testBtn" runat="server" oncommand="addSubscriber"
- Text="Add Subscriber" commandargument="item<%=loopCount%>" />
Repsonse.Write just displayed "trace 1: item<%=loopCoun t %>"
Expand|Select|Wrap|Line Numbers
- <%
- testBtn.Attributes.Add("commandargument","item" + loopCount);
- %>
- <asp:Button ID="testBtn" runat="server" oncommand="addSubscriber"
- Text="Add Subscriber" />
Response.Write showed "trace 1: "