TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Create Properties Important in Web Part for Different Control
Sagar Pardeshi
Oct 16
2014
Code
1.1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
1.TextBox
[Browsable(
true
),Category (
"Miscellaneous"
),DefaultValue (
"ListName"
),
WebPartStorage(Storage.Personal),
Friendly Name(
"ListName"
),Description(
"Text Property"
)]
Public
string
ListName
{
get
{
Return strList;
}
Set
{
strList=Value;
}
}
2. CheckBox
[Browsable(
true
),Category (
"Miscellaneous"
),DefaultValue (
false
),
WebPartStorage(Storage.Personal),
Friendly Name(
"NeedCheckBox"
),Description(
"Checkbox Property"
)]
Public
bool
NeedCheckBox
{
get
{
Return boolCheckBox;
}
Set
{
boolCheckBox =Value;
}
}
3. RadioButton
[Browsable(
true
),Category (
"Miscellaneous"
),DefaultValue (
true
),
WebPartStorage(Storage.Personal),
Friendly Name(
"NeedRadioButton"
),Description(
"RadioButton Property"
)]
Public
bool
NeedRadioButton
{
get
{
Return boolRadioButton;
}
Set
{
boolRadioButton;=Value;
}
}
SharePoint 2010
custom properties
create web