{"id":2406,"date":"2013-01-03T10:26:53","date_gmt":"2013-01-03T14:26:53","guid":{"rendered":"http:\/\/www.iowawebnet.com\/ein\/?p=2406"},"modified":"2013-01-03T10:44:16","modified_gmt":"2013-01-03T14:44:16","slug":"content-limited-by-character-number-vb-net","status":"publish","type":"post","link":"https:\/\/www.iowawebnet.com\/ein\/2013\/01\/content-limited-by-character-number-vb-net\/","title":{"rendered":"Content Limited by Character Number &#8211; VB.NET"},"content":{"rendered":"<pre>\r\nCode behind\r\n<code>\r\n\r\nPartial Class _default\r\n    Inherits System.Web.UI.Page\r\n\r\nProtected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As \r\n                                                    GridViewRowEventArgs)\r\n\r\nIf e.Row.RowType = DataControlRowType.DataRow Then\r\n\r\n  'character count\r\n   If DataBinder.Eval(e.Row.DataItem, \"description\").ToString.Length >= 175 Then\r\n       e.Row.Cells(3).Text = +\r\n       DataBinder.Eval(e.Row.DataItem, \"description\").ToString.Substring(0, 175) + \r\n       e.Row.Cells(3).ToolTip = DataBinder.Eval(e.Row.DataItem, \"description\").ToString\r\n     Else\r\n       e.Row.Cells(3).Text = +\r\n       DataBinder.Eval(e.Row.DataItem, \"description\").ToString\r\n     End If\r\n\r\n End If\r\n\r\nEnd Sub\r\n\r\nEnd Class\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Code behind Partial Class _default Inherits System.Web.UI.Page Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) If e.Row.RowType = DataControlRowType.DataRow Then &#8216;character count If DataBinder.Eval(e.Row.DataItem, &#8220;description&#8221;).ToString.Length >= 175 Then e.Row.Cells(3).Text = + DataBinder.Eval(e.Row.DataItem, &#8220;description&#8221;).ToString.Substring(0, 175) + e.Row.Cells(3).ToolTip = DataBinder.Eval(e.Row.DataItem, &#8220;description&#8221;).ToString Else e.Row.Cells(3).Text = + DataBinder.Eval(e.Row.DataItem, &#8220;description&#8221;).ToString End If End If End Sub End Class<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,17,16,84],"tags":[112,126,40],"class_list":["post-2406","post","type-post","status-publish","format-standard","hentry","category-net-4-0","category-applications","category-net","category-vs2010","tag-characters","tag-content","tag-count"],"_links":{"self":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/2406"}],"collection":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/comments?post=2406"}],"version-history":[{"count":13,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/2406\/revisions"}],"predecessor-version":[{"id":2426,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/2406\/revisions\/2426"}],"wp:attachment":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/media?parent=2406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/categories?post=2406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/tags?post=2406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}