Stop Debugging: SHIFT + F5
View code in full screen mode: ALT + SHIFT + ENTER
Go to Definition: F12
Close Window: CTRL + F4
Friday, December 4, 2009
Thursday, December 3, 2009
Telerik RadWindow Clicking on the link doesn't do anything
Not sure if you encountered this before. Essentially, when using the Telerik RadControls RadWindow, specifically in this case the RadWindowManager and trying to use a modal window, there is an assumption I didn't realize. When you update your OpenerElementID you are supposed to set it to the id of the control whether it's a link, linkbutton, whatever. Well, initially, I set this to the ID of the control. In reality, it must be the actual ID of the control. To get this, load your page, then get the name via the HTML source.
Wednesday, December 2, 2009
How to get the date in a sql statement (TSQL)
To get the date in a select statement, stored procedure, etc. You can use the getdate() function.
For example, you can do
Select getdate()
For example, you can do
Select getdate()
Getting the word out about this site
Ok, here's where we get a little bit selfish. But, wanted to get more traffic, so we added ourselves to yousaytoo.com. If you want to know more about it go here:
Make Money Blogging
Make Money Blogging
Tuesday, December 1, 2009
the string must be a non-nullable value type in order to use it as a parmeter 'T' in the generic type or method 'System.Nullable'
Nullable type as a generic parameter possible? - Stack Overflow: "Change the return type to Nullable, and call the method with the non nullable parameter"
Monday, November 30, 2009
Difference between System.DateTime.Now and System.DateTime.Today
Per Microsoft:
Because it returns the current date without the current time, the Today property is suitable for use in applications that work with dates only. For details, see Choosing Between DateTime, DateTimeOffset, and TimeZoneInfo. In contrast, the TimeOfDay property returns the current time without the current date, and the Now property returns both the current date and the current time.
Because it returns the current date without the current time, the Today property is suitable for use in applications that work with dates only. For details, see Choosing Between DateTime, DateTimeOffset, and TimeZoneInfo. In contrast, the TimeOfDay property returns the current time without the current date, and the Now property returns both the current date and the current time.
Labels:
difference between now and today
Wednesday, November 25, 2009
How do you add drop down items to a drop down which uses a datasource
Ran into this the other day. I'm filling a drop down (combo box) from the code behind using a datasource. But, the data source of course doesn't include a default or empty value for the top of the list. So, what do you do?
What you can do is on the aspx file add the attribute AppendDataBoundItems="true".
Once you have added this attribute to the drop down (combo box), you can add a new drop down item to the combo box.
Example:
What you can do is on the aspx file add the attribute AppendDataBoundItems="true".
Once you have added this attribute to the drop down (combo box), you can add a new drop down item to the combo box.
Example:
Subscribe to:
Posts (Atom)
