Click here to Skip to main content
15,897,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to add parameter for 'In' clause Pin
ednrgc20-Oct-06 9:29
ednrgc20-Oct-06 9:29 
GeneralVoting request... Pin
Clickok20-Oct-06 8:35
Clickok20-Oct-06 8:35 
AnswerRe: Voting request... Pin
Guffa20-Oct-06 12:18
Guffa20-Oct-06 12:18 
GeneralRe: Voting request... Pin
Clickok20-Oct-06 12:29
Clickok20-Oct-06 12:29 
AnswerRe: Voting request... Pin
Guffa20-Oct-06 13:35
Guffa20-Oct-06 13:35 
GeneralRe: Voting request... Pin
Clickok20-Oct-06 14:05
Clickok20-Oct-06 14:05 
GeneralRe: Voting request... Pin
Guffa20-Oct-06 15:37
Guffa20-Oct-06 15:37 
GeneralRe: Voting request... Pin
Clickok20-Oct-06 17:14
Clickok20-Oct-06 17:14 
Hey, sorry. Screaming was not my intention. I wish only emphatisate my words... I'm very sorry..

Guffa wrote:
If you had taken the time to test this properly, you would see that I am correct. The DetailsView creates a new object of your class and populates it with the values that it has. The values that the constructor of your class puts in the properties that the DetailsView does not handle are unchanged when it has populated the object.


Maybe you not understood me correctly... Do you readed the link what I provided? Specially this part:

The ObjectDataSource would then pass in a value of Nothing into the UpdateProduct Business Logic Layer (BLL) method, which would change the edited database record's QuantityPerUnit column to a NULL value

Scott continues explaining:

The reason for this behavior was because the ObjectDataSource was configured to call the ProductsBLL class's UpdateProduct method, which expected an input parameter for each of the product fields

And how it is one default behaviour for DetailsView, Scott give some solutions:
If we want to provide a data Web control that allows the end user to only update a subset of fields, then we need to either programmatically set the missing UpdateParameters values in the ObjectDataSource's Updating event handler or create and call a BLL method that expects only a subset of the fields.

Why one solution is needed if not exists one problem, understood?

I have explained in MS Feedback what I think this a security problem. Here my words:

By example, If I set one DetailsView form to edit User profile data. Of course, I will not include the password fields. The password fields will be edited in specific place (using ASP.Net built-in Login Controls, by example).
But by default, the unused fields of the Bussiness layer object will receive "null", what if one begginer coder, by example, developing these form, is not aware of this problem will surelly post a lot of nulls in password fields, breaking any web application, avoind what legitimate users perform login, bringing a lot of headaches just because of a single by default behaviour...


BTW, thank you very much for your attention to my problem. I hope what we can dig more asp.net bugs in future Wink | ;)



Jesus is Love! Tell to someone! Badger | [badger,badger,badger,badger...]

GeneralRe: Voting request... Pin
Guffa20-Oct-06 19:05
Guffa20-Oct-06 19:05 
GeneralRe: Voting request... Pin
ednrgc23-Oct-06 3:09
ednrgc23-Oct-06 3:09 
QuestionCalendar Control Pin
benno141220-Oct-06 7:08
benno141220-Oct-06 7:08 
AnswerRe: Calendar Control Pin
Jerry Hammond20-Oct-06 8:25
Jerry Hammond20-Oct-06 8:25 
GeneralRe: Calendar Control Pin
benno141220-Oct-06 8:52
benno141220-Oct-06 8:52 
QuestionCan anyone suggest a simple ASP project Pin
Meena T Shivaram20-Oct-06 4:54
Meena T Shivaram20-Oct-06 4:54 
AnswerRe: Can anyone suggest a simple ASP project Pin
Jerry Hammond20-Oct-06 5:55
Jerry Hammond20-Oct-06 5:55 
GeneralRe: Can anyone suggest a simple ASP project Pin
Meena T Shivaram20-Oct-06 6:20
Meena T Shivaram20-Oct-06 6:20 
AnswerRe: Can anyone suggest a simple ASP project Pin
postmaster@programmingknowledge.com20-Oct-06 6:41
postmaster@programmingknowledge.com20-Oct-06 6:41 
GeneralRe: Can anyone suggest a simple ASP project Pin
Meena T Shivaram20-Oct-06 6:53
Meena T Shivaram20-Oct-06 6:53 
GeneralRe: Can anyone suggest a simple ASP project Pin
Jerry Hammond20-Oct-06 8:27
Jerry Hammond20-Oct-06 8:27 
AnswerRe: Can anyone suggest a simple ASP project Pin
ednrgc20-Oct-06 7:11
ednrgc20-Oct-06 7:11 
GeneralRe: Can anyone suggest a simple ASP project Pin
Meena T Shivaram20-Oct-06 8:04
Meena T Shivaram20-Oct-06 8:04 
AnswerRe: Can anyone suggest a simple ASP project Pin
Clickok20-Oct-06 8:50
Clickok20-Oct-06 8:50 
AnswerRe: Can anyone suggest a simple ASP project Pin
Jon Sagara20-Oct-06 11:29
Jon Sagara20-Oct-06 11:29 
QuestionCustom Control. How to start? Pin
shapper20-Oct-06 4:00
shapper20-Oct-06 4:00 
AnswerRe: Custom Control. How to start? Pin
ednrgc20-Oct-06 7:12
ednrgc20-Oct-06 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.