Search

You searched for the word(s): userid:253192

Matching Posts

  • Re: decimal or double multiplication ??

    Thanks, I figured it out !
    Posted to C# (Forum) by yanywg on 3/2/2004
  • Re: decimal or double multiplication ??

    Thank you very much ! My question is: if I have a piece of value passed through a method call. The type of this value could be string or double. How could I convert it to decimal ? I tried, but no success. Is there a way we can do it ? Thanks, YL
    Posted to C# (Forum) by yanywg on 3/2/2004
  • Re: decimal or double multiplication ??

    I figured out that I had to add 'M' as suffix to the decimal so the compiler could recognize it as DECIMAL instead of DOUBLE, like this: 0.05m. odd! But the issue still there, if I have a variable to hold the decimal number, what can I do ? for exampe: the variable name is Rate, can I do this : Ratem ? NO !!!.. what can I do ? Please help !!
    Posted to C# (Forum) by yanywg on 2/27/2004
  • decimal or double multiplication ??

    I have a problem as follows : ---code decimal Number1; decimal Number2; Number1 = 6.43; Number2 = Number1 * 0.05; --end of code I got the build error : Operator '*' cannot be applied to operands of type 'decimal' and 'double'; please help ! YL
    Posted to C# (Forum) by yanywg on 2/27/2004
  • web service error, please help !!

    I tried to created a web service ( which is converted from a assembly) as following : --- code using System; using System.Data.SqlClient; using System.Collections; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Web; using System.Web.Services; namespace DataAccessWS { /// <summary> /// Summary description for DbObject. /// </summary> public class DbObject : System.Web.Services.WebService { public DbObject() { //CODEGEN: This call is required by the
    Posted to XML Web Services (Forum) by yanywg on 2/17/2004
  • Turn the DAAB to a web Service ..

    Hi all: I was asked to turn the Database Access Application Block into a web service. I had some problems with that. What i did was : Created an Web service on VS.NET, on asmx file (which i pasted the DAAB), add [webMethod] to the begining of each method with MessageName as one of the property, take off the Static and sealed, etc., add the needed references and namespaces. But I met problems as follows: ---error code Server Error in '/DAABWS' Application. ----------------------------------------
    Posted to Microsoft Application Blocks (Forum) by yanywg on 2/17/2004
  • how can I only validate certain controls on the form ?

    I have two buttons on a from, I want one button controls the validation of some controls on the form, and the other botton controls the rest controls' validations. How can I do that ? Thanks JL
    Posted to Web Forms (Forum) by yanywg on 1/30/2004
  • how to set values to a dropdownlist that is nested within a DataList ?

    Hi friends: I have the following code: --code begin DropDownList IPDropdownlist; IPDropdownlist = (DropDownList)(HardwareData.FindControl("ddlIPAddress")); IPDropdownlist.Items.Insert(0, new ListItem("", "-1")); IPDropdownlist.Items.Insert(1, new ListItem("-- Add New IP", "-2")); IPDropdownlist.Attributes.Add("onchange", "return NewWindow(this)"); --code end On the above code HardwareData is the DataList control, and ddlIPAddress
    Posted to Data Presentation Controls (Forum) by yanywg on 1/21/2004
  • Re: How can I reference a control from javascript ?

    Can you explain a little more? As I said I want to reference it through Javascript code. Basically what I want to do is to populate a textBox with a date value from a calendar control (which is a pop up window). The TextBox is nested inside a DataList control. Thank you very much ! jl
    Posted to Web Forms (Forum) by yanywg on 1/19/2004
  • How can I reference a control from javascript ?

    Hi all : Usually we use document object to reference a control in the web page, for example : Document.form1.textbox1. But if i want to reference a control (for example, a textbox) that is nested within a Datalist control from Javascript, how I can do that ? I mean, I want to reference it from imbedded Javascript, not from code-behind page. Please help . Thanks, JL
    Posted to Web Forms (Forum) by yanywg on 1/19/2004
Page 1 of 5 (41 items) 1 2 3 4 5 Next >