Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

Member 2321293

@Member 2321293
About
Posts
12
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • jfreechar tooltip not able to show
    M Member 2321293

    I am generating barchart using jFreeChart and i need to make a customize content tooltip for the bar and here is my customized function on StandardCategoryToolTipGenerator and the problem right now is.. when mouse point to the bar the tooltip does not show

    class MyTooltipGenerator extends StandardCategoryToolTipGenerator
    {

    	@Override
    	public String generateToolTip(CategoryDataset dataset, int series, int category)
    	{
    		
    		return "generateToolTip";
    	}
    
    	@Override
    	public String generateLabelString(CategoryDataset dataset, int row, int col)
    	{
    		return dataset.getColumnKey(col) + " " + dataset.getValue(row, col);
    	}
    
    };
    

    Both StandardCategoryToolTipGenerator and BarRender are customized as below:

    MyTooltipGenerator std = new MyTooltipGenerator();
    BarRenderer renderer = new MyBarRenderer();

    when generating the content of the tooltip i make is as below:

            BarRenderer rr = (BarRenderer) plot.getRenderer();
    		std.**generateLabelString**(dataset, row, column);
    		std.**generateToolTip**(dataset, row, column);
    		rr.setBaseToolTipGenerator(std);
    		plot.setRenderer(rr);
    

    Problem now is the tooltip are NOT able to show.. is the tooltip required certain FORMAT? cause my plan is make the tooltip to be look like: Quaitity: 50 Percetage: 80% when the mouse point to the bar and it cannot display like above

    Java help question

  • wcf and (400) Bad Request
    M Member 2321293

    hi, i am facing a same problem can you send me a sample of ur server's config file and also the client's config file? i am using "basicHttp" is this course the problem? thank you

    WCF and WF wcf csharp wpf sysadmin help

  • how to write xml? [modified]
    M Member 2321293

    Hi, Is anyone can tell me how to write a xml file that can return me a result look like this: <?xml version="1.0"?> <Items> <Appointment Start="07/12/2008 11:05:00" End="07/12/2008 14:30:00" .../> <Appointment Start="07/14/2008 08:15:00" End="07/16/2008 16:40:00" .../> </Items> Above is my expected look of my xml file. These data <Appointment start=".... /> are set EXACTLY THE SAME into a dataset and the table name is "xmldata" And before it is generated I try to loop this dataset and hope to generate a xml look like above. but i alway fail to get a correct format. its comes like this: <?xml version="1.0" standalone="yes"?> <Items> <xmldata> <Data>Appointment Start='07/12/2008 11:05:00' End='07/12/2008 14:30:00' Description='Rent this car ' Label='2' Location='city' ResourceId='1' Status='3' Subject='Mr.Brown' </Data> </xmldata> <xmldata> <Data>Appointment Start='07/14/2008 08:15:00' End='07/16/2008 16:40:00' Description='Scheduled repair of this car' Label='4' Location='Service Center' ResourceId='1' Status='2' Subject='Repair' </Data> </xmldata> </Items> XML above by using: ldt_ds.Tables["xmldata"].WriteXml(sourcePath2, false); Hope someone can help on this. Thank you. by CS Tan

    modified on Saturday, November 7, 2009 12:06 PM

    C# xml help tutorial question announcement

  • [Datamember] WCF
    M Member 2321293

    Hi, This is real great and helpful. Now i know how to use the Get and Set in WCF. The sample you provided really helpful and solve my problem and i learn it also. Really Thanks to you. Thank You~! By CSTan

    WCF and WF csharp wcf business help tutorial

  • [Datamember] WCF
    M Member 2321293

    Hi, The provided sample, i already read and try before. and i also learn the WCF from this sample also. but this sample does not shown me how to use the data member but only the class function only. all i needed is only how to use the Get and Set only. like normal reference: CountryClass objCountryClass = new CountryClass(); to Get ls_CountryCode = objCountryCodeClass.CountryCode; to Set objCountryCodeClass.CountryCode = "Sweden"; In WCF environment. i really don't know how to use it. Please provide a direct sample.... By CSTan

    WCF and WF csharp wcf business help tutorial

  • [Datamember] WCF
    M Member 2321293

    Hi, OK, Now i public all my Variable example: public string _CountryCode; [DataMember] public string CountryCode { get { return _CountryCode; } set { _CountryCode= value; } } ibllCountry countryProxy = CountryFactory.CreateChannel(); to get the Length of my Country code i can get it like that : countryProxy.GetLengthCountryCode(); But how to SET country Code and GET country Code ? Please guide. I still don't know how to use Get and Set, Please to provide more clear answer.

    WCF and WF csharp wcf business help tutorial

  • [Datamember] WCF
    M Member 2321293

    Hi All, i Designed my project in 3 tier and WCF method but i don't know how to use the data member. while in WCF... below are sample: (Business logic layer) namespace mySample.BLL { [DataContract] public class bllCountry : ibllCountry private string _CountryCode; [DataMember] public string CountryCode { get { return _CountryCode; } set { _CountryCode = value; } } } (interface layer) namespace mySample.SVR { [ServiceContract] public interface ibllCountry { [OperationContract] string GetCountryCode(); [OperationContract] int GetLengthCode(); [OperationContract] int GetLengthName(); } } (GUI layer) in the class in order to get the method from BLL i write ChannelFactory CountryFactory = new ChannelFactory("Country"); ibllCountry countryProxy = CountryFactory.CreateChannel(); txtCountryCode.MaxLength = countryProxy.GetLengthCode(); in normal class reference, i know is written(get and set) bllCountry CountryObj = new bllCountry(); txtCountryCode.text = CountryObj._CountryCode; or CountryObj._CountryCode = txtCountryCode.text; But how to i SET and GET the value from Datamember in WCF way? Please private a help or sample. Thank you. By CSTan

    WCF and WF csharp wcf business help tutorial

  • WCF,3Tier
    M Member 2321293

    hi, i successful to create my 3 tier with the WCF method.(3 tier in coding and physical structure) my project i divided into several layers. myWCF(host), myClient(GUI/exe), myClientBz(Business Logic), myDAL(Data Access Layer), myClientInterfaces(interface) Error, if call more than 1 host. My Business Logic will more than 1 class. And i intending to make interface to myDAL(data access layer) setup config file in myWCF and myClient Due to text limitation i only copy out the important part. myHost config file: due to "<,>" allow not allow there, i change to "()" (services) (service behaviorConfiguration="metadataBehavior" name="myClientBz.myMessager") (endpoint address="myMessagerService" binding="basicHttpBinding" bindingConfiguration="" name="basicHttp" contract="myClientInterfaces.imyMessager" /) (endpoint binding="mexHttpBinding" bindingConfiguration="" name="metadataExchange" contract="IMetadataExchange" /) (host) (baseAddresses) (add baseAddress="http://cspc/myMessager" /) (/baseAddresses) (/host) (/service) (/services) myClient config file (i created by running the host exe, same time add service references at myClient's reference) (client) (endpoint address="http://cspc/myMessager/myMessagerService" binding="basicHttpBinding" bindingConfiguration="basicHttp" contract="myMessagerService.imyMessager" name="basicHttp" /> (/client) Begin host: using (ServiceHost host = new ServiceHost(typeof(myMessager))) { host.Open(); Console.ReadLine(); host.Close(); } to test my exe are ok, i write form1 in myClient and test in other pc myMessagerService.imyMessager proxy = new myClient.myMessagerService.imyMessagerClient(); string result = proxy.SendMessage(); MessageBox.Show(result, "xx"); it work fine. it return me a message that i write in myClient If myClientBz required extra class, what needed in next? Required to add myCaculation, myInformation into myClientBz. Same i need to add interface for myCaculation, myInformation into myClientInterfaces right? My project going to Touch on SQL DataBase. which mean i required to add interface and config file(myDAL) again? or is depend how i write the coding that the way i communicate with my SQL DB? Please give advise or sample. by memeber 2321293 CSTan

    WCF and WF database wcf csharp wpf business

  • WCF,3Tier
    M Member 2321293

    hi, i successful to create my 3 tier with the WCF method.(3 tier in coding and physical structure) my project i divided into several layers. myWCF(host), myClient(GUI/exe), myClientBz(Business Logic), myDAL(Data Access Layer), myClientInterfaces(interface) Error, if call more than 1 host. My Business Logic will more than 1 class. And i intending to make interface to myDAL(data access layer) setup config file in myWCF and myClient Due to text limitation i only copy out the important part. myHost config file: due to "<,>" allow not allow there, i change to "()" (services) (service behaviorConfiguration="metadataBehavior" name="myClientBz.myMessager") (endpoint address="myMessagerService" binding="basicHttpBinding" bindingConfiguration="" name="basicHttp" contract="myClientInterfaces.imyMessager" /) (endpoint binding="mexHttpBinding" bindingConfiguration="" name="metadataExchange" contract="IMetadataExchange" /) (host) (baseAddresses) (add baseAddress="http://cspc/myMessager" /) (/baseAddresses) (/host) (/service) (/services) myClient config file (i created by running the host exe, same time add service references at myClient's reference) (client) (endpoint address="http://cspc/myMessager/myMessagerService" binding="basicHttpBinding" bindingConfiguration="basicHttp" contract="myMessagerService.imyMessager" name="basicHttp" /> (/client) Begin host: using (ServiceHost host = new ServiceHost(typeof(myMessager))) { host.Open(); Console.ReadLine(); host.Close(); } to test my exe are ok, i write form1 in myClient and test in other pc myMessagerService.imyMessager proxy = new myClient.myMessagerService.imyMessagerClient(); string result = proxy.SendMessage(); MessageBox.Show(result, "xx"); it work fine. it return me a message that i write in myClient If myClientBz required extra class, what needed in next? Required to add myCaculation, myInformation into myClientBz. Same i need to add interface for myCaculation, myInformation into myClientInterfaces right? My project going to Touch on SQL DataBase. which mean i required to add interface and config file(myDAL) again? or is depend how i write the coding that the way i communicate with my SQL DB? Please give advise or sample. by memeber 2321293 CSTan

    C# database wcf csharp wpf business

  • How to set 3 tier Architecture in physically.(harware)
    M Member 2321293

    Hi, After get your reply i try to come out a simple things. exe is a screen contain a button. if i click on the button a message should be return from the layer call MyMessage. i try to put MyMessage in IIS and MyInterface is the layer to communicated within this 2 layers. my sample program MyWCF(exe), MyMessage(BLL), MyInterface(WCF) I still fail. maybe is due to IIS setting or the post problem or maybe is the endpoint problem. i alway get a error message like bellow. {"You have tried to create a channel to a service that does not support .Net Framing. It is possible that you are encountering an HTTP endpoint."} and The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. My setting of my config file By the way, is this idea help in the speed performance? user, App.Server and DB.Server

    modified on Sunday, September 13, 2009 11:12 PM

    C# database sysadmin question com hardware

  • How to set 3 tier Architecture in physically.(harware)
    M Member 2321293

    So i need to come out a new Layer which is call service layer(WCF)? Can give me a clear direction what is the WCF structure look like? Thank you,

    C# database sysadmin question com hardware

  • How to set 3 tier Architecture in physically.(harware)
    M Member 2321293

    Hi, I have a project in 3 tier Architecture structure. There are GUI (presentation layer), BLL (Business logic layer) and DAL (Data Access Layer). Based my understanding dll always stick to exe in order to run my program. 3 tier is good in development management and enhancement. Here is my question is it is any way to make my “dll” store application server (computer / App server) and user only keep the “exe” e.g. hardware “–“ (link) DB (Database server) – DLL(Application server, which is store the dll only) – EXE (multiple user, which is store exe only) I used on Assembly Configuration Files. But it’s only help on probing those dll in subsidiary folder only. And it is FAIL probing to network path. COM+ I added all dll in server application. It can be work if exe is running stand alone. But It is fail while user (user’s COM+ added the dll for his/her computer but point to server dll folder) run the exe in stand alone. It is possible the exe can be run in a pc which is can refer the dll to application server? Purposely to separate my “dll” and “exe” is easy for me to do updating (Business logic changes only) hence I no need to update all users versions pc by pc. Please give me a solution. Thank you.

    C# database sysadmin question com hardware
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups