I want to when the user clicks the linkbutton being displayed in the first column launch a secondary window that will allow the user to input some data, then have that data updated to the gridview. My issue is that when the linkbutton is pressed, the header
retracts.
I believe this is due to conflicting JQuery. How would I re-write this syntax so it functions as I wish?
My issue is that when the linkbutton is pressed, the header retracts.
if you are talking about the gridview getting hidden on click on Link button, then the reason for this issue click on LinkButton is causing a postback which cause the gridview to hide.
To resolve the issue you can add a click event to button and then cancel the postback of button.finally call the function to open popup from that method.
Member
20 Points
51 Posts
I think my JQuery Is Fighting Each Other
Jan 11, 2018 12:29 AM|LiarLiarPantsOnFire|LINK
I want to when the user clicks the linkbutton being displayed in the first column launch a secondary window that will allow the user to input some data, then have that data updated to the gridview. My issue is that when the linkbutton is pressed, the header retracts.
I believe this is due to conflicting JQuery. How would I re-write this syntax so it functions as I wish?
All-Star
50031 Points
9684 Posts
Re: I think my JQuery Is Fighting Each Other
Jan 11, 2018 01:10 AM|A2H|LINK
if you are talking about the gridview getting hidden on click on Link button, then the reason for this issue click on LinkButton is causing a postback which cause the gridview to hide.
To resolve the issue you can add a click event to button and then cancel the postback of button.finally call the function to open popup from that method.
Add a css class to button like below
Then change the jquery like below
A2H
My Blog | Dotnet Funda
Member
20 Points
51 Posts
Re: I think my JQuery Is Fighting Each Other
Jan 11, 2018 01:30 AM|LiarLiarPantsOnFire|LINK
@a2h -> this is what I Try, but I get error of Expected ')' on the line of code function HidePopUp()
Full syntax ->
All-Star
50031 Points
9684 Posts
Re: I think my JQuery Is Fighting Each Other
Jan 11, 2018 01:36 AM|A2H|LINK
You have a code misplaced slightly and the the function was not closed properly. Try with below code
A2H
My Blog | Dotnet Funda