I have problem in rounding the double value from 1.5 to 1.50. However I have tried different ways converting to decimal, Integer and also string.Format, still I gettting 1.5 instead of 1.50.
Variable will have value as 1.5 and expected output will expect 1.50 not 1.5. I am not able to get 1.50 as value.
i want to roundup the total salary amount of employee..e.g if employee salary is 1234.56 then it should be 1235and if 1234.34 then 1233value should be incremented when the right hand value i.e after decimal value is 50 and it should be decremented when it less then 50
I have 2 time columns and a difference column. All of these has a varchar datatype. I converted the time in h.mm format. Now I need to round it off to the nearest quarter/half hour(h:15 = h.25, h.30 = h.50, h.45 = h.75) after calculating the difference between the two time values.
I have a few MaskedEditExtender controls on my page. QA has just notified me that on certain occasions, the values entered into the fields are being rounded down.
[code]....
When focus is set to the field, you get this: $ __,___.__ the cursor is to the left of the period and and you can enter any amount and if you type "period" it will move to the cents section. When tested, if you enter 55555 and tab out to another field everything is fine, but the field looks like this.. $ 55,555.__ now any posts that occur change this example to $ 50,000.00 does anyone know why and how i can fix this?
I have a GridView sourced by a SQL Server stored procedure with several databound fields, including a money column for item values. My stored proc returns the data through a SELECT and everything looks good. The stored proc also has a single output parameter that sums the total value of the displayed data, and this value is displayed in a label above the GridView.
I need one common rounding function in asp.net and I will use that function in Java script, Code behind (.vb file) and SQL server (Stored Procedure). Is there any possible solutions in this requirement?
I'm using linq to sql,everything seems to be working fine except one thing,I'm showing any mapped float fields from my db tables as "Double?" instead of "Double", and when binding to a datagrid, any of those "Double?"fields don't show.If I iterate through the items and spit out the property,the float value is indeed there and properly returned.
Since both are acceptable by HTML as well as languages like ASP.NET and PHP when using attributes or strings, why is it that some people use single quotes and double quotes interchangeably? It is my understanding that it is syntactically correct to use double quotes where possible, single when you need to embed a double quote for inline logic. Is there something I am missing? For examples: HTML
I have all my errors handling up and going but now I wish to change the error messages that they display for empty integers.I have been going through my codes but I can't to change that. For now, the error message for all numeric values are "A values is required" and I wish to change it to "<TextBoxName> cannot be empty".
I am trying to find two lots of expressions on a page and extract them. I currently can do one and extract the text from between certain tags with the following code:
Regex r = new Regex("<tag>([^<]*)</tag>");
but im trying to do two lots... for example...:
Regex r = new Regex("<tag>([^<]*)</tag>" + "<ad ahs="e">([^<]*)<ad ahs=h>");
If I am using AD authentication for my internal ASP.NET app how can I enable that that same AD User is authenticating on the internal web service that is being called by that internal ASP.NET application?
I need to send 4 double values to a webservice. Which is the best way to send. Array or Arraylist. I read some where that Arraylist has issues to serialize.I am using the following code on the client .aspx page to construct the arraylist.
Code:
ArrayList CapPlan = new ArrayList(); CapPlan .Add(Convert.ToDouble(TextBox1.Text)); CapPlan .Add(Convert.ToDouble(TextBox2.Text)); CapPlan .Add(Convert.ToDouble(TextBox3.Text)); CapPlan .Add(Convert.ToDouble(TextBox4.Text)); After this arraylist CapPlan is constructed, what would be the syntax to send this arraylist to a webmethod? DataSet dataSetCapitalPlan = clientProxyobject.CapStock(CapPlan.ToArray(double));
And on the webservice side how can I receive this arraylist that was sent? [WebMethod] public DataSet CapStock(string As_of_Date, Array CapPlan) { }
I am using SQL Server 2008 Web Edition and it seems my SQL queries are automagically having the double quotes replaced with ' + CHAR(34) + '. I am trying to pin down why this is happening, I am using Delphi with ASP.NET and using the ADO.NET object for the SQL.
I am taking over the code of another person. This person is allowing double clicks to occur on RadGrids (Telerik Control).. I personally hate the idea of allowing double clicks in a web application. I tihnk it is not natural.
Is there any good argument against double clicks in web apps? Or am I wrong and double clicks in web apps are good for some reason?
How would I put quotes on the DataLink control so it outputs " computerfolder" (i put a space in there between the \ so it would show up) instead of just\computerfolder it generates a link but if the folder name has a space it in the link breaks so i am trying to put double quotes on it so it creates a link even if there are spaces.
I'm working in a Repeater over blog posts and I'm displaying a ShareThis JavaScript piece at the bottom. The Title and URL of the post are being sent to JS. In one test case, the title of a post has a single quote, e.g. Mark's test post Since I need to preserve that single quote when being sent to ShareThis, I need to wrap that JavaScript string in double quotes, however the string is being bound via a Literal and I cannot wrap the literal in double quotes: This is want I want but DOES NOT WORK: