TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mahnaz af
NA
26
6.7k
how send textbox value listview with button to another page
Jun 7 2015 2:40 AM
hi everyone ,i want to sent value of textbox in listview use button to another page,i use this code but program take an error that:
Object reference not set to an instance of an object.
protected void addtobasket_Click(object sender, System.EventArgs e)
{
string count2 = (((sender as Button).Parent as ListViewItem).FindControl("txtcount") as TextBox).Text;
}
<ItemTemplate>
<asp:TextBox ID="txtcount" type="text" runat="server" Width="30"></asp:TextBox>
<asp:Button ID="addtobasket" runat="server" Text="Add to basket" OnClick="addtobasket_Click">
</asp:Button>
</ItemTemplate>
Reply
Answers (
1
)
How to donwload file from ftp in asp.net
How can i get authentication by passing user name and apiKey