Hello i have made a dynamic table now i want to show some specific data in to a tooltip but the data is not showing. I am confused how can i show this.
Here is my created method addTableContentWorkHistory
And i am calling this addTableContentWorkHistory(method) inside another GetApplicantInfo(method) where more data are showing inside tooltip
I am adding that too
ASP.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
ASP.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
May I ask you a question? Why you are building an HTML table in C#. This looks to be tabular data. You can easily use a repeater control if you are using webform. If you are using anything other than that you can easily use JavaScript/jQuery to easily create
such HTML. It's not a good idea to hardcode HTML tags in C#. Any change in your HTML, you need to change C# code.
Member
12 Points
42 Posts
showing html table data in tooltip
Jun 28, 2020 04:14 PM|mazharul007|LINK
Hello i have made a dynamic table now i want to show some specific data in to a tooltip but the data is not showing. I am confused how can i show this.
Here is my created method addTableContentWorkHistory
And i am calling this addTableContentWorkHistory(method) inside another GetApplicantInfo(method) where more data are showing inside tooltip
I am adding that too
Please you can ask me any info you want. So my query is here what i need to do next to show data thru addTableContentWorkHistory
Contributor
2400 Points
752 Posts
Re: showing html table data in tooltip
Jun 29, 2020 10:06 AM|XuDong Peng|LINK
Hi mazharul007,
Do you mean that you don’t know how to display the value you want to set in the tooltip in the table?
If this is the case, you could achieve your needs by setting the title attribute of the cell in table, like this:
Result:
You could also refer to below cases:
ToolTip for Table cell ASP.NET
Display additional information in Tool tip on Mouse over of record in MVC Table
Best regards,
Xudong Peng
Member
12 Points
42 Posts
Re: showing html table data in tooltip
Jun 29, 2020 12:14 PM|mazharul007|LINK
Hello Peng,
Thanks i have solved the issue but can you tell me that how to add the Table Title above the table in asp.net using c#?
Such as , if you consider the previous example I want to add a Table Name above the table how can i do that?
Contributor
2400 Points
752 Posts
Re: showing html table data in tooltip
Jun 30, 2020 02:13 AM|XuDong Peng|LINK
Hi mazharul007,
If you want to add a title to the table, I think using TableHeaderRow class to achieve is a good way.
A simple example:
Result:
More details, you could refer to this document.
Best regards,
Xudong Peng
All-Star
20953 Points
4984 Posts
Re: showing html table data in tooltip
Jul 01, 2020 01:00 PM|asteranup|LINK
Hi mazharul007,
May I ask you a question? Why you are building an HTML table in C#. This looks to be tabular data. You can easily use a repeater control if you are using webform. If you are using anything other than that you can easily use JavaScript/jQuery to easily create such HTML. It's not a good idea to hardcode HTML tags in C#. Any change in your HTML, you need to change C# code.
Anup Das Gupta
Visit My Blog
You can also connect with me in LinkedIn