Posts

how to get data into dictionary collection in c#.net?

hi, have dictionary collection stored name , value. instance have 500 records stored in collection below- dictionary<string,int> dict=new dictionary<string,int>(); dict.add("a",1); dict.add("b",2); -- dict.add("aab",500); i have method name getdata(int pagenumber,dictionary<string,int>() mydictionary) takes 2 aurguments. first pass page number,and second have collection. want achieve, if pass page number 1 dictionary collection maintain 1-100 key value pair. if passed 2 dictionary collection maintain 101-200 key value pair. , keep going such fashion. means want create dynamic approach approach appreciated! below code have implemented, static want dynamic- public dictionary<string, int> createcollection()         {             dictionary.add("a", 1);        ...

I do not see Pipe lines in my Admin console???

Image
hi,    have been using biztalk admin console few months , developed , deployed interfaces , worked far. of sudden today can't see pipelines under folder (not sure accidentally delete/remove them). when try creating send port see passthroughtransmit , xmltransmit , it. not see thing else. repaired hl7 couple of times no luck. i used have of these but empty now any clue on how them back? need un install , re install hl7? woudn't on kill me? please advice.   thanks, l     thanks answers. un installed hl7 , re installed , see pipelines now.   rohit - have had enough time have tried approach. had few things done had find way working re installed again. approach more professional. experience how can re produce scenario not see pipelines , use approach see how , happens. learn things doing them. manjunath - can please elaborate idea? see pipelines project in solution? add key.snk file our company.btahl7v2xcommon project projects...

How to Create a Property Editor for my custom control (a Silverlight 2 control).

hi, i used create property editors wpf custom control. when work on silverlight 2, tried same implementation. but failed. wonder right approach create property editors silverlight 2 controls. thanks. our goal provide more powerful extensibility model possible in blend 3, , team working on - wpf , silverlight. there lot of unknowns here at point, , hence difficult provide guidance on timeframe. however, expect minor changes extensibility apis @ minimum, though trying hard not change much. currently, don't support silverlight extensibility. thanks, unni Expression  >  Expression Blend + SketchFlow

Referring custom wsdl in webservice

the scenario this:- i have webmethod in webservice say public  myixmlserializableclass intraylistmethod( myixmlserializableclass inputclass) so, webmethod accepts input httpwebrequest in ixmlserializable class object , returns instance. the readxml , writexml of class works fine. now validating request , response, have created mycustom.wsdl defines 2 schemas , rest of content in wsdl same tot of auto-generated one. however, when i run service,i dont see soap request response signature/structure in browser. browser shows message- " the following operations supported. formal definition, please review service description . "   how do i check , verify if request response structure validated against schemas defined in our mycustom.wsdl ?   to note here, i`m referring custom wsdl in webservice by giving attribute  [ webservicebinding (name= "mybinding" , location= "app_data/mycustom.wsdl" )] on service class.   and giving attribute ...

Creating Restful webservice in C# in VS 2010

hi,  i want develop webservice returns xml, restful webservice in c# using vs 2010 unable find tutorial on , please send me link how consume without using proxy. thanks the easiest approach using asp.net mvc: restful services asp.net mvc build restful api , website using same asp.net mvc code depending on complexity, simple http handler may sufficient. Visual Studio Languages  ,  .NET Framework  >  Visual C#

C# - How to change a button's background image with code?

right i'm trying make simple program, count number of "connected devices" (basically amount of clicked buttons), changes background image of button clicked , display new total clicked buttons. here's code: namespace devicestorage { public partial class form1 : form { int totaldevices = 0; public form1() { initializecomponent(); } private void adddevice(object sender, eventargs e) { try { button clickedbtn = sender button; if (clickedbtn.backgroundimage == properties.resources.adddevice) { clickedbtn.backgroundimage = properties.resources.removedevice; totaldevices++; } else if (clickedbtn.backgroundimage == properties.resources.removedevice) { clickedbtn.backgroundimage = properties.resources.adddevice; ...

Arranging text into particular format

hi, have text in order not useful me. want arrange particular format before add string builder , write on csv file. text get. want arrange in "tab" seperated , in 1 straight line. when add string builder. output has particular order. first comes title fun sniper game, second text in third line. fourth comes date in first line after - lastly comes author before - in first line, , second part - after date. "lee marvin - july 7, 2013 - asus nexus 7 version 1.5.3 fun sniper game fun, challenging, simple layout make easy jump in , play whenever want to. done.  " output: fun sniper game fun, challenging, simple layout make easy jump in , play whenever want to. done. july 7, 2013 lee marvin asus nexus 7 version 1.5.3 thanks problem has been solved this. string s = element.innertext;                         string [] words = s.split('\r');            ...