Click here to Skip to main content
15,887,880 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question2 asp.net websites...should I leave them separate or merge the two? Pin
Goalie3519-Dec-09 12:01
Goalie3519-Dec-09 12:01 
QuestionCreate Button at runtime! Pin
Sr...Frank19-Dec-09 5:01
Sr...Frank19-Dec-09 5:01 
AnswerRe: Create Button at runtime! Pin
dan!sh 19-Dec-09 5:40
professional dan!sh 19-Dec-09 5:40 
GeneralRe: Create Button at runtime! Pin
Sr...Frank19-Dec-09 5:49
Sr...Frank19-Dec-09 5:49 
GeneralRe: Create Button at runtime! Pin
dan!sh 19-Dec-09 6:09
professional dan!sh 19-Dec-09 6:09 
GeneralRe: Create Button at runtime! Pin
Sr...Frank19-Dec-09 6:15
Sr...Frank19-Dec-09 6:15 
GeneralRe: Create Button at runtime! Pin
dan!sh 19-Dec-09 6:47
professional dan!sh 19-Dec-09 6:47 
AnswerRe: Create Button at runtime! Pin
Abhishek Sur19-Dec-09 10:26
professionalAbhishek Sur19-Dec-09 10:26 
Do like this :

Button newButton = new Button();
newButton.Location = new Point(30,50); // Put your calculated point here.
newButton.Text = "Click Me";
newButton.Size=new Size(50,25);
newButton.Click += new EventHandler(newButton_Click);
this.Controls.Add(newButton);


Place your Eventhandler as newButton_Click.

public void newButton_Click(object sender, EventArgs e)
{
 // Do all you need.
}


Please do post in right forum next time... D'Oh! | :doh:

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

QuestionUpload Image on server using webclient Pin
mohdjaved119-Dec-09 3:38
mohdjaved119-Dec-09 3:38 
AnswerRe: Upload Image on server using webclient Pin
Abhijit Jana20-Dec-09 3:58
professionalAbhijit Jana20-Dec-09 3:58 
QuestionSplit string problem Pin
lrsalunkhe19-Dec-09 1:01
lrsalunkhe19-Dec-09 1:01 
AnswerRe: Split string problem Pin
saini arun19-Dec-09 1:13
saini arun19-Dec-09 1:13 
GeneralRe: Split string problem Pin
lrsalunkhe19-Dec-09 1:22
lrsalunkhe19-Dec-09 1:22 
GeneralRe: Split string problem Pin
#realJSOP20-Dec-09 1:25
mve#realJSOP20-Dec-09 1:25 
QuestionWeb Service Pin
ellllllllie18-Dec-09 22:35
ellllllllie18-Dec-09 22:35 
AnswerRe: Web Service Pin
Brij19-Dec-09 2:42
mentorBrij19-Dec-09 2:42 
GeneralRe: Web Service Pin
ellllllllie19-Dec-09 4:01
ellllllllie19-Dec-09 4:01 
Questioncompress webrespource.axd file in ii7 Pin
Vijay31aug18-Dec-09 22:30
Vijay31aug18-Dec-09 22:30 
QuestionUpdatepanel not working in createuser wizard Pin
bhavnvyas18-Dec-09 20:54
bhavnvyas18-Dec-09 20:54 
AnswerRe: Updatepanel not working in createuser wizard Pin
Abhijit Jana18-Dec-09 23:14
professionalAbhijit Jana18-Dec-09 23:14 
GeneralRe: Updatepanel not working in createuser wizard Pin
bhavnvyas18-Dec-09 23:56
bhavnvyas18-Dec-09 23:56 
GeneralRe: Updatepanel not working in createuser wizard Pin
saini arun19-Dec-09 0:12
saini arun19-Dec-09 0:12 
Question[Message Deleted] Pin
4anusha418-Dec-09 20:49
4anusha418-Dec-09 20:49 
AnswerRe: Class Library Pin
m-khansari18-Dec-09 21:21
m-khansari18-Dec-09 21:21 
AnswerRe: Class Library Pin
saini arun18-Dec-09 21:23
saini arun18-Dec-09 21:23 

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.