Click here to Skip to main content
15,885,309 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: I've never seen this before... Pin
Shog926-Nov-07 7:42
sitebuilderShog926-Nov-07 7:42 
QuestionReset List box or Dropdown Pin
mpavas26-Nov-07 3:00
mpavas26-Nov-07 3:00 
AnswerRe: Reset List box or Dropdown Pin
SABhatti26-Nov-07 4:05
SABhatti26-Nov-07 4:05 
QuestionMembership Provider with Custom DB Schema Pin
P Nandi26-Nov-07 2:50
P Nandi26-Nov-07 2:50 
QuestionFind Control in GridView Pin
Rock Star.26-Nov-07 2:48
Rock Star.26-Nov-07 2:48 
AnswerRe: Find Control in GridView Pin
SamRST26-Nov-07 3:26
SamRST26-Nov-07 3:26 
AnswerRe: Find Control in GridView Pin
SABhatti26-Nov-07 4:01
SABhatti26-Nov-07 4:01 
QuestionPlease check this code Pin
mehrdadc4826-Nov-07 2:20
mehrdadc4826-Nov-07 2:20 
Hi,
this code work true in first click, and in second don't fire Click event of btn.
in per twice run (first fire click event, second no).
if change the Form_Load to :
if (!IsPostBack)
{
Add();
}
in first click the btn disappears!

I use such this code in my project, what should I do for true action(in each click fires click event)

**** There is a Table control (tbl) on my web form ****

protected void Page_Load(object sender, EventArgs e)
{
Add();
}

private void Add()
{
tbl.Rows.Clear();
TableRow tr = new TableRow();
TableCell tc = new TableCell();
Button btn = new Button();
btn.Text = "Click Me!";
btn.Click += new EventHandler(btn_Click);
tc.Controls.Add(btn);
tr.Controls.Add(tc);
tbl.Controls.Add(tr);
}

void btn_Click(object sender, EventArgs e)
{
Add();
}

Best wishes

AnswerRe: Please check this code Pin
Paul Conrad28-Nov-07 16:29
professionalPaul Conrad28-Nov-07 16:29 
GeneralRe: Please check this code Pin
mehrdadc4829-Nov-07 2:46
mehrdadc4829-Nov-07 2:46 
QuestionSending email Pin
Paul McGann26-Nov-07 2:19
professionalPaul McGann26-Nov-07 2:19 
AnswerRe: Sending email Pin
N a v a n e e t h26-Nov-07 2:35
N a v a n e e t h26-Nov-07 2:35 
AnswerRe: Sending email Pin
Braulio Dez26-Nov-07 3:42
Braulio Dez26-Nov-07 3:42 
QuestionDatalist cell value Pin
SamRST26-Nov-07 2:19
SamRST26-Nov-07 2:19 
QuestionError in connecting Oracle DB Pin
www.Developerof.NET26-Nov-07 2:06
www.Developerof.NET26-Nov-07 2:06 
Questionget items selected within 'checkboxlist' Pin
gsshaw26-Nov-07 2:03
gsshaw26-Nov-07 2:03 
AnswerRe: get items selected within 'checkboxlist' Pin
SABhatti26-Nov-07 4:13
SABhatti26-Nov-07 4:13 
GeneralThank you very much Pin
gsshaw26-Nov-07 4:17
gsshaw26-Nov-07 4:17 
QuestionHelp Help Help and need help Pin
Ahmad Adnan26-Nov-07 1:39
Ahmad Adnan26-Nov-07 1:39 
AnswerRe: Help Help Help and need help Pin
SABhatti26-Nov-07 4:16
SABhatti26-Nov-07 4:16 
QuestionSearch a string in a paragraph Pin
.NET- India 26-Nov-07 1:22
.NET- India 26-Nov-07 1:22 
AnswerRe: Search a string in a paragraph Pin
Sun Rays26-Nov-07 1:29
Sun Rays26-Nov-07 1:29 
AnswerCross post. Please ignore this thread. Pin
Pete O'Hanlon26-Nov-07 1:30
mvePete O'Hanlon26-Nov-07 1:30 
GeneralRe: Cross post. Please ignore this thread. Pin
.NET- India 26-Nov-07 1:42
.NET- India 26-Nov-07 1:42 
GeneralRe: Cross post. Please ignore this thread. Pin
Pete O'Hanlon26-Nov-07 1:55
mvePete O'Hanlon26-Nov-07 1:55 

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.