473,387 Members | 3,750 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,387 software developers and data experts.

object data source and gridview

hey every one....
This is very urgent....

I made a footer under a gridview.
In that footer I have introduced 3 textboxes..I want to insert the value through these 3 text boxes into my database.

What I did is I made a button in front of it...And now Im trying to get the value which is under the footer text boxes that is impossible for me to do it.

And Also I want it to store those value in my database.
Please help me out..

Thank you

Regards
Ahmed
Dec 27 '08 #1
3 1350
HelloOoO.....

This was supposed to be urgent.....

Still if someone can answer ...Please do

thank you
Dec 27 '08 #2
Bassem
344 100+
Hello Ahmed,
Until you get a better solution, and you'll

I suppose you use SQL database, and c#.

what you need is to bind the values of the 3 TextBoxes to SQL database, you're using dataGrideVeiw so,
1) Drag and drop on you page a sqlDataSource
2) Configure data source -> create your connect -> type your queries.
3) sqlDataSource -> Properties -> insertCommand
for example
" INSERT INTO EMPLOYEE (FNAME, LNAME, AGE) VALUES (@fName, @Lname, @age)"
then refresh parameters
for each parameter choose your parameter source (control for TextBox)
->OK then try

Regards
Bassem
Dec 27 '08 #3
Hi Bassem,

Thank you very much :)

It does help me...But Im already using my datasource to get the value from sql database...

Thank you

Regards,

Ahmed
Dec 27 '08 #4

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

Similar topics

3
by: theKirk | last post by:
using Visual Studio 2005 C# ASP.NET I know there has to be a simple way to do this....I want to use C# in a code behind for aspx. Populate a GridView from an xml file Add Fields to the...
0
by: Khuzema | last post by:
Dear All, I am using issue tracker architecture and developed business object for my application. Now, in VS Beta 2, I humbly want to know how i can have same feature as dataset, in my business...
4
by: Nalaka | last post by:
Hi, I have two questions about gridViews. 1. How can I intercept the row/column values at loading to change values? 2. After I update a row (using default update functionality), how can I...
1
by: Siva | last post by:
Hi, I have a 3 tier ASP.Net app for a handheld which needs to fetch orders from database via a DAL and populate it in a gridview using objectdatasource. In the search page I have a few parameters...
1
by: Ram | last post by:
Hi All, I am using Object Data Source to bind data in the gridview. I have set the property AllowSorting=true. While running the application, I could sort the data only in ascending order. Is...
3
by: Microsoft News Group | last post by:
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more...
6
by: =?Utf-8?B?V2F5RG93blVuZGVy?= | last post by:
When I link an ObjectDataSource to a business object, it appears that the Refresh Schema button does nothing. I have added a property to the business object and want to display this new property...
0
by: Mehdi6002 | last post by:
Hi Guys, How can I sort my GridView if I bind it to a business object ??? My Object Data Source selected method returns a collection of my business object as follows: public...
3
by: Doogie | last post by:
Hi I have a gridview on my web page and I bind it to an object of my own creation. When I click a button on that page, I want to get the data from that gridview and cast it back into that object...
0
by: David C | last post by:
I am getting this error in the Databound event of a GridView and I am having a difficult time debugging. I do not get the error on every record that I edit in the GridView. The error is occurring...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.