Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: Javascript c# Pin
Rudolf Jan18-Apr-07 7:07
Rudolf Jan18-Apr-07 7:07 
GeneralRe: Javascript and c# Pin
Christian Graus18-Apr-07 0:23
protectorChristian Graus18-Apr-07 0:23 
Question.Net remoting and pass by reference Pin
cignox117-Apr-07 23:15
cignox117-Apr-07 23:15 
AnswerRe: .Net remoting and pass by reference Pin
Svett18-Apr-07 1:12
Svett18-Apr-07 1:12 
Questionimage positioning Pin
akkram17-Apr-07 22:52
akkram17-Apr-07 22:52 
Questionneed regular expression validator for email Pin
Revathi Raj17-Apr-07 22:49
Revathi Raj17-Apr-07 22:49 
AnswerRe: need regular expression validator for email Pin
Christian Graus17-Apr-07 22:54
protectorChristian Graus17-Apr-07 22:54 
QuestionComposite control error - need expert help Pin
lior_s17-Apr-07 22:21
lior_s17-Apr-07 22:21 
Hi to all,

I develop a composite & users control that contains class and struct in a collection.

when i try to put values in them i get error in design mode but the control works fine when executing the project.

how can i fix it? i think it has to do with the attributes but i dont know excactly.

here is the code of the control

1 [DefaultProperty("ColumnName")]
2 [ToolboxData("<{0}:PanelForm runat=server>")]
3 public class PanelForm : Panel,PoentaListBasic
4 {
5 List _executeParam;
6 public List ExecuteParam
7 {
8 get
9 {
10 if (this._executeParam == null)
11 {
12 _executeParam = new List();
13 _executeParam.Add(new ControlParam(this.SqlParameterName, this.SqlParamType, this.SqlParamSize, this.ColumnValue, ParameterDirection.Input));
14 }
15
16
17 return _executeParam;
18 }
19 set
20 {
21 if (_executeParam == null)
22 _executeParam = new List();
23 _executeParam.AddRange(value);
24 }
25 }
26 }




1 public struct ControlParam
2 {
3 public ControlParam(string paramName)
4 {
5 this.paramName = paramName;
6
7 }
8
9 string paramName;
10 public string ParamName
11 {
12 get
13 {
14 return paramName;
15 }
16 set
17 {
18 paramName = value;
19 }
20 }
21 }

the error in the design says:

Error Creating Control - fieldPnl

Cannot create an object of type 'System.Collections.Generic.List'1[[ControlParam, Dal, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' from its string representation '(Collection)' for the 'ExecuteParam' property.

and this is what i see on the page containing the control

<po:PanelForm runat="server" ID="fieldPnl" ExecuteParam="(Collection)" >
QuestionStart programme when windows open Pin
Amr M. K.17-Apr-07 21:46
Amr M. K.17-Apr-07 21:46 
AnswerRe: Start programme when windows open Pin
Christian Graus17-Apr-07 22:05
protectorChristian Graus17-Apr-07 22:05 
GeneralRe: Start programme when windows open Pin
Amr M. K.17-Apr-07 22:27
Amr M. K.17-Apr-07 22:27 
GeneralRe: Start programme when windows open Pin
Christian Graus17-Apr-07 23:22
protectorChristian Graus17-Apr-07 23:22 
AnswerRe: Start programme when windows open Pin
Pete O'Hanlon17-Apr-07 22:33
mvePete O'Hanlon17-Apr-07 22:33 
GeneralRe: Start programme when windows open Pin
Pete O'Hanlon17-Apr-07 23:35
mvePete O'Hanlon17-Apr-07 23:35 
GeneralRe: Start programme when windows open Pin
Amr M. K.18-Apr-07 3:32
Amr M. K.18-Apr-07 3:32 
QuestionC Sharp Beginnner Pin
samshah51217-Apr-07 21:25
samshah51217-Apr-07 21:25 
AnswerRe: C Sharp Beginnner Pin
Farhan Ali17-Apr-07 21:34
Farhan Ali17-Apr-07 21:34 
AnswerRe: C Sharp Beginnner Pin
Christian Graus17-Apr-07 21:41
protectorChristian Graus17-Apr-07 21:41 
Questioncalculating time difference in c++ Pin
Farhan Ali17-Apr-07 21:21
Farhan Ali17-Apr-07 21:21 
AnswerRe: calculating time difference in c++ Pin
Guffa17-Apr-07 21:38
Guffa17-Apr-07 21:38 
AnswerRe: calculating time difference in c++ Pin
sujithkumarsl17-Apr-07 22:45
sujithkumarsl17-Apr-07 22:45 
QuestionTimedOut Error in SocketProgramming Pin
SakthiSurya17-Apr-07 20:59
SakthiSurya17-Apr-07 20:59 
AnswerRe: TimedOut Error in SocketProgramming Pin
sujithkumarsl17-Apr-07 22:48
sujithkumarsl17-Apr-07 22:48 
GeneralRe: TimedOut Error in SocketProgramming Pin
SakthiSurya18-Apr-07 0:45
SakthiSurya18-Apr-07 0:45 
GeneralRe: TimedOut Error in SocketProgramming Pin
sujithkumarsl18-Apr-07 1:31
sujithkumarsl18-Apr-07 1:31 

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.