Recently I have been asked this question. Answer is that it cannot be null and will not be null, so you don’t have to:
.Text != null
Why? Because .Text property in base class does:
set
{
if (value == null)
[…]
Read Full Post »
Posted in SharePoint, Web Development, .NET on Nov 29th, 2006
If you set up HeaderImageUrl property in HyperLinkColumn, the text from HeaderText will not be shown.
Take this code for example:
<asp:HyperLinkColumn DataTextField=”urn:schemas-microsoft-com:office:office#Author”
DataNavigateUrlField=”urn:schemas-microsoft-com:office:office#Author”
DataNavigateUrlFormatString=”/MySite/Public.aspx?user={0}”
HeaderText=”Author” HeaderImageUrl=”/_layouts/images/imnhdr.gif”>
The “Author” text will not be shown in this column’s header. Only the icon will be visible. Well there is a simple way to solve
this:
<asp:HyperLinkColumn DataTextField=”urn:schemas-microsoft-com:office:office#Author”
DataNavigateUrlField=”urn:schemas-microsoft-com:office:office#Author”
DataNavigateUrlFormatString=”/MySite/Public.aspx?user={0}”
HeaderText=”<img src=’/_layouts/images/imnhdr.gif’/>Author”>
hey, it works
Read Full Post »
Posted in Web Development on Jun 19th, 2005
Finally that time came. Time to face with the lack of group validators problem. I had two choices: loop up a solution for that in the Internet or fix it on my own.
I decided that first I will try to find something on the Internet. Maximum time for that is 20 minutes, after that Iām […]
Read Full Post »
Posted in Web Development on Mar 28th, 2005
Introduction
(…)
Internet Explorer contains many little-known and hidden features that, given the right circumstances, you can use to your advantage when developing Web sites. Because many of these features are specific to Internet Explorer, and are not available on any other browser, you should probably only consider using them when you are developing in an environment […]
Read Full Post »