i have used a link button and write some code on click event of this.
the application is working fine on my system but when i deploy it to server the link button click ebent not fired.

can anybody tell me the reason?

Dani AI

Generated

The symptom described by — LinkButton click works locally but not after deployment — most often comes from deployment or environment differences rather than a bug in the control itself. ’s point about differing environments and ’s note about server-side wiring are relevant; the next step is a short, targeted checklist to isolate whether the problem is on the server, in the deployed build, or in the browser.

  • Confirm the deployed /bin contains the updated assembly from the build that works locally; an out-of-date DLL means the event method may not exist on the server.
  • Verify the IIS application pool CLR version and pipeline mode match the application target; mismatches can change runtime behavior.
  • Check that the compiled page class/namespace matches the page directive in the deployed site so the code-behind methods can be found by the runtime.
  • Inspect the browser developer tools (Console and Network) to see whether a POST is issued when the link is clicked and whether any client-side script error prevents the postback.
  • Review server-side responses and logs for redirects (authentication, custom errors, URL rewriting) that can swallow the postback before it reaches the page.
  • When master pages, partial postbacks or AJAX are used, confirm the rendered page has the expected script registration and only one server form; missing script registration or duplicate forms prevents postbacks.

Enable tracing or temporary debugging on the server and compare web.config differences between dev and prod. For reference on event wiring and page lifecycle, see the official ASP.NET documentation: ASP.NET page life cycle and event handling and .

Recommended Answers

All 2 Replies

you have to say more details.
Is your webserver configured correctly? are there any errors when displaying the internet explorer for example.
Since you say the app is working well on your dev. machine, it goes to say naturally that your environment (betwixt your dev machine and server) are different. Maybe your web server. but you have to pay attention to your app's behavior on the server and report back any error(s);)

i have used a link button and write some code on click event of this.
the application is working fine on my system but when i deploy it to server the link button click ebent not fired.

can anybody tell me the reason?

if u not set that linkbutton
in html tag runat="server"
then possibility of occuring this error
bt i m damn sure u r not so fool top forget writing this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.