473,387 Members | 3,781 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.

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:SqlDataSource ID="SqlDataSource3" EnableCaching="false"
runat="server"
ConnectionString="<%$ ConnectionStrings:Oracle_vega %>"
ProviderName="<%$ ConnectionStrings:Oracle_vega.ProviderName %>"
SelectCommand="select fcli_cliente, to_char(fcli_datainizio,'dd/mm/yy')
as fcli_datainizio, to_char(fcli_datafine, 'dd/mm/yy') as fcli_datafine from
ferieclienti where fcli_cliente = :codice"
UpdateCommand="update ferieclienti set fcli_datainizio =
to_date(:FCLI_DATAINIZIO,'dd/mm/yy'), fcli_datafine =
to_date(:FCLI_DATAFINE, 'dd/mm/yy') where fcli_cliente = :FCLI_CLIENTE and
to_date(fcli_datainizio,'dd/mm/yy') = to_date(:FCLI_DATAINIZIO,'dd/mm/yy')"
>
<SelectParameters>
<asp:ControlParameter Name="codice" ControlID="gridview2"
PropertyName="selectedvalue" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="FCLI_CLIENTE" />
<asp:Parameter Name="FCLI_DATAINIZIO" Type="string"/>
<asp:Parameter Name="FCLI_DATAFINE" Type="string" />
</UpdateParameters>
</asp:SqlDataSource>
thanks
Lenny

May 14 '07 #1
0 2071

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

Similar topics

8
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...
3
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...
2
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...
0
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...
2
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...
1
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...
1
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...
4
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...
1
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,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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,...

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.