473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

To retrieve data from textbox inside footer

Hi

I m using webgrid control
I m trying to add a new record using its footer

In the footer I placed a button,and one textboxe to insert the new record.
when I click the add button,the data in textboxe should be inserted in the database.
But I could not retrieve the value of the textbox in the footer.

How can I retrieve the data entererd in the textbox inside the footer?

Can anyone help????
Jan 9 '08 #1
2 1264
mathewgk80
103 100+
Hi

I m using webgrid control
I m trying to add a new record using its footer

In the footer I placed a button,and one textboxe to insert the new record.
when I click the add button,the data in textboxe should be inserted in the database.
But I could not retrieve the value of the textbox in the footer.

How can I retrieve the data entererd in the textbox inside the footer?

Can anyone help????

Hi Durga,

int rows = gdvPurchase.Rows.Count;
string txtProductName = ((TextBox)gdvPurchase.FooterRow.FindControl("txtPr oductName")).Text;
string txtNoOfItems = ((TextBox)gdvPurchase.FooterRow.FindControl("txtNo OfItems")).Text;
string txtUnitPrice = ((TextBox)gdvPurchase.FooterRow.FindControl("txtUn itPrice")).Text;


This is an example of how to retrieve values from textbox in the footer.

Regards,
Mathew
Jan 9 '08 #2
hi

i dont find the 'FooterRow' property

and i m using webgrid control
Jan 11 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Baby Blue | last post by:
I have 2 code like below to grab a news website for my site. However, when I click some links (such as : http://wwww.vnexpress.net/xxx/xxxx ) inside the site which I want to grab, it has some...
3
by: Baby Blue | last post by:
I have 2 codes below to grap data from another site. I use them to get the data from one News site. However, when I click on some link inside (such as :...
6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
2
by: Alixx Skevington | last post by:
Hi there peeps, I am having a problem have just started to use usercontrols, and I am hitting a problem. I get the error message above, now each control has a table, and 1 asp:textbox...
3
by: williamfrenette | last post by:
To add record into my grid I use the footer way like explain here : http://aspnet.4guysfromrolla.com/articles/021203-1.aspx But i dont want a Add button on each row so i call the showfooter with...
10
by: Corey B | last post by:
I have a data grid that has three columns: First Name, Middle Name, and Last Name. The grid has a list of people with a blank row at the bottom of the grid (in the footer) that allows the user to...
1
by: JeffP | last post by:
Have a textbox in a report footer that sums data using Sum. That text box value is used in a few calculations in the footer. Trouble is, if the report has no data then the box simply shows #error...
0
by: dcollier9 | last post by:
Hi ! I need to embed a text box in a footer of a GridView's boundfield column to get data prior to a row insert. The textbox is usable and showing up in the web page source using View
1
by: gandhi.vishal | last post by:
Hello, I have an issue. I'm not seeing the reportviewer data at all. The column names come up fine but there is no data in the report table. Here is what I'm doing I created a dataset with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.