Click here to Skip to main content
15,867,289 members
Home / Discussions / C#
   

C#

 
GeneralNull error when adding custom control Pin
KingTermite8-Jan-04 8:39
KingTermite8-Jan-04 8:39 
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 8:52
protectorChristian Graus8-Jan-04 8:52 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 9:00
KingTermite8-Jan-04 9:00 
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 9:06
protectorChristian Graus8-Jan-04 9:06 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 9:18
KingTermite8-Jan-04 9:18 
GeneralRe: Null error when adding custom control Pin
Kentamanos8-Jan-04 9:19
Kentamanos8-Jan-04 9:19 
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 9:29
protectorChristian Graus8-Jan-04 9:29 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 9:50
KingTermite8-Jan-04 9:50 
Christian Graus wrote:
Any aspx page is has a .aspx file and a .cs file. The cs file is your code behind, the aspx file is your page, containing all your HTML, including the asp: tags that denote controls. When you're in the form designer, at the bottom of the page is a 'html' tab, if you click on it, you can hand edit the files. This is definately the way to go, and you should set up your preferences to always go here instead of the designer, for the reasons I mentioned.

I'll look into what you guys are talking about. Right now I don't see it...I don't see an HTML tab and there are not aspx file (there are some resx files though...maybe that's it?).

Anyway...I think I figured out my problem. There are two controls that I ported (with the exception of using the form designer, I did it exactly as you described for me to do it, Christian). The control that I kept trying (thinking they were all basic controls) was actually a control that contained another control or two within it...since there was nothing there, it was throwing the null exception.

I tried the other control (name didn't sound right to me for what I wanted), but actually turned out to be the control I wanted and was a basic control thus yielded no errors.


There are only 10 types of people in this world....those that understand binary, and those that do not.
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 9:52
protectorChristian Graus8-Jan-04 9:52 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 10:49
KingTermite8-Jan-04 10:49 
QuestionHow to use PING utility in my program Pin
HAHAHA_NEXT8-Jan-04 8:34
HAHAHA_NEXT8-Jan-04 8:34 
AnswerRe: How to use PING utility in my program Pin
Kentamanos8-Jan-04 9:18
Kentamanos8-Jan-04 9:18 
GeneralGDI grab handles and mouse move Pin
Miles Roberts8-Jan-04 7:10
Miles Roberts8-Jan-04 7:10 
GeneralRe: GDI grab handles and mouse move Pin
Heath Stewart8-Jan-04 7:36
protectorHeath Stewart8-Jan-04 7:36 
GeneralRe: GDI grab handles and mouse move Pin
leppie8-Jan-04 8:13
leppie8-Jan-04 8:13 
GeneralDO NOT HELP THIS PERSON WITH HIS HOMEWORK! Pin
leppie8-Jan-04 9:47
leppie8-Jan-04 9:47 
GeneralNon-rectangular Windows :: the 24-bit issue [advanced] Pin
nibmike8-Jan-04 7:07
nibmike8-Jan-04 7:07 
GeneralRe: Non-rectangular Windows :: the 24-bit issue [advanced] Pin
Heath Stewart8-Jan-04 7:29
protectorHeath Stewart8-Jan-04 7:29 
GeneralRe: Non-rectangular Windows :: the 24-bit issue [advanced] Pin
leppie8-Jan-04 8:17
leppie8-Jan-04 8:17 
GeneralGenerating strings that are matched by a regex Pin
bnieland8-Jan-04 6:34
bnieland8-Jan-04 6:34 
GeneralRe: Generating strings that are matched by a regex Pin
Kentamanos8-Jan-04 6:58
Kentamanos8-Jan-04 6:58 
GeneralRe: Generating strings that are matched by a regex Pin
leppie8-Jan-04 7:04
leppie8-Jan-04 7:04 
GeneralRe: Generating strings that are matched by a regex Pin
bnieland8-Jan-04 7:25
bnieland8-Jan-04 7:25 
GeneralMicrosoft Animation Control Pin
obelisk298-Jan-04 4:13
obelisk298-Jan-04 4:13 
GeneralRe: Microsoft Animation Control Pin
Niels Penneman8-Jan-04 6:19
Niels Penneman8-Jan-04 6:19 

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.