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.
I have a objectdatasource control with a field of date and time and I was wanting to know how you format the date to uk format with the select statement through my objectdatasource. And what type of integer is bigint in SQL?
var emailReg = /^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/;
This is my regular expression . it accepts the email such as name.name_@__domain.in How can i format my regular expression which accepts only a valid email format only. I need the email validation for above example.it is not a duplicate one.
I have a text field that users enter information into a database (SQL Server). They are entering as little as a few sentances to multiple paragraphs. I can successfully display the data on my webpage, but the text field is not formatted very nicely. The output is all smashed together like one big paragraph. Ironically, when I also display the text as a tool tip it outputs as multiple paragraphs like it was entered. How can I format the output in the datalist to create a more readable text field? My datalist field is as follows:
I am trying to create reports in my asp.net application. I using Microsoft Visual Web Developer 2008 Express. I am trying to display the reports using the Report Viewer (local mode - no report server).
I originally created a lot of reports using Report Builder 2 with the intent of using Report Viewer (remote mode - with a report server). The reports that I created are in rdl format and in order to display the reports using the Report Viewer in local mode, the reports need to be in rdlc mode - (the C stands for client processing).
i would like to display phone number fields on a website as (123) 456-7890 but have the system see it as 1234657890 when calling myTextBox.Text i am thinking this would require overriding the text property and cleaning it up in the overridden property but wanted to run this past the community.
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.
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?