I want to display a gridview in alert message like alert('
Loading
I want to display a gridview in alert message like alert('
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Apr 19, 2024, 4:44 PM
That alert function is a JavaScript alert, correct? The JavaScript alert function only supports text.
Vijay Pratap SinghPosted Apr 19, 2024, 5:51 AM
Displaying a
GridViewinside an alert message in ASP.NET is not directly supported because an alert message typically contains text and does not support complex HTML structures like aGridView. you can achieve a similar result by using a modal dialogue or a custom popup.Here's a basic example of how you can achieve this using a modal dialogue:
GridView.Hope this will help.