Posts

Deleting duplicate values from a collection?

...or better way of doing this. i'm using regexes search html file tags using public static string threadposterspattern { { return "<span class=\"postername\">(.*)(?=</span>)"; } } matchcollection posterlist = regex.matches(filecontents, threadposterspattern, regexoptions.multiline); foreach (match x in posterlist) { //this cleans extraneous sub-tags results var y = new regex("<.*?>").replace(x.value, string.empty); console.writeline(y); } now, want remove duplicate entries posterlist , turn whole list 1 delineated string {eventually} insert sqlite database. apparently there's distinct(){?} method along lines, i'm not sure how reach point. c# newbie, learning on go. ask lot of followup questions answers given, fair warning , all. y...

How To Generate Schema?

the "consume adapter service" wizard allows generate schema appropriate calling funcitons in wcf lob adapter.   suppose have metadataretrievalnode of operation, how generate schema (xsd) using c# code?  see can generate wsdl using imetadataretrievalcontract.getmetadata().  need able generate xsd metadataretrievalnode. what scenario in attempting use adapter?   you system .web.services.description. servicedescription calling imetadataretrievalcontract.getmetadata(). in you can @ member:   system.web.services.description. servicedescription.types.schemas   this have schemas returned part of wsdl.   thanks. BizTalk Server  >  BizTalk Server Adapters and Adapter Pack

Windows datarepeater control

hi, iam pulling records table called person, has fields person_picture,person_name,person_telephone , person_address. now want display these records using datarepeteater in way in datarepeater should show only first 4 rows table person @ top , goes 4 rows down , on. mean  row= picture,name telephone,address so should show below . row1 row2 row3 row4 row5 rows6 rows7 row8 row9 row10 row11 row12 row13 rows14 rows15 row16 please suggest urgently how can achieve this. iam doing on windows application. if not possible datarepeater, please suggest other way. please @ earliest hi, iam pulling records table called person, has fields person_picture,person_name,person_telephone , person_address. now want display these records using datarepeteater in way in datarepeater should show only first 4 rows table person @ top , goes 4 rows down , on. mean  row= picture,name telephone,address so should show below . row1 row2 row3 row4 row5 rows6...

Passing DBNull or Decimal value through one method

i'm using , sql stored procedure , command in asp.net app, call method or function value in textbox on page, parse string decimal value , pass on decimal if valid, if null empty didn't populate textbox pass on dbnull.value command parameter , not null.  when pass on null command parameter isn't passed when command executed.  i'm trying save myself writing bunch of if else statements , call method save me time, there several textboxes need conversion with.  appreciated! michael duhon if(string.isnullorempty(textbox.text)) command.parameters.addwithvalue("@param", dbnull.value); else command.parameters.addwithvalue("@param", decimal.parse(textbox.text)); Visual Studio Languages  ,  .NET Framework ...

ria services: code contracts problem

hello again. so, i've decided use ria services instead of using "classic" wcf services. now, thing i'm using custom dtos , seems need use includeattribute in order property "added" client proxy added silverlight. problem:  ensurecontractreferenceassemblies: d:\projects\sra\mercurial\sra.core.projects\sra.core\bin\debug\sra.core.dll;d:\projects\sra\mercurial\sra.core.projects\sra.ocorrencias.dtos\bin\debug\sra.ocorrencias.dtos.dll   reading assembly 'sra.ocorrencias.dtos' 'd:\projects\sra\mercurial\sra.core.projects\sra.ocorrencias.dtos\bin\debug\sra.ocorrencias.dtos.dll' resulted in errors.    could not resolve type reference: [system.servicemodel.domainservices.server]system.servicemodel.domainservices.server.includeattribute.    could not resolve member reference: system.servicemodel.domainservices.server.includeattribute::.ctor. ccrewrite : error : rewrite aborted due metadata errors. check output window ...

Process 4010 and 5010 X12 834 documents for the same ISA identifiers in Biztalk 2010.

hi,   i facing issue, have process 4010 , 5010 x12 834 documents same isa identifiers in biztalk 2010. have solution on this? thanks, imran   thanks boatseller quick response. these 2 schemas customized schemas , namespaces different both versions, have target namespace option in local host setting not mandatory. my message type below http://mycustomappnamespace_123#x12_00501_834 http://mycustomappnamespace_456#x12_00401_834 and yes both version of files coming same trading partners. have several trading partners use these 2 versions of schemas. thanks, imran BizTalk Server  >  BizTalk Server EDI and AS2

multiple biztalk groups

can create multiple biztalk group in admin console ? what process ? can provide me link regarding query ? what benefit having more 1 biztalk group ? thanks, prakash sajwan you don't create biztalk groups in admin console, can attach multiple groups views in same console yes. right click biztalk server administration , choose "connect existing group". it recommended have group both development, testing , production, more 1 production group in same company seldom makes sense. morten la cour BizTalk Server  >  BizTalk Server General