Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Network Server attached to a Router? Pin
Mardanian3-Jul-06 9:13
Mardanian3-Jul-06 9:13 
QuestionSelf replication Pin
devfendar2-Jul-06 16:10
devfendar2-Jul-06 16:10 
AnswerRe: Self replication Pin
Paul Conrad2-Jul-06 16:27
professionalPaul Conrad2-Jul-06 16:27 
AnswerRe: Self replication Pin
Igor Sukhov2-Jul-06 17:26
Igor Sukhov2-Jul-06 17:26 
AnswerRe: Self replication Pin
leppie2-Jul-06 20:15
leppie2-Jul-06 20:15 
AnswerRe: Self replication Pin
Guffa2-Jul-06 22:04
Guffa2-Jul-06 22:04 
AnswerRe: Self replication Pin
LongRange.Shooter3-Jul-06 5:14
LongRange.Shooter3-Jul-06 5:14 
QuestionInheriting controls from a web page(asp 1.0) Pin
sishya2-Jul-06 15:53
sishya2-Jul-06 15:53 
hI,
I have a web page in which i am generating all the controls dynamically .I have a place holder(also dynamically generated)in webform1 into which i am pushing all the All the generated controls .

Now i want ato inherit this page into webform2 .What i tried was
public class Webform2 : webform1

in webform class i have a ftion

public void look()
{
// Response.Write("look");
PlaceHolder pl = new PlaceHolder();
TextBox tb;
tb = new TextBox();
tb.Text = "adarsh";
tb.Visible = true;
tb.Width = Unit.Percentage(20);
tb.Height = Unit.Percentage(20);
pl.Controls.Add(tb);
this.form1.Controls.Add(pl);

}
}



in webform2 class i call page load event i call this ftion look .But it gives a runtime exception saying in line this.form1.Controls.Add(pl); object reference not set to an instance of an object.Why is this and pls suggest any solution for this.


-- modified at 1:54 Monday 3rd July, 2006
Questionbarcode and how to use it Pin
omar el halwagy2-Jul-06 15:18
omar el halwagy2-Jul-06 15:18 
AnswerRe: barcode and how to use it Pin
Paul Conrad2-Jul-06 15:42
professionalPaul Conrad2-Jul-06 15:42 
AnswerRe: barcode and how to use it Pin
engsrini2-Jul-06 19:50
engsrini2-Jul-06 19:50 
GeneralRe: barcode and how to use it Pin
omar el halwagy3-Jul-06 0:48
omar el halwagy3-Jul-06 0:48 
AnswerRe: barcode and how to use it Pin
Mike Dimmick3-Jul-06 2:22
Mike Dimmick3-Jul-06 2:22 
QuestionHow to get very continuous random numbers Pin
sergestusxx2-Jul-06 11:17
sergestusxx2-Jul-06 11:17 
AnswerRe: How to get very continuous random numbers Pin
Judah Gabriel Himango2-Jul-06 11:35
sponsorJudah Gabriel Himango2-Jul-06 11:35 
GeneralRe: How to get very continuous random numbers Pin
sergestusxx2-Jul-06 11:45
sergestusxx2-Jul-06 11:45 
GeneralRe: How to get very continuous random numbers Pin
Paul Conrad2-Jul-06 15:22
professionalPaul Conrad2-Jul-06 15:22 
GeneralRe: How to get very continuous random numbers Pin
BoneSoft2-Jul-06 16:39
BoneSoft2-Jul-06 16:39 
GeneralRe: How to get very continuous random numbers Pin
Paul Conrad2-Jul-06 17:19
professionalPaul Conrad2-Jul-06 17:19 
GeneralRe: How to get very continuous random numbers Pin
Judah Gabriel Himango3-Jul-06 5:27
sponsorJudah Gabriel Himango3-Jul-06 5:27 
AnswerRe: How to get very continuous random numbers Pin
Guffa2-Jul-06 11:48
Guffa2-Jul-06 11:48 
AnswerRe: How to get very continuous random numbers Pin
mav.northwind2-Jul-06 23:30
mav.northwind2-Jul-06 23:30 
QuestionMessage Removed Pin
2-Jul-06 4:35
Mandai2-Jul-06 4:35 
AnswerRe: Asking a question Pin
Ravi Bhavnani2-Jul-06 4:55
professionalRavi Bhavnani2-Jul-06 4:55 
QuestionArrays in Hashtables Pin
Mazze.ger1-Jul-06 23:17
Mazze.ger1-Jul-06 23:17 

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.