|
Clickok wrote: Guffa wrote:
The DetailsView does not change the values to null, it just leaves the values as they were.
FALSE!!! It is the EXACT PROBLEM!!!
Stop screaming.
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.
Clickok wrote: Guffa wrote:
If you don't populate the values first
I'm populating correctly...
No, you are not. As the values are null after the DetailsView has populated the object, the values were null before.
Clickok wrote: Guffa wrote:
So, it's not the DetailsView that sets the values to null, it's you.
FALSE again... My Select procedure fully populate all fields... but the DetailsView does not maintain the fields what is not used as BoundFields.
What the Select procedure does is irrelevant. The Select procedure is not used to create the object.
Clickok wrote: Understood? I think wrong these behaviour, because in the SELECT method I get all fields, but in UPDATE, DetailsView place NULL in not used fields
That is based on a false assumtion. The DetailsView does not change unused fields at all.
---
b { font-weight: normal; }
|
|
|
|
|
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
Jesus is Love! Tell to someone!
|
|
|
|
|
Clickok wrote: Maybe you not understood me correctly...
I understand just fine what you mean.
Do you readed the link what I provided?
Actually, no, I did not read the article. I didn't need to read it to understand what you mean, and what I read of it now does not support your point anyway.
Why one solution is needed if not exists one problem, understood?
If you try to use a component in a different way than it was intended, then it's of course a problem. It is not, however, a bug in the component.
I have explained in MS Feedback what I think this a security problem.
The alternative would be a real security problem. It would mean that all properties in the class would be sent to the browser and back again, potentially exposing sensetive data to the user without you even realising it, and with no way of stopping it if you did realise it.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hello.
I'm searching for a Calendar Control. It should be a weekly calendar.
There should be two controls. One where i can select a day and another one where i have the weekly calendar from the choosen date of the other one.
It's for a firm...every worker should be able to sign in his daily works.
This datas should be saved in an SQL Database.
How can i realize this and which calendars should i take?
If you know something interesting for me please post it here.
Friendly Greetings
Benno
|
|
|
|
|
|
Thanks for your reply.
But how can i make a daily calender where every worker can write in his daily work??
It should be a timetable where every worker can write in meetings and so on.
For instance: when you click on October 21st there should open a second daily calendar where he can write in his meetings and so on.
Greetings Benno
|
|
|
|
|
hi friends,
I dont have any experience in asp.NET. So, I want to work on some dummy projects which help me understand all the concepts well. Can anyone suggest some projects that I can work on ?
Thanks a lot in advance...
|
|
|
|
|
Yes, an online mortgage calculator with an ad rotator.
"When I get a little money, I buy books and if any is left, I buy food and clothes." --Erasmus
|
|
|
|
|
hi Jerry,
Thanks a ton for your help.I'm starting with this proj right away...
Thanks again...
|
|
|
|
|
|
Thanks a lot.
I wanted to work with the databases.This will surely help...
Thanks very much...
|
|
|
|
|
If you're looking to work with db then I suggest learning how to use the login control on your mortgage calculator solution.
"When I get a little money, I buy books and if any is left, I buy food and clothes." --Erasmus
|
|
|
|
|
There are a ton of projects you can try. Start with a simple task like a mortgage calculator (mentioned above).
I would recommend a project that will start as very simple, but can be made more complex. One project that I usually recommend is a "rating" project. You can rate anything you like (example: baseball players, etc.). Figure out the criteria for the item being rated ( Ex: Batting Average, On Base Percentage, etc.).
Create a simple object:
Example:
public class BaseballPlayer
{
private int _ba; // batting average
...
}
Create an instance of this object for every player you are rating. List all items in a listbox.
From there you can delve into Generic lists for the items.
After that, you can expand the BaseballPlayer class to inherit IComparable, to allow comparing objects.
You can take a project like this as far and detailed as you like.
|
|
|
|
|
hi edboe,
great idea. thanks a lot for your help.
thank you very much
|
|
|
|
|
|
A guestbook is a great place to start.
|
|
|
|
|
Hello,
I am starting to create various custom controls for Asp.Net 2.0 and I
am using Visual Studio 2005.
I have a few questions:
1. Should I use the Web Site or Project Model?
I believe Project Model allows me to embed the resources (images,
css files, etc) into my DLL.
Maybe this is better for distribution?
2. When creating a control which option in VS2005 should I use?
I create all my control in my VB code.
Component, UserControl, etc?
As I said I have the plan for 5 Asp.Net controls so I need to decide
how to start.
Thanks,
Miguel
|
|
|
|
|
You may want to start here:
http://samples.gotdotnet.com/quickstart/aspplus/doc/webctrlauthoring.aspx
|
|
|
|
|
:How can i Play Songs And Videos , I am Storing The Songs And Videos As Binary Format In database,To Play That Song I am Using Response.BinaryWrite() which Plays Songs In Systems Window Media Player.
How can i play the Files In a Independent Player?
Devidutta Pradhan
|
|
|
|
|
You can embed the song in a flash file.
|
|
|
|
|
Hello
I hope you can help med with the following.
I have made an ArrayList of Worker (Worker is a class in my BLL) objects, which I have applied as the datasource for a ListBox.
Now I would like to retreive the worker objects from the ListBox, but unfortnately the only thing I can get a hold of, is a collection of ListItems (ListBox.Items). Is there a way for me to cast these ListItems, or have I misunderstood the way Databound controls are assocated with their Datasources.
B.R.
/pedrak
|
|
|
|
|
Hi I am makarand jadhav. I want to bind dropdown list in datagrid .And items in dropdownlist are bind with databse.
after this I want to change the elements of corusponding row depends on selection of dropdownlist item
pls help me this is very urgent
thanks in advance
|
|
|
|
|
1) You can use DataSource, DataTextField, DatavalueField to bind your datasource to the dropdownlist.
2) You can catch the Item Command event in the datagrid to get the event fired in the dropdownlist.
I guess the information is not sufficient to understand your problem. If you need more information, be specific and more clear.
Cheers,
Gerald Leslie Jones.
|
|
|
|
|
In my ASP.NET.net site ,I sometimes(but not always) get this error :
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
I think its sql server error . Someone tell me how I can solve this problem.
I need urgent help .
-- modified at 7:39 Friday 20th October, 2006
|
|
|
|