Hi
I want to modal popup on click of LinkButton
Code
Add Location
**************************
Add/Update Location
×
Location *
'>Thanks

Vishal JoshiRank #377 · 6.7K reputationPosted Jan 30, 2023, 12:02 AM EST
Hello,
Please try to replace the below code with your link button code.
Thanks
Sachin SinghRank #66 · 26.2K reputationPosted Jan 29, 2023, 11:44 AM EST
follow this
protected void lnkBtnAdd_Click(object sender, EventArgs e) { ScriptManager.RegisterStartupScript(this,this.GetType(),"Pop","openModal();",true); }function openModal() { $('[id*=YourModelID]').modal('show'); }Naimish MakwanaRank #324 · 7.7K reputationPosted Jan 30, 2023, 12:52 AM EST
Hi, Please try below solution.
protected void lnkBtnAdd_Click(object sender, EventArgs e) { ScriptManager.RegisterStartupScript(Page, Page.GetType(), "modal_form_horizontal", "$('#modal_form_horizontal').modal();", true); }Thanks