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

I am using asp:HyperLink in usercontrol of my application. my hyperlink is placed in li(HTML Element) with runat="server", and NavigateUrl = "Page1.aspx"

Further I have used that control in Page1.aspx Page, and when I click on that HyperLink.

Page.IsPostBack always returns false.

Is there any way to get this as true??


I have tried alot of things including javascript __doPostback etc.

:(
Posted
Comments
pradiprenushe 13-Nov-13 6:50am    
You are redirecting to same page. So IsPostBack giving false is correct behavior.
VICK 13-Nov-13 6:55am    
Yes I know.. But I want to make it properpostback... mean to get true in return. any solution through Javascript, jquery or any thing???
pradiprenushe 13-Nov-13 6:57am    
why dont you use linkButton?
VICK 13-Nov-13 7:02am    
Tried.. but getting the same in return... :(
pradiprenushe 13-Nov-13 7:16am    
Can you provide link button code you have used?

1 solution

Solved it by myself.. by changing the working logic of my code accordingly.>>

Thanks to all those who viewed and gave your precious comments.

Closing this thread.
 
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