HTML

Entity Framework MS SQL 2005 vs 2008

2013.01.15. 16:26 c shark

Mit tenyünk, ha SQL 2008 alatt fejlesztünk, de 2008 alá kell delpoy-olni?

 

http://stackoverflow.com/questions/316422/using-sql-server-2008-and-sql-server-2005-and-date-time

Szólj hozzá!

Címkék: SQL C#

Could not establish trust relationship for the SSL/TLS secure channel with authority PC1

2012.10.18. 16:33 c shark

 

System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority.

Ha a fenti hibát kapjuk, két dolgot tehetünk:

1. Telepítjük a szerver tanúsítványát a hívó kliensre. Íme ennek leírása:
http://wcfsecurity.codeplex.com/wikipage?title=How%20To%20-%20Create%20and%20Install%20Temporary%20Certificates%20in%20WCF%20for%20Message%20Security%20During%20Development&referringTitle=How%20Tos&ProjectName=wcfsecurity

 

2. Átütjük a tanúsítvány ellenőrzést:

protected static void IgnoreSSLCertificate()
{
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(RemoteCertValidate);
}

private static bool RemoteCertValidate(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error)
{
return true;
}

 

 

Szólj hozzá!

Címkék: Címkék

properties.ListItem in ItemAdded is NULL

2012.10.14. 13:16 c shark

Sharepoint 2007 esetén a SPItemEventReceiver ItemAdded nem adja át a ListItemet.

 

Tegyük ezt, és megkapjuk:

SPWeb Web = properties.OpenWeb();

SPListItem Item = oSPWeb.Lists[properties.ListId].GetItemById(properties.ListItemId);

 

Szólj hozzá!

Címkék: SPItemEventReceiver Sharepoint ItemAdded

Hogyan szedjük ki a HTML tag-eket egy szövegből?

2012.10.11. 15:21 c shark

 

Value = Regex.Replace(Value, "<.*?>", " ");
Value = System.Web.HttpUtility.HtmlDecode(Value);

Szólj hozzá!

Címkék: HTML C# Regex

HTML kódok

2012.10.11. 15:15 c shark

 

ASCII, HTML kódok

http://www.ascii.cl/htmlcodes.htm

Szólj hozzá!

Címkék: HTML ASCII

Project server custom fields data types

2012.10.10. 09:43 c shark

PSDatatype

Itt található, hogy a Project Server egyedi mezői milyen típusúak lehetnek, valamint ezekből a mezőkből hogyan szedhető ki a valós érték:

A cost típusú mezőket 100-zal kell osztani, a duration típusúakat 10-zel. A duration percben van tárolva, tehát ha a napot akarjuk, akkor érték/8*60*10, vagyis érték/4800.

Szólj hozzá!

Címkék: PSDataType Project Server

Sharepoint 2010 SPItemEventReceiver property

2012.10.09. 15:56 c shark

 

Íme itt egy leírás, hogy a SPItemEventProperties tulajdonságai mikor érhetők el:

http://sharepointgauravgoyal.blogspot.hu/2012/05/working-with-beforeproperties-and.html

Szólj hozzá!

Címkék: SPItemEventReceiver Sharepoint

süti beállítások módosítása