Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a problem with asp:Button Click event. The click event is not firing and PostBack is always false when someone clicks the asp:Button. I have two URLS such as www.example.com/en/pages/home.aspx and www.example.com/home.aspx.

The button click event is firing for first URL and I handle the second URL via a custom HTTPModule. In the module, I add "/en/pages" to the application.Request.Url.PathAndQuery. And finally I do

string urlToredirecz = "/en/pages"+ application.Request.Url.PathAndQuery
this.application.Context.Server.TransferRequest(urlToRedirect);

But the page submit button click is not firing. I don't undertand how can I handle this. Anyone please help me.

Thank you in advance.
Aruna
Posted
Updated 11-Oct-11 3:47am
v3

1 solution

Hi,

upto my knowledge you can post data to another page .

But you are trying to post data along with event.In my view it has less possibility to do this.

you can follow another way for this like..

store one session variable for event.And in that en/pages/redirectpage.aspx
you can check for session variable for event if it exists do same as in button click event.

I hope you understood what I said

All the Best
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900