why whats the problem if its 3 field then it work fine..if i add one more then the error comes..?
Hello
It looks you do not properly close the tr tags. For every opening tag <tr> you'll have a corresponding </tr> one. You may try adding these, somehing like
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: Mouserover to show details in gridview from database
Feb 13, 2012 12:35 AM|LINK
Hello
It looks you do not properly close the tr tags. For every opening tag <tr> you'll have a corresponding </tr> one. You may try adding these, somehing like
b.Append("<tr>");
b.Append("<td><b>A: </b>" + table.Rows[0]["A"].ToString() + "</td>");
b.Append("</tr>");
b.Append("<tr>");
b.Append("<td><b>B: </b>" + table.Rows[0]["B"].ToString() + "</td>");
b.Append("</tr>");
....
See if this helps.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
sandeepmitta...
Contributor
6951 Points
1079 Posts
Re: Mouserover to show details in gridview from database
Feb 13, 2012 05:20 AM|LINK
Add [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()] to mehtod "ProductDetails".
Also, add code for both in same event
Sandeep Mittal | My Blog - IT Developer Zone