Is it safe to reset table.column.Readonly attribute for updates?

B

Bogdan

Hi,

I have a table adapter whose main query returns columns from multiple
tables. The query calls a stored procedure which uses JOINs (or correlated
subqueries - I get the same results in both cases). I have another stored
proc that is used for updates and takes arguments representing values for
columns returned by the main query. My initial problem was that columns of
tables used in JOINs (or subqueries) had their Readonly attribute set and
therefore preventing me from changing their values in my BLL object. I
decided to try to reset the Readonly attributes before changing the values
and it seemed to work. Since I'm quite new to asp.net I don't feel quite
comfortable with what I have done. I'm afraid that this might get me into
trouble later on. I have not been able to locate any docs/examples that
would deal with cases like this one.

I'd appreciate _any_ input.

Thanks,
Bogdan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top