Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
Questionhow to connect/query assisted gps server Pin
hammid198126-Mar-09 4:26
hammid198126-Mar-09 4:26 
QuestionHow to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
MayFlyJJ26-Mar-09 4:02
MayFlyJJ26-Mar-09 4:02 
AnswerRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? [modified] Pin
Luc Pattyn26-Mar-09 5:21
sitebuilderLuc Pattyn26-Mar-09 5:21 
GeneralRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
MayFlyJJ26-Mar-09 6:17
MayFlyJJ26-Mar-09 6:17 
GeneralRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
Luc Pattyn26-Mar-09 7:17
sitebuilderLuc Pattyn26-Mar-09 7:17 
GeneralRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
MayFlyJJ27-Mar-09 2:07
MayFlyJJ27-Mar-09 2:07 
GeneralRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
Luc Pattyn27-Mar-09 2:24
sitebuilderLuc Pattyn27-Mar-09 2:24 
QuestionDynamic Link Button not firing click event. Pin
Kevin Mauriello26-Mar-09 3:50
Kevin Mauriello26-Mar-09 3:50 
I have an app where I display a list of link buttons (determined by variable number or records returned from a db). I create the link buttons dynamically but the click/command event(s) do not fire when the button is selected.

Also, this is in an <asp:panel xmlns:asp="#unknown"> which is in the content section of a master page.

<br />
    protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        if (!Page.IsPostBack)<br />
        {<br />
        }<br />
        BuildLinkButtons();<br />
    }<br />
<br />
    protected void BuildLinkButtons()<br />
    {<br />
        Label lblNew = new Label();<br />
<br />
        lblNew.ID = "weekLabel";<br />
        lblNew.Text = "Select A Week:";<br />
        lblNew.Font.Bold = true;<br />
        weekPanel.Controls.AddAt(0, lblNew);<br />
        weekPanel.Controls.AddAt(1, new LiteralControl("&nbsp;&nbsp;&nbsp;"));<br />
<br />
        // hardcoded loop, I really get data from a db (too much code)<pre><code>

int iPos = 2;
for (int i = 1; i < 10; i++)
{
LinkButton lnkBtn = new LinkButton();
lnkBtn.ID = "lnk1:" + i.ToString();
lnkBtn.Text = i.ToString();
lnkBtn.Click += new EventHandler(lnkBtn_Click);
lnkBtn.CommandName = i.ToString();
lnkBtn.Command += new CommandEventHandler(lnkBtn_Command);
weekPanel.Controls.AddAt(iPos++, lnkBtn);
weekPanel.Controls.AddAt(iPos++, new LiteralControl("&nbsp;&nbsp;&nbsp;"));
}
}

void lnkBtn_Command(object sender, CommandEventArgs e)
{
// do some stuff here
}

void lnkBtn_Click(object sender, EventArgs e)
{
// do some stuff here
}


Questionchanging the database after addition to the project ? Pin
Mubeen.asim26-Mar-09 3:36
Mubeen.asim26-Mar-09 3:36 
AnswerRe: changing the database after addition to the project ? Pin
Vimalsoft(Pty) Ltd26-Mar-09 4:14
professionalVimalsoft(Pty) Ltd26-Mar-09 4:14 
GeneralRe: changing the database after addition to the project ? Pin
Mubeen.asim26-Mar-09 4:50
Mubeen.asim26-Mar-09 4:50 
GeneralRe: changing the database after addition to the project ? Pin
Vimalsoft(Pty) Ltd26-Mar-09 4:57
professionalVimalsoft(Pty) Ltd26-Mar-09 4:57 
GeneralRe: changing the database after addition to the project ? Pin
Mubeen.asim26-Mar-09 5:01
Mubeen.asim26-Mar-09 5:01 
GeneralRe: changing the database after addition to the project ? Pin
Vimalsoft(Pty) Ltd26-Mar-09 5:07
professionalVimalsoft(Pty) Ltd26-Mar-09 5:07 
GeneralRe: changing the database after addition to the project ? Pin
Mubeen.asim26-Mar-09 6:39
Mubeen.asim26-Mar-09 6:39 
GeneralRe: changing the database after addition to the project ? Pin
Vimalsoft(Pty) Ltd26-Mar-09 19:57
professionalVimalsoft(Pty) Ltd26-Mar-09 19:57 
Questionhow to disable globel mouse and Keyboard event.. [modified] Pin
prem194226-Mar-09 3:30
prem194226-Mar-09 3:30 
GeneralPerformance problem when implementing driversin state machine model Pin
ayyappa4902126-Mar-09 3:12
ayyappa4902126-Mar-09 3:12 
QuestionIcons Disapear from taskebar Pin
udikantz26-Mar-09 2:59
udikantz26-Mar-09 2:59 
QuestionRe: Icons Disapear from taskebar Pin
Cracked-Down26-Mar-09 3:22
Cracked-Down26-Mar-09 3:22 
AnswerRe: Icons Disapear from taskebar Pin
Eddy Vluggen26-Mar-09 3:41
professionalEddy Vluggen26-Mar-09 3:41 
GeneralRe: Icons Disapear from taskebar Pin
udikantz26-Mar-09 3:46
udikantz26-Mar-09 3:46 
GeneralRe: Icons Disapear from taskebar Pin
Xmen Real 26-Mar-09 3:49
professional Xmen Real 26-Mar-09 3:49 
GeneralRe: Icons Disapear from taskebar Pin
Cracked-Down26-Mar-09 3:56
Cracked-Down26-Mar-09 3:56 
GeneralRe: Icons Disapear from taskebar Pin
Xmen Real 26-Mar-09 3:58
professional Xmen Real 26-Mar-09 3:58 

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.