Ask a Question related to ASP.NET General, Design and Development.
-
Bradley M. Small #1
Getting Original Values For Update
Hi --
I am using webmatrix so whatever I try and do is determined by what I can do
by hand. That said, I am trying to figure out how to get the original values
for a field that is being edited.
What I have is a table that had 2 fields in it. Let's say Field1 and Field2.
The key to the table is Field1, Field2 so the ddl would look like this:
create table MyTable (
Field1 varchar(10) not null
,Field2 varchar(10) not null
)
I have created a datagrid to edit it however, if someone changes either
value the update statement needs to know what both the original values were.
I have considered making my select statement get both fields twice and
setting the columns for the second set in the datagrid to not visible, but
then I can't seem to figure out how to get the hidden values when someone
presses the Update.
All in all I jus figured that it was getting too involved to be doing it
correctly, so I thought I'd just ask...
-- Bradley
Bradley M. Small Guest
-
how do we trace who update the values?
Hi.. my DW pages require user to logon with login user server behaviors, and every table has coulmn called updatedby.. so if user updating the... -
Charts... how to auto update values
I have worked with Illustrator to automate updates in chart values by using actions. I am trying to use freehand becasue it allows easier formatting... -
Prove this critical update from the Microsoft (ORIGINAL REPLY)
***** SORRY... my newsreader complained about the size of my reply (in replying to the message, I picked up the original "virus" email attachment... -
Get Original Querystring Values After Decryption
Anyone have a VB function or know how to retrieve original querystring values after they have been decryted and lie within a string? For example:... -
Free Original copy of Never Winter Nights for Linux going! (and its original)
Hi, Yes you read the title correctly, being a complete idiot I ordered 2 copies of nwn from tuxgames, I could of sent it back, but I went on... -
Stephen Muecke #2
Re: Getting Original Values For Update
Bradley,
Check out the .HasVersion property of DataRow class
You can retreive Original, Current and Proposed values of the DataRowVersion
Stephen
"Bradley M. Small" <BSmall@XNOSPAMXmjsi.com> wrote in message
news:ehgLoM8SDHA.1992@TK2MSFTNGP12.phx.gbl...do> Hi --
>
> I am using webmatrix so whatever I try and do is determined by what I canvalues> by hand. That said, I am trying to figure out how to get the originalField2.> for a field that is being edited.
>
> What I have is a table that had 2 fields in it. Let's say Field1 andwere.> The key to the table is Field1, Field2 so the ddl would look like this:
>
> create table MyTable (
> Field1 varchar(10) not null
> ,Field2 varchar(10) not null
> )
>
> I have created a datagrid to edit it however, if someone changes either
> value the update statement needs to know what both the original values> I have considered making my select statement get both fields twice and
> setting the columns for the second set in the datagrid to not visible, but
> then I can't seem to figure out how to get the hidden values when someone
> presses the Update.
>
> All in all I jus figured that it was getting too involved to be doing it
> correctly, so I thought I'd just ask...
>
> -- Bradley
>
>
Stephen Muecke Guest
-
Bradley M. Small #3
Re: Getting Original Values For Update
Then I guess the question is how do I use and access a DataTable instead of
a DataSet in my DataGrid?
Am I even thinking along the correct lines?
-- B
"Stephen Muecke" <stevejo@senet.com.au> wrote in message
news:%23ZNOjdATDHA.1664@TK2MSFTNGP11.phx.gbl...DataRowVersion> Bradley,
>
> Check out the .HasVersion property of DataRow class
> You can retreive Original, Current and Proposed values of thecan>
> Stephen
>
> "Bradley M. Small" <BSmall@XNOSPAMXmjsi.com> wrote in message
> news:ehgLoM8SDHA.1992@TK2MSFTNGP12.phx.gbl...> > Hi --
> >
> > I am using webmatrix so whatever I try and do is determined by what Ibut> do> values> > by hand. That said, I am trying to figure out how to get the original> Field2.> > for a field that is being edited.
> >
> > What I have is a table that had 2 fields in it. Let's say Field1 and> were.> > The key to the table is Field1, Field2 so the ddl would look like this:
> >
> > create table MyTable (
> > Field1 varchar(10) not null
> > ,Field2 varchar(10) not null
> > )
> >
> > I have created a datagrid to edit it however, if someone changes either
> > value the update statement needs to know what both the original values> > I have considered making my select statement get both fields twice and
> > setting the columns for the second set in the datagrid to not visible,someone> > then I can't seem to figure out how to get the hidden values when>> > presses the Update.
> >
> > All in all I jus figured that it was getting too involved to be doing it
> > correctly, so I thought I'd just ask...
> >
> > -- Bradley
> >
> >
>
Bradley M. Small Guest



Reply With Quote

