Thursday, October 4, 2012
Another difference between sc and installutil
if the actual exe is deleted (after the service is stopped) installutil /u will fail as opposed to sc
Friday, September 28, 2012
convert image to text
SELECT
convert(varchar(max),convert(varbinary(max), FILE_CONTENT))
from blah
Friday, September 14, 2012
referring to asp.net server side in javascript
it may be easier to put the whole string under server side rendering
a'la:
a'la:
onchange
=
'<%# "checkDefault(this.value,\""
+ Container.FindControl("defaultValue").ClientID + "\");"%>'
Thursday, September 13, 2012
referring to controls in repeater from aspx page
<%#Container.FindControl("blah").ClientID%>
Tuesday, September 11, 2012
select dropdown by text
this.drpLayouts.SelectedIndex = this.drpLayouts.Items.IndexOf(this.drpLayouts.Items.FindByText(this.layoutName.Text));
vs2010 cannot start debugger
was really just an invalid identity on my app pool because I changed passwords.
Wednesday, August 29, 2012
Linq distinct count of a value in a datatable
var countings
= (from
row in ti.Table.AsEnumerable()
select row["blah"].ToString()).Distinct();
if(countings.Count<string>() > 1)
{
Subscribe to:
Comments (Atom)