473,960 Members | 23,809 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To retrieve data from textbox inside footer

49 New Member
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 1294
mathewgk80
103 New Member
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.Row s.Count;
string txtProductName = ((TextBox)gdvPu rchase.FooterRo w.FindControl(" txtProductName" )).Text;
string txtNoOfItems = ((TextBox)gdvPu rchase.FooterRo w.FindControl(" txtNoOfItems")) .Text;
string txtUnitPrice = ((TextBox)gdvPu rchase.FooterRo w.FindControl(" txtUnitPrice")) .Text;


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

Regards,
Mathew
Jan 9 '08 #2
durga2005
49 New Member
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
2727
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 errors. Can any body help me ?? Demo : news.thuthao.info The real website : vnexpress.net ---------------------------index.php------------------------------- <?php
3
2922
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 : http://www.thuthao.info/news/chitiet.php?url=http://vnexpress.net/Vietnam/Kinh-doanh/2005/01/3B9DB0AC/ ), there are some errors, I try fix some, but hopeless. CAN ANY BODY HELP ME ??? MUCH APPRECIATED demo : news.thuthao.info real site : www.vnexpress.net Code of Index.php
6
3328
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 parameter query which is the recordsource for the report. The parameter is <=. The query returns the correct amounts upto the date entered (no need for "between" dates here). There are 8 textboxes with dcounts; 2 other boxes Sum some of these
2
1845
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 control. Now when I first got this error I just put the form tags around the table in the control with the runat=server set. But however I get the following error if i do that too the other controls.
3
6076
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 another button. DBEditDataGrid.ShowFooter := true; DBEditDataGrid.SelectedIndex := DBEditDataGrid.Items.Count; LoadDataFromDB; DataBindGrid;
10
2944
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 add a new person to the list. There is also an Edit button at the end of each row that allows the user to edit a particular row. So far - no problem - easy to do. I have been asked to make the grid section 508 compliant. The requirement is...
1
1748
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 and all following calculations fail. Nz doesn't work. In this case it is still valid for the report to show calculated values in the footer even though the report actually contains no data. Values used come from other places than the report...
0
3035
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
9500
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 following query select * from av_project_mst where apm_project_id=@projectid Now I created a report (.rdlc) and dragged a table onto it and the report looks like the following
0
10265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
11473
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10797
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10004
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8374
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3664
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.