Posts

Problem to get message

hi, not know why still message written file, using such codes if (!directory.exists(@"c://ab_position_list//p03rpr-dp03r_0722.txt")) { sw.writeline("file 'p03rpr-dp03r_0722.txt' not exist!"); return; } ... while file exist within  c:\ab_position_list many & best regards, hua min try using file.exists instead of directory.exists. Visual Studio Languages  ,  .NET Framework  >  Visual C#

Windows 2008 and 802.1p CoS value

hi, i aware in order use 802.1p qos cos priority tag, need compatible nic , driver, , need enable 802.1q (vlan) tagging since 802.1p tag in same header @ layer 2. i know windows 2003 supported setting cos tag (provided driver supported it) through group policy settings, interface deprecated. i know windows 2008 has new policy-based qos group policy setting allows set dscp value in ip header @ layer 3, somehow magically mapped 802.1p tag value, using undocumented map? the reason important windows servers plugged layer-2 managed switch not @ layer-3 ip packet , prioritise accordingly, important set layer-2 cos tag. does windows 2008 support 802.1p? i've been looking last day or , can't seem find answer. can't imagine 802.1p support has been removed windows 2008, there no documentation. appreciated. richard post question in windows server "platform networking" forum @ following address http://social.technet.microsoft.com/forums/en-us/winserverpn/threa...

How to apply css to an asp.net file upload control?

hi, designing 1 page contains 1 asp.net file upload control. have give same , feel asp.net file upload control browse button view should same current view of button throughout project. how apply css asp.net file upload control? the short answer is: can't. there ways work around this. take on link below 1 way solve problem using file input. http://www.quirksmode.org/dom/inputfile.html Visual Studio Languages  ,  .NET Framework  >  Visual C#

Simple explanation of Indexer

thanks reading question! please want understand concept of in simple form 1) isindexer 2) example of indexer: int , string 3) why 1 should use indexer if have array or property already. 4) object oriented significant of indexer? imp answer thanks please try make simple. thanks! hi bhattumang indexers way access arrays in .net. indexers defined properties, except accept parmeter, return selected value. can see simple example here:  http://msdn.microsoft.com/en-us/library/vstudio/6x16t2tx.aspx . indexers not ment replace array, how arrays accessed. should consider writing own indexer if reason want rewrite array, or if want access array not index of items (but according string or custom item). these aren't common solutions , should consider whether need them. also see:  http://msdn.microsoft.com/en-us/library/vstudio/2549tw02.aspx (for second question) and:  http://msdn.microsoft.com/en-us/library/vstudio/4bsztef7.aspx  (for third qu...

What is the SharePoint-hosted app permeation that required to create file on style library within the hosted app?

sharepoint-hosted app permission  that required create file on style library within hosted app? use following permission not work , error ""access denied. not have permission perform action or access resource." strange thing permission, allow me create folder not file!!! <apppermissionrequest scope = "http://sharepoint/content/sitecollection/web" right = "write" /> note:  i can’t use full control permission  because need publish app on microsoft office store. does user has permission , did try this ? allowapponlypolicy="true" (provider hosted) please ' propose answer ' if helped you, ' vote helpful ' if reply. SharePoint  ,  Apps for Office and SharePoint ...

Error Worklfow Manager - The token provider was unable to provide a security token while accessing

hi a couple of days i'm trying install workflow manager 1.0 have encountered problem not allow me contuniar the error follows: [error] [25/05/2015 07:20:22 p. m.]: system.management.automation.cmdletinvocationexception: the token provider unable provide security token while accessing 'https://sharepoint0120.secam.sa.net:9355/workflowdefaultnamespace/$sts/windows/'. token provider returned message: '<error><code>400</code><detail>cannot resolve namespace scope: http://sharepoint0120.secam.sa.net/workflowdefaultnamespace/wf_management/wftopic/..trackingid:e46c147d-135c-49d4-8dd8-43912b3fec64_gsharepoint0120,timestamp:26/05/2015 12:20:22 a. m.</detail></error>'. ---> system.unauthorizedaccessexception: token provider unable provide security token while accessing 'https://sharepoint0120.secam.sa.net:9355/workflowdefaultnamespace/$sts/windows/'. token provider returned message: '<error><code>400...

What is the Linq equivalent to query my list which I query with Tsql?

i need count of first character of values in my list.  note: first 3 values start numeric char designate '1' (if isnumeric == true '1'), count of values start 'a', 'b', ... here list of values (in table form tsql) and tsql use counts.  how query this list with linq query same result set tsql query?  fld1 123 234abc 345 aaa abb abc abd baa bbb bcd bee bfg bhf bmd caa cba ccb cmh daa dba dcb select case  when isnumeric(substring(fld1, 1,1))  = 1 '1' else substring(fld1,1,1) end val, count(*) cnt mytbl group case  when isnumeric(substring(fld1, 1,1))  = 1 '1' else substring(fld1,1,1) end --result set val   cnt 1       3 a       4 b       7 c       4 d       3 thanks rich p unfortunately, won't work in e...