Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sql Paraments C# Pin
J4amieC4-Aug-05 22:14
J4amieC4-Aug-05 22:14 
GeneralRe: Sql Paraments C# Pin
| Muhammad Waqas Butt |4-Aug-05 22:32
professional| Muhammad Waqas Butt |4-Aug-05 22:32 
GeneralRe: Sql Paraments C# Pin
J4amieC4-Aug-05 23:44
J4amieC4-Aug-05 23:44 
GeneralRe: Sql Paraments C# Pin
Guffa4-Aug-05 23:55
Guffa4-Aug-05 23:55 
GeneralRe: Sql Paraments C# Pin
Dead Skin Mask5-Aug-05 3:05
Dead Skin Mask5-Aug-05 3:05 
GeneralC# as scripting lang in MFC App Pin
Ning Hu4-Aug-05 21:19
Ning Hu4-Aug-05 21:19 
GeneralRe: C# as scripting lang in MFC App Pin
WillemM5-Aug-05 1:05
WillemM5-Aug-05 1:05 
GeneralNot able to create Event Handler Pin
Aneeel4-Aug-05 19:49
Aneeel4-Aug-05 19:49 
My codeis as follows For LinkButton created from the event handler lnk_Click(), I was not able to fire the event.Pls do suggest some ways to get out of it
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
LinkButton lnk3;
LinkButton lnk1;
LinkButton lnk;
protected void Page_Load(object sender, EventArgs e)
{


for (int i = 1; i < 11; i++)
{
lnk1 = new LinkButton();
lnk = new LinkButton();
lnk.Text =Convert.ToString(i);
lnk1.Text = " ";
this.Form.Controls.Add(lnk);
lnk1.Enabled = false;
this.Form.Controls.Add(lnk1);
lnk.Click +=new EventHandler(lnk_Click);
if (i > 9)
{
lnk3 = new LinkButton();
lnk3.Text = "More";
this.Form.Controls.Add(lnk3);
lnk3.Click+=new EventHandler(lnk_Click);

}
}

}
public void lnk_Click(object sender, EventArgs e)
{

string str = ((LinkButton)sender).Text;
Response.Write("Hi Just Testing" + " "+ str);
if (((LinkButton)(sender)).Text == "More")
{
for (int i = 0; i < 11; i++)
{
lnk1 = new LinkButton();
lnk = new LinkButton();
lnk.Text = Convert.ToString(i);
lnk1.Text = " ";
this.Form.Controls.Add(lnk);
lnk1.Enabled = false;
this.Form.Controls.Add(lnk1);
lnk.Click += new EventHandler(lnk_Click);
if (i > 9)
{
lnk3 = new LinkButton();
lnk3.Text = "More";
this.Form.Controls.Add(lnk3);
lnk3.Click += new EventHandler(lnk_Click);

}
}

}
}

}
Generalconditions problem Pin
nidhelp4-Aug-05 16:47
nidhelp4-Aug-05 16:47 
GeneralRe: conditions problem Pin
Mohamad Al Husseiny4-Aug-05 16:50
Mohamad Al Husseiny4-Aug-05 16:50 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 16:58
nidhelp4-Aug-05 16:58 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 17:35
protectorChristian Graus4-Aug-05 17:35 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 18:07
nidhelp4-Aug-05 18:07 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 18:14
protectorChristian Graus4-Aug-05 18:14 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 18:32
nidhelp4-Aug-05 18:32 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 18:56
protectorChristian Graus4-Aug-05 18:56 
GeneralRe: conditions problem Pin
Luis Alonso Ramos4-Aug-05 19:12
Luis Alonso Ramos4-Aug-05 19:12 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 19:16
nidhelp4-Aug-05 19:16 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 19:23
protectorChristian Graus4-Aug-05 19:23 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 19:37
nidhelp4-Aug-05 19:37 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 19:45
protectorChristian Graus4-Aug-05 19:45 
GeneralRe: conditions problem Pin
Weiye Chen4-Aug-05 17:51
Weiye Chen4-Aug-05 17:51 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 18:41
nidhelp4-Aug-05 18:41 
GeneralRe: conditions problem Pin
J4amieC4-Aug-05 22:39
J4amieC4-Aug-05 22:39 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 23:24
nidhelp4-Aug-05 23:24 

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.