473,804 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sqldatasource update problem

Hi.
I've a problem with an update from the sqldatasource
the table cannot be modified because it is from a third party sw
table fields are: codice, fcli_inizio, fcli_fine.
keys are codice and fcli_inizio

when I run the update the field fcli_fine (not key) is updated but not the
fcli_inizio.
this is the code.
db is in oracle.

any suggestion on how to make the changes?

<asp:SqlDataSou rce ID="SqlDataSour ce3" EnableCaching=" false"
runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:Oracle_vega %>"
ProviderName="< %$ ConnectionStrin gs:Oracle_vega. ProviderName %>"
SelectCommand=" select fcli_cliente, to_char(fcli_da tainizio,'dd/mm/yy')
as fcli_datainizio , to_char(fcli_da tafine, 'dd/mm/yy') as fcli_datafine from
ferieclienti where fcli_cliente = :codice"
UpdateCommand=" update ferieclienti set fcli_datainizio =
to_date(:FCLI_D ATAINIZIO,'dd/mm/yy'), fcli_datafine =
to_date(:FCLI_D ATAFINE, 'dd/mm/yy') where fcli_cliente = :FCLI_CLIENTE and
to_date(fcli_da tainizio,'dd/mm/yy') = to_date(:FCLI_D ATAINIZIO,'dd/mm/yy')"
>
<SelectParamete rs>
<asp:ControlPar ameter Name="codice" ControlID="grid view2"
PropertyName="s electedvalue" />
</SelectParameter s>
<UpdateParamete rs>
<asp:Paramete r Name="FCLI_CLIE NTE" />
<asp:Paramete r Name="FCLI_DATA INIZIO" Type="string"/>
<asp:Paramete r Name="FCLI_DATA FINE" Type="string" />
</UpdateParameter s>
</asp:SqlDataSour ce>
thanks
Lenny

May 14 '07 #1
0 2087

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5046
by: Mike Kelly | last post by:
I've chosen to implement the "optimistic concurrency" model in my application. To assist in that, I've added a ROWVERSION (TIMESTAMP) column to my main tables. I read the value of the column in my select, remember it, and then use it in the update. It works just fine when I have full control of the whole process. I want to do the same for my GridView/SqlDataSource combinations. I typically select from a view and update the corresponding...
3
2238
by: adam222 | last post by:
hello, i have a web-form with a GridView control, i wanted to update & delete, using the AutoGenerateEditButton. when i used it with sqlDataSource (executing SP in the DB) it works like a charm, but when i want to pass the data through the application's layers (BL etc.), it did not work. it seems that the 'AutoGenerateEditButton' is capable only with sqlDataSource...
2
1590
by: stuart.d.jones | last post by:
Hi, I'm using a detailsview control with an SqlDataSource control. My Update query isn't working, and I've narrowed it down to the optimistic concurrency parameters - i.e. when I comment them out of the query, it works. What seems to be happening is that if a field is NULL when it is read in through the select statement, it's causing the update statment not to find a match. I've got ConvertEmptyStringToNull not set (so it should...
0
971
by: Sean | last post by:
Using SqlDataSource controller with sprocs and its been working fairly well. I changed a table by removing a foreign key, removing 2 columns and adding 3. I rewrote the update sproc and works fine as long as I don’t use it on the sqlDataSource control. Using it on the SqlDataSource control I get the error that to many parameters are being specified which makes sense because the old sproc had 1 less parameter. Now things get strange!
2
2469
by: Brad Isaacs | last post by:
Good evening friends, I have added a Drop Down List box control to my web form. I am using the web.config connection string to access my SQL Server 2000 db. Inside that db I have a table named Provinces. The table contains 3 fields : LanguageID ProvinceID
1
6136
by: sheenaa | last post by:
Hello Members, I m creating my application forms in ASP.Net 2005 C# using the backend SQL Server 2005. What i have used on forms :: ? On my first form i have used some label,textboxs,dropdownlists,radiobutton and checkbox asp standard controls. On the click event of the command button the data gets stored into the database. I have created the stored procedures for the insert,update,delete. I have...
1
7091
by: David C | last post by:
I have aspx web page with a GridView that displays data from a SqlDataSource view that combines 2 tables to show information. It has an Edit feature and the SqlDataSource has an UpdateCommand text to run a stored proc that has 2 UPDATE statements (1 for each table) as shown below. When I click the Update link button in Edit mode, the 2nd table changes but not the 1st table. I have tested the stored proc manually and both tables update...
4
9794
by: mohaaron | last post by:
This seems like it should be simple to do but for some reason I have been unable to make it work. I would like to databind a SqlDataSource to a GridView during the click event of a button. This sounds easy but the next requirement is that the GridView is editable. So I have included the SelectCommand and the UpdateCommand on the SqlDataSource to allow the GridView to be editable. I have now been able to get the GridView to display data...
1
1402
by: ken | last post by:
Hi All, I try to using the dotnet control instead of code behind to create a quick solution (ASP.NET with VB.NET) by using the SqlDataSource and GridView control (with SelectCommand, DeleteCommand, UpdateCommand, InsertCommand) It works fine when drag and drop in the first time. but after I have modify something (said, add parmeters for searching...etc), the UpdateCommand and
0
9716
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
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
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
10101
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...
1
7643
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
6870
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
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
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
3005
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.