Click here to Skip to main content
15,886,806 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dynamic User control load get a parameter Pin
Christian Graus15-Apr-08 0:49
protectorChristian Graus15-Apr-08 0:49 
GeneralRe: Dynamic User control load get a parameter Pin
simsen15-Apr-08 1:05
simsen15-Apr-08 1:05 
GeneralRe: Dynamic User control load get a parameter Pin
Ashish Sehajpal15-Apr-08 1:16
Ashish Sehajpal15-Apr-08 1:16 
GeneralRe: Dynamic User control load get a parameter Pin
Christian Graus15-Apr-08 1:24
protectorChristian Graus15-Apr-08 1:24 
GeneralRe: Dynamic User control load get a parameter Pin
simsen15-Apr-08 1:31
simsen15-Apr-08 1:31 
GeneralRe: Dynamic User control load get a parameter Pin
Christian Graus15-Apr-08 1:35
protectorChristian Graus15-Apr-08 1:35 
GeneralRe: Dynamic User control load get a parameter Pin
simsen15-Apr-08 1:41
simsen15-Apr-08 1:41 
GeneralRe: Dynamic User control load get a parameter Pin
Christian Graus15-Apr-08 1:54
protectorChristian Graus15-Apr-08 1:54 
simsen wrote:
Control setproject = (Control)LoadControl("~/UserControls/TestSetProject.ascx"); phNewProjectEdit.Controls.Add(setproject);


There is your problem. The Control class does not contain this property. You need to cast to the type of your specific control, to be able to access the properties that exist in your control and not the base class.

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: Dynamic User control load get a parameter Pin
simsen15-Apr-08 1:58
simsen15-Apr-08 1:58 
GeneralRe: Dynamic User control load get a parameter Pin
Christian Graus15-Apr-08 2:00
protectorChristian Graus15-Apr-08 2:00 
GeneralRe: Dynamic User control load get a parameter Pin
simsen15-Apr-08 2:23
simsen15-Apr-08 2:23 
GeneralRe: Dynamic User control load get a parameter Pin
Christian Graus15-Apr-08 11:03
protectorChristian Graus15-Apr-08 11:03 
GeneralRe: Dynamic User control load get a parameter Pin
Broken Bokken15-Apr-08 2:58
Broken Bokken15-Apr-08 2:58 
GeneralRe: Dynamic User control load get a parameter Pin
simsen15-Apr-08 3:55
simsen15-Apr-08 3:55 
Questionroot node problme in sitemap file Pin
Sonia Gupta14-Apr-08 23:50
Sonia Gupta14-Apr-08 23:50 
GeneralRe: root node problme in sitemap file Pin
N a v a n e e t h15-Apr-08 0:19
N a v a n e e t h15-Apr-08 0:19 
GeneralRe: root node problme in sitemap file Pin
Ashish Sehajpal15-Apr-08 1:17
Ashish Sehajpal15-Apr-08 1:17 
GeneralRe: root node problme in sitemap file Pin
N a v a n e e t h15-Apr-08 1:20
N a v a n e e t h15-Apr-08 1:20 
QuestionASP page related Pin
Sasmi14-Apr-08 23:01
Sasmi14-Apr-08 23:01 
GeneralSearching data in word document Pin
Lijo Rajan14-Apr-08 22:40
Lijo Rajan14-Apr-08 22:40 
GeneralRe: Searching data in word document Pin
eyeseetee14-Apr-08 22:51
eyeseetee14-Apr-08 22:51 
GeneralRe: Searching data in word document Pin
Lijo Rajan14-Apr-08 23:04
Lijo Rajan14-Apr-08 23:04 
GeneralRe: Searching data in word document Pin
Nouman Bhatti14-Apr-08 23:52
Nouman Bhatti14-Apr-08 23:52 
GeneralRe: Searching data in word document Pin
Christian Graus15-Apr-08 0:02
protectorChristian Graus15-Apr-08 0:02 
Questionoutlook express new message window Pin
Sonia Gupta14-Apr-08 20:52
Sonia Gupta14-Apr-08 20:52 

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.