|
I have a datagrid which contains an ImageButton.
This datagrid is in a control which is in an aspx page. the aspx page contains the form:<form id="frmItemDetail" runat="server">
On my local machine the ImageButton submits my page fine. Everything works fine locally. But when i deploy my site to the live server this ImageButton will not even submit the page.
1 I have my databinding put inside if(!Page.IsPostBack) so that my itemcommand does not get eaten when i click the imagebutton.
2 I have put the necessary code within private void InitializeComponent()
3 I have created the necessary code for the item command private void dgItemDetail_ItemCommand(object source, DataGridCommandEventArgs e)
4 i have added the CommandName atttribte to my ImageButton
I am hosting my site with a commercia hoster so i can attach a debugger to the live process.
Any help would be appreciated?????
C#/Asp.NET Why wont my ImageButton in DataGrid submit when deployed to live??
I have faced a similar problem two years ago with Validator Controls. They were working okay locally, however, they didn't work on the online server.
It turned out that the online server was missing some Javascript files that should be found under the root folder.
Another time, I faced a problem with a regular button not submitting the page. The button ran okay on my local server. It turned out that it was an Internet connection problem (believe it or not, the button didn't submit the page only when using Internet from a specific ISP).
I'm sorry I can't give you a more precise answer regarding your problem.
|