Knowledge Base

Snippets

Entries for 2012

06
public string get_image(string product_ID) {  string functionReturnValue = null;  HttpWebRequest req = default(HttpWebRequest);  re...

[Read the rest of this article...]

HttpWebRequest, Images, GetResponse()
05
ALTER TABLE MyTableName ADD CONSTRAINT DF_MyTableName DEFAULT GETDATE() FOR MyColumnName SQL, Alter Table
Posted in: SQL Scripts
18
select dp2.name as role, dp1.name as owner from sys.database_principals as dp1 inner join sys.database_principals as dp2 on dp1.principal_id = dp2.own...

[Read the rest of this article...]

SQL Roles
07
GO to OUTLOOK 1) Navigate to File >> Options >> Advanced >> scroll down to the send/receive heading >> click on the send/...

[Read the rest of this article...]

23
String = "MyWord,AnotherWord,TheEnd" String = Regex.Replace(String, "(?<=,)(?!\\s)", " "); Value of the string is now . . . . . String = "...

[Read the rest of this article...]

Regex
Posted in: C Sharp - C#
07
The Search Skin Object has 3 important attributes:   Attribute Values Defaul...

[Read the rest of this article...]

Skin Object
Posted in: DNN, Skin Objects
16
Enter the following MX records. You may not be able to enter the priority value exactly as it appears in the table below—if you can, make sure ...

[Read the rest of this article...]

E-Mail
Posted in: E-Mail
14
string htmlHeaderTags = null; LiteralControl htmlHeaderCtrl = new LiteralControl(); htmlHeaderTags = "<base target=\"_self\">"; htmlHeaderCtr...

[Read the rest of this article...]

06
Converting a textbox money field value ($1,250.00) to a double value . . . double MyDoubleValue = double.Parse(txtMoneyAmount.Text, NumberStyles.Cur...

[Read the rest of this article...]

double.Parse, money
02
DNN Token Replacement Engine usage. Token Replacement Example
Page 1 of 2First   Previous   [1]  2  Next   Last