Live Webinar: Prompt Engineering: Skill Everyone Must Learn Today
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Create Properties Important in Web Part for Different Control
WhatsApp
Sagar Pardeshi
Oct 16
2014
1.1
k
0
0
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
Up Next
Create Properties Important in Web Part for Different Control