Project Detail

Implementing Stateful Complex Property in an ASP.NET Server Control (C#.Net 2.0)  

Implementing Stateful Complex Property in an ASP.NET Server Control (C#.Net 2.0) is project number 213490
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: Peterpay

Budget: $30-100

Created: 01/14/2008 at 9:15 EST

Bid Count: 1

Average Bid:
N/A

01/19/2008 at 9:15 EST

Project Creator: spgroup
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (14 reviews)

Bid On This Project
 

Description

Hello,
I have developed an ASP.NET Server control where I have created lots of properties of different types like string, bool, enum etc...

Example:
-----------------------------------------------------------
string marketName, string companyName
string bookName, decimal bookPrice, string authorName
string studentName, int studentID, int studentAgae
-----------------------------------------------------------

Now, I wanted to organize those properties within classes like

public class BookInfo
{
string bookName, decimal bookPrice, string authorName
}

public class StudentInfo
{
string studentName, int studentID, int studentAgae
}

Then I want to appear those grouped properties within the Property Editor in Design Time same like Style or Font classes are shown up in the property editor as a tree.

Finally, all sub properties must be stateful (i.e. store these properties in ViewState). So, you may need to override LoadViewState, TrackViewState, SaveViewState etc methods.

Two very important requirement :

1] The sub properties must be editable in designmode in property editor like Font class or Style Class.
2] The sub properties must maintain State information within ViewState.

=============================================

The format of required Article:
--------------------------------

Now, I want an easy Visual Studio 2005 (.NET 2.0) Custom Server Control Project with clear comments and the project should have following items.

1] A custom server control with mentioned Book Class, StudentInfo Class and non classed properties where you have implemented State Management for sub properties and also those sub properties are shown up in property editor.

2] The partial class should be used to divide the property definitions in one file, Load View State, Save View State, Track View State etc in another file, Custom Class definitions (i.e. BookInfo, StudentInfo etc) in another file.

3] The complete project should be easily coded so that the solution can be used as a model to create a similar project or add more and more properties within classes and all new properties are easily scalable to implement state management.

Thats all.


Additional information submitted:

01/14/2008 at 9:26 EST:
Before grouping the properties within classes, an used can access a property within code file like this:

Say the instance name of my control is "myCustomControl":

so, in order to access BookPrice, the user uses,
int price = myCustomControl.BookPrice;

After your modification, the user should be able to get or set the BookPrice within the code like this,

int price = myCustomControl.BookInfo.BookPrice;

I hope I have clarified my requirements.
Regards.


Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


    Bid on this Project