Click here to Skip to main content
15,914,642 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to put IP address to form Pin
trish_15-Jan-07 22:22
trish_15-Jan-07 22:22 
GeneralRe: How to put IP address to form Pin
slSoftware15-Jan-07 22:56
slSoftware15-Jan-07 22:56 
GeneralRe: How to put IP address to form Pin
trish_15-Jan-07 23:07
trish_15-Jan-07 23:07 
GeneralRe: How to put IP address to form Pin
slSoftware16-Jan-07 0:29
slSoftware16-Jan-07 0:29 
GeneralRe: How to put IP address to form Pin
slSoftware16-Jan-07 17:03
slSoftware16-Jan-07 17:03 
GeneralRe: How to put IP address to form Pin
trish_16-Jan-07 18:08
trish_16-Jan-07 18:08 
GeneralRe: How to put IP address to form Pin
slSoftware16-Jan-07 19:45
slSoftware16-Jan-07 19:45 
QuestionPersistenceMode with Server Control Pin
LagoonMatt15-Jan-07 16:11
LagoonMatt15-Jan-07 16:11 
I have a server control that I have made. In it I am making use some strongly typed List properties tagged with [PersistenceMode(PersistenceMode.InnerProperty)]. The idea being that I can markup in my consuming page like

<cc2:GenericForm ID="GenericForm1 runat="server" ...>
<EmailRecipients>
<cc2:Emailrecipient Address="someone@somewhere.com" />
<cc2:Emailrecipient Address="someelse@somewhere.com" />
...
</EmailRecipients>
</cc2:GenericForm>

This works fine, in the sense that intelisense works perfectly and I am able to use the values and render my control perfectly at run time. However, if I look at the design surface I don't see my control as its supposed to be rendered. I see a gray box with a red error message that reads

"Error Creating Control - GenericForm1 'cc2:GenericForm' could bot be set on property 'EmailRecipients'."

How can I avoid this error box? I don't even really care if the control renders out fully or if it just renders a blank little gray box that says "GenericForm1" or something like that. I setup a designer class for this control, and overrode the GetErrorDesignTimeHtml method, but Visual Studio doesn't use it. I am not certian what is the pertinent code so here is a bit of it

Here is the property in my control class

private List<EmailRecipient> _EmailRecipients;
[PersistenceMode(PersistenceMode.InnerProperty)]
public List<EmailRecipient> EmailRecipients
{
get
{
if (_EmailRecipients == null)
_EmailRecipients = new List<EmailRecipient>();
return _EmailRecipients;
}
set { _EmailRecipients = value; }
}

And here is the EmailRecipient class itself.

public class EmailRecipient
{
private string _Address;

public string Address
{
get { return _Address; }
set { _Address = value; }
}
}

Thanks for your help.
QuestionASP.NET 2.0 Pin
Rahithi15-Jan-07 15:56
Rahithi15-Jan-07 15:56 
AnswerRe: ASP.NET 2.0 Pin
Christian Graus15-Jan-07 17:18
protectorChristian Graus15-Jan-07 17:18 
GeneralRe: ASP.NET 2.0 Pin
Rahithi15-Jan-07 17:58
Rahithi15-Jan-07 17:58 
AnswerRe: ASP.NET 2.0 Pin
varshavmane15-Jan-07 17:19
varshavmane15-Jan-07 17:19 
GeneralRe: ASP.NET 2.0 Pin
Rahithi16-Jan-07 7:48
Rahithi16-Jan-07 7:48 
QuestionUsing Code Behind Variable in ASPX Pin
achimera15-Jan-07 12:14
achimera15-Jan-07 12:14 
AnswerRe: Using Code Behind Variable in ASPX Pin
Guffa15-Jan-07 13:10
Guffa15-Jan-07 13:10 
GeneralRe: Using Code Behind Variable in ASPX Pin
achimera15-Jan-07 13:15
achimera15-Jan-07 13:15 
GeneralRe: Using Code Behind Variable in ASPX Pin
DavidNohejl17-Jan-07 1:18
DavidNohejl17-Jan-07 1:18 
GeneralRe: Using Code Behind Variable in ASPX Pin
achimera15-Jan-07 13:26
achimera15-Jan-07 13:26 
AnswerRe: Using Code Behind Variable in ASPX Pin
Mike Ellison15-Jan-07 13:56
Mike Ellison15-Jan-07 13:56 
QuestionMenu Control Pin
bonokoot15-Jan-07 10:27
bonokoot15-Jan-07 10:27 
AnswerRe: Menu Control Pin
achimera15-Jan-07 12:34
achimera15-Jan-07 12:34 
QuestionTruly Relative Pathz Pin
Andrew S. Kloos15-Jan-07 8:49
Andrew S. Kloos15-Jan-07 8:49 
AnswerRe: Truly Relative Pathz Pin
Kschuler15-Jan-07 9:44
Kschuler15-Jan-07 9:44 
QuestionFile upload security Pin
DanB198315-Jan-07 7:55
DanB198315-Jan-07 7:55 
AnswerRe: File upload security Pin
Jon Sagara15-Jan-07 9:13
Jon Sagara15-Jan-07 9:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.