webForumDet fria alternativet

Properties för User Control?

.NET

0 svar · 166 visningar · startad av kristoffer

Medlem sedan juni 20001 257 inlägg
Frågan#1

Går det inte att få properties synliga i Properties-fönstret i VS för en User Control? Följande fungerar iaf inte för mig:

[Browsable(true),
Category("Misc"),
Description("Description here.")]
public int Foo
{
	get
	{
		return _foo;
	}
	set
	{
		_foo = value;
	}
}

Måste jag göra en web custom control?

509 ms totalt · 4 externa anrop · v20260731065814-full.86ec41c2
377 ms — deklarationer (db)
0 ms — hämta statistik (cache)
129 ms — hämta tråd, inlägg och bilagor (db)
377 ms — ändringar (db)