473,387 Members | 1,863 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.

no value given....? kindly help

13
Hi All,
I made a page in asp.net to edit information in the database using gridviewcontrol. It was working fine. Then i entered the template column having dropdown list. now the page opens and and i edit information, When I press update, it gives me an error, "No value given for one or more required parameters". I checked the forum for previous such problems, but didn't help much. Kindly help me.......
Nov 14 '06 #1
2 1184
Did you give the values for the drop down items? It'll be easier if you can post the code.
Nov 14 '06 #2
amily
13
Did you give the values for the drop down items? It'll be easier if you can post the code.
Yes i added the list items, dunno y its not working...
here's the code:-
[HTML]
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataSourceID="AccessDataSource1" EmptyDataText="There are no data records to display.">
<Columns>
<asp:TemplateField ShowHeader="False">
<EditItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
Text="Update"></asp:LinkButton>
<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
Text="Cancel"></asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
Text="Edit"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
<asp:BoundField DataField="ProblemDescription" HeaderText="ProblemDescription"
SortExpression="ProblemDescription" />
<asp:BoundField DataField="EquipmentDescription" HeaderText="EquipmentDescription"
SortExpression="EquipmentDescription" />
<asp:BoundField DataField="SerialorEquipmentNumber" HeaderText="SerialorEquipmentNumber"
SortExpression="SerialorEquipmentNumber" />
<asp:BoundField DataField="DateReported" HeaderText="DateReported" SortExpression="DateReported" />
<asp:BoundField DataField="Comments" HeaderText="Comments" SortExpression="Comments" />
<asp:TemplateField HeaderText="Facility">
<ItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="AccessDataSource1" DataTextField="Facility" DataValueField="Facility" SelectedValue='<%# Bind("Facility") %>'>
<asp:ListItem Value="GO1">GO1</asp:ListItem>
<asp:ListItem Value="GO2">GO2</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="PersonReporting" HeaderText="PersonReporting" SortExpression="PersonReporting" />
<asp:BoundField DataField="MaintenanceRequired" HeaderText="MaintenanceRequired"
SortExpression="MaintenanceRequired" />
<asp:BoundField DataField="InhouseorOuthouse" HeaderText="InhouseorOuthouse"
SortExpression="InhouseorOuthouse" />
<asp:BoundField DataField="EquipmentStatus" HeaderText="EquipmentStatus" SortExpression="EquipmentStatus" />
<asp:BoundField DataField="DateServiced" HeaderText="DateServiced" SortExpression="DateServiced" />
<asp:BoundField DataField="NextDueDate" HeaderText="NextDueDate" SortExpression="NextDueDate" />
<asp:BoundField DataField="SpecificProblem" HeaderText="SpecificProblem" SortExpression="SpecificProblem" />
<asp:BoundField DataField="VendorName" HeaderText="VendorName" SortExpression="VendorName" />
<asp:BoundField DataField="ContactPerson" HeaderText="ContactPerson" SortExpression="ContactPerson" />
<asp:CheckBoxField DataField="Completed" HeaderText="Completed" SortExpression="Completed" />
</Columns>
[/HTML]
Nov 14 '06 #3

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

Similar topics

0
by: pathisunil | last post by:
Dear All I have an xmldocument which is as formed below. It is a bit of loopy in nature. can anyone kindly let me know how can i write a xslt which would take a parameter which is an...
0
by: tamilan71 | last post by:
Hello Everybody With regard to the same query, I have another problem and I just dont understand where am I going wrong and I m not getting the result I need. Following the suggestion given by...
13
by: Kirk McDonald | last post by:
Say I have a database containing chunks of Python code. I already have a way to easily load, edit, and save them. What is slightly baffling to me is how I can effectively pass this code some...
13
by: Steve Edwards | last post by:
Hi, I have a class with some static variables: in MyClass.h //------------------------- lass MyClass{ .... public: static long myVals; // declaration
22
by: subramanian100in | last post by:
Consider the following program #include <limits.h> #include <stddef.h> int main(void) { size_t size; size_t bytes = sizeof(size_t);
5
by: hameeduddinasim | last post by:
Hi I am trying to take a particular value from dataset in to string kindly look at my code string image_url = dt.Rows.Table.Columns.ToString(); with the above code I am getting...
1
by: cmrhema | last post by:
Hi, I have to insert a row in a table and update in another table if it already exists. Infact i have to find out if there are any rows inside the second table , if exists then update, else...
3
by: kingparthi | last post by:
This is a program to add, display & delete an item from the double linked list ... Here the add & display works correctly... where my delete is having some problem, when ever I delete an item, it...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.