I am trying to add some functionality to a page I have inherited, but I am unable to do a postback on the page. This is how the button appears when I view source :
<input type="submit" name="ctl00$ContentBody$btnUpload" value="Upload" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentBody$btnUpload", "", true, "", "", false, false))" id="ctl00_ContentBody_btnUpload" />
And this is how it looks in design mode :
<asp:Button ID="btnUpload" runat="server" OnClick="UploadFile_Click" Text="Upload" />
Can anybody please help with this, I am tearing my hair out trying to figure out why I can’t postback!
So when you click submit nothing happens?
Ensure that it is not because one of the validation controls on the page is returning false.