473,657 Members | 2,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

no value given....? kindly help

13 New Member
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 1191
dswethar
65 New Member
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 New Member
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="Tr ue" AllowSorting="T rue"
AutoGenerateCol umns="False" DataSourceID="A ccessDataSource 1" EmptyDataText=" There are no data records to display.">
<Columns>
<asp:TemplateFi eld ShowHeader="Fal se">
<EditItemTempla te>
<asp:LinkButt on ID="LinkButton1 " runat="server" CausesValidatio n="True" CommandName="Up date"
Text="Update"></asp:LinkButton>
<asp:LinkButt on ID="LinkButton2 " runat="server" CausesValidatio n="False" CommandName="Ca ncel"
Text="Cancel"></asp:LinkButton>
</EditItemTemplat e>
<ItemTemplate >
<asp:LinkButt on ID="LinkButton1 " runat="server" CausesValidatio n="False" CommandName="Ed it"
Text="Edit"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateFie ld>
<asp:BoundFie ld DataField="ID" HeaderText="ID" SortExpression= "ID" />
<asp:BoundFie ld DataField="Prob lemDescription" HeaderText="Pro blemDescription "
SortExpression= "ProblemDescrip tion" />
<asp:BoundFie ld DataField="Equi pmentDescriptio n" HeaderText="Equ ipmentDescripti on"
SortExpression= "EquipmentDescr iption" />
<asp:BoundFie ld DataField="Seri alorEquipmentNu mber" HeaderText="Ser ialorEquipmentN umber"
SortExpression= "SerialorEquipm entNumber" />
<asp:BoundFie ld DataField="Date Reported" HeaderText="Dat eReported" SortExpression= "DateReport ed" />
<asp:BoundFie ld DataField="Comm ents" HeaderText="Com ments" SortExpression= "Comments" />
<asp:TemplateFi eld HeaderText="Fac ility">
<ItemTemplate >
<asp:DropDownLi st ID="DropDownLis t1" runat="server" AutoPostBack="T rue" DataSourceID="A ccessDataSource 1" DataTextField=" Facility" DataValueField= "Facility" SelectedValue=' <%# Bind("Facility" ) %>'>
<asp:ListItem Value="GO1">GO1 </asp:ListItem>
<asp:ListItem Value="GO2">GO2 </asp:ListItem>
</asp:DropDownLis t>
</ItemTemplate>
</asp:TemplateFie ld>
<asp:BoundFie ld DataField="Pers onReporting" HeaderText="Per sonReporting" SortExpression= "PersonReportin g" />
<asp:BoundFie ld DataField="Main tenanceRequired " HeaderText="Mai ntenanceRequire d"
SortExpression= "MaintenanceReq uired" />
<asp:BoundFie ld DataField="Inho useorOuthouse" HeaderText="Inh ouseorOuthouse"
SortExpression= "InhouseorOutho use" />
<asp:BoundFie ld DataField="Equi pmentStatus" HeaderText="Equ ipmentStatus" SortExpression= "EquipmentStatu s" />
<asp:BoundFie ld DataField="Date Serviced" HeaderText="Dat eServiced" SortExpression= "DateServic ed" />
<asp:BoundFie ld DataField="Next DueDate" HeaderText="Nex tDueDate" SortExpression= "NextDueDat e" />
<asp:BoundFie ld DataField="Spec ificProblem" HeaderText="Spe cificProblem" SortExpression= "SpecificProble m" />
<asp:BoundFie ld DataField="Vend orName" HeaderText="Ven dorName" SortExpression= "VendorName " />
<asp:BoundFie ld DataField="Cont actPerson" HeaderText="Con tactPerson" SortExpression= "ContactPer son" />
<asp:CheckBoxFi eld DataField="Comp leted" HeaderText="Com pleted" SortExpression= "Completed" />
</Columns>
[/HTML]
Nov 14 '06 #3

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

Similar topics

0
1172
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 attribute value and would like to have details out of the xml file.
0
1055
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 Tom van and everybody else, I solved my previous problem and I also converted the Diff_VisitDate into Months like this : GroupId VisitDate Diff_VisitDate(in months)
13
1691
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 arguments, run it, and somehow get a return value. (Acutally, in the process of writing this post, I figured out a pretty good way of doing it. Here's the rest of my post and the solution I came up with. Enjoy my thought process!) Right now I'm...
13
1791
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
27047
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
1342
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 Column name in the string but i need the value of that perticular column
1
1785
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 insert declare @count nvarchar(10) declare @maxdattime datetime declare @UnitNo nvarchar(50) declare @t1 nvarchar(50) declare @str nvarchar(1000)
3
3226
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 also deletes the tails.. kindly can someone help out... Here is my data types used in my program typedef struct {
275
12247
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
8392
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...
0
8823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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
7321
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
6163
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
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
2
1607
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.