I have a regular expression for phone numbers as follows:
^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$
I have a mask on the phone number textbox in the following format: (___)___-____
How can I modify the regular expression so that it accommodates the mask?
Hi All
I am working with win32 API and my language of choice is pure C and no C++.
Assume I have a project A that is present in Solution S in visual studio
I want to add another project B(which has some common utility functions) in to S
Now I want to reference Project B in Project A... So that I can use those utility functions from Project B…
Is there a way to identify the timestamp when an object(table/view/stored proc...) was modified ?
there's a refdate in sysobjects but it's always the same as crdate atleast in my case and i know that alter view/alter table/alter proc commands have been run many times post creation
HI all,
Firebug is not displaying Complete js file to debug. I m unable to place break points at particular line in js file, half of the file content is display, half of file content is not displaying. please help me what to do to place break points at particular line which can visible line.that js file is gwt compiler generated file.
I am…
Hi Guys,
Eg:-- When I type "A" all the elements starting with A should be displayed... If "B" then elements with B....etc)
Ex:
<asp:DropDownList ID="ddlLocation" style="width:140px" runat="server">
<asp:ListItem Value="1" >India</asp:ListItem>
<asp:ListItem Value="2" >India -…
Initial Research
I am aware of using .css() to get and set the CSS rules of a particular element. I have seen a website with this CSS:
body, table td, select {
font-family: Arial Unicode MS, Arial, sans-serif;
font-size: small;
}
I never liked Arial Unicode as a font. Well, that was my personal feel. So, I…
in my previous question :-How to Setup RMI Server under(NAT/ISP)
Now,i m able to start my RMI server by Installing apache Tomcat 6.0 server.
i have also installed servlet programs into apache Tomcat server in order to enable HTTP tunneling.
my servlet codes:-
(1) [SimplifiedServletHandler.java][2]
…
i'm using fckeditor in php.problem in IE6.when i bold a word, working fine. but when i remove bold, it doesnt work. not only bold, and also italics, underline also.
hey all,
I have to make a SMS sending application in .NET which uses a connected CDMA based Windows mobile 6.1 device to send sms. The problem is I have never worked on smartphone app development so don't have any idea about how should i go about it. Couldn't find anything useful on SO or elsewhere, so please guide me…
Hello All,
I have a page www.senderdomain.com/sender.aspx, from which i need to write a string to another page in other domain www.receiverdomain.com/receiver.aspx
In sender.aspx i have written
Response.Write("Hello");
Response.Redirect(Request.UrlReferrer.ToString());
It gets redirected to respective…
I am trying to design a "collection of items" resource. I need to support the following operations:
Create the collection
Remove the collection
Add a single item to the collection
Add multiple items to the collection
Remove a single item from the collection
Remove multiple items from the collection
This…
Here is my code to expand and collapse all the users on the grid..
But problem is without clicking expand buttong if I open any user..its opening fyn,,
but if I click again on the expand button happening the opened subgrid is closing and closing one is opening...
here is my code can anybody tell me what's…
Please this is not a duplicate thread do consider this one..thanks..
function loadAllAccounts() {
$('#Grid tr[role="row"] td a').each(function(row) {
if ($('#CGrid tr[role="row"] td.hasClass(sgcollapsed) a')) {
$(this).click();
}
else if…
Is there any guideline on how to use Visual Studio 2008 unit test development? I am developing a n-tier web application using entity framework. My problem is to create Unit Test for the methods which INSERT or UPDATE to the database.
Hi Geeks,
We are having serious MySQL(InnoDB) performance issues at a moment when we do:
(10-20) insertions on TABLE1
(10-20) updates on TABLE2
Note: Both above operations happens within fraction of a second. And this occurs every few (10-15) minutes.
And all online users (approx 400-600) doing read…
I have a process "x" which uses "system" C function to start ntpd daemon. I observed that ntpd are passed the open file descriptors of "x". ntpd holds on to the file descriptors even after original file is deleted. for ex: Some log files used by "x" are rotated out after sometime, but "ntpd" has file…
I really have a weird problem in adding two numbers.
Here is my code, in the first controller everything is working fine,
but in the second controller instead of 0 if I add 10, the output is completely weird
Here is html code
<div ng-app="">
<div ng-controller="Controller1">
…
I've a Core Data application. In the producer thread, I pull data from a web service and store it in my object and call save.
My consumer object is a table view controller that displays the same.
However, the app crashes and I get
NSFetchedResultsController Error: expected to find object …
hi,
Hi I need to append the dropdownlist box with certain values to the jquery grid column,
that is default dropdownlist for perticular column....
I am using this type of jQuery grid
http://www.trirand.net/demoaspnetmvc.aspx
can anyone help me out..
Thanks
/*
* Each physical page in the system has a struct page associated with
* it to keep track of whatever it is we are using the page for at the
* moment. Note that we have no way to track which tasks are using
* a page, though if it is a pagecache page, rmap structures can tell us
* who…
hey all,
I have to make a SMS sending application in .NET, which uses the attached Blackberry handset(blackberry tour 9630 to be precise) to send SMS. I have never worked on smartphone application development, so want help in doing this. I searched SO for an answer and found one question,…
Is it possible to modify the height of detail band dynamically in jasper report? Because in my application i need to create pdf document.I have used one main document inside detail band of that main document i used one subreport. Sub report will take java bean as data source. This java…