<asp:LinkButton ID="lbDownloadFile" name = "lbDownloadFile" runat="server" CausesValidation="false"
onclick="lbDownloadFile_Click" />
I have this link button. on click:
protected void lbDownloadFile_Click(object sender, EventArgs e)
{ //here is my debug pointer/breakpoint
.........................
}
but this event is not firing. my Page_Load() event is firing. How to solve this problem?
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
if (Session[Antrage_AnfrageSessionNames.AgntNr] == null)
{
Response.Redirect("../UserSessionError.aspx");
}
try
{
if (Request.QueryString["Kundennummer"].ToString() != null)
{
//If kundennummer exists in QueryString then stores it to further use
kundennummer = Request.QueryString["Kundennummer"].ToString();
}
}
catch
{
kundennummer = string.Empty;
}
}
}
EDIT:
I am adding the code, what FireFox firebug shows me respective to the LinkButton.
I think the auto generated href is the main problem here.