Formview hijinks

H

Harry

Gurus,

I have a formview that is data-bound to a sql2005 datasource, using
aspnet2.0 and vstudio. The form is in a contentplaceholder. This is inline
code created by configuring the sql datasource. The page has a master page.
The user enters two numbers in the insert mode. Upon insert, I want to use
these numbers to compute a third, and enter the third in the same form
I need to access the numbers entered on the form, perform a calculation, and
place the returned value into that same form. I have fiddled with
parameters, tired entering calculations in the sql insert statement, tried a
method on the partial page, all to no avail. I am considering converting
everything to DAL and BAL tiers, but I am not sure even that is going to
solve the problem.

Not sure what approach to use in order to solve this correctly. Any ideas
would be much appreciated
 
J

joteke

Hi,

the challenge is to design classes etc so that the solution is easy to
implement e.g its task is to reduce the complexity you have around.
So, in this scenario only to to advice is that do it in that way you
feel is the most simplest, so that itn works. Then if you aren't
satisfied in the way you have solved it, refactor the code - if
possible considering time constraints etc - and see what you get.

I would take it so that I split the responsibilities you have here
into their own classes, then see how they map to DAL/BLL
layer and start working them (communication, dto ETC) from there to
thE desired outcome.

Teemu Keiski
ASP.NET MVP
 

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

Similar Threads

FormView 0
FormView 0
FormView layout 3
FormView insert with UpdatePanel 0
FormView and Master Page 0
Formview within Formview 0
FormView Insert 6
<%# Bind(colname) %> in custom formview template 5

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,058
Latest member
QQXCharlot

Latest Threads

Top