|
not a regex,
but how bout this
private bool isValid(string str)
{
if(str == null || str == string.Empty) return false;
foreach(char ch in str)
{
if(!Char.IsNumber()) return false;
}
return true;
}
my2c
g00fy
|
|
|
|
|
Just a note: I've had some issues using \d on some regex interpreters. If you run into problems with it, use [0-1]* (or + , depending on your purposes).
Michael Flanakin
Web Log
|
|
|
|
|
if you are using regularexpressionvalidator control, this control doesn't check against your regex if it's empty. This behavior works ok for you, you would only need to add the validation of space to your reg expression.
daniero
|
|
|
|
|
I have an (old) web-project in classic ASP involving a file upload form. No problems, except when I try to update - all I've done is change a few dates to 2006, and am now getting "write permission denied" errors. Yes, IIS has "write" enabled on the folders, but looking in Windows Explorer "Properties" window it insists on showing it as "read only" - I untick it, but it just re-sets itself. The only other change since I created the oroginal app is the installation of ASP.NET on same server.... Any ideas, anyone?
On a related matter, I keep reading that (in ASP.NET anyway) when performing file uploads it is "very imprtant that the server form have ENCTYPE="Multipart/Form-Data" set. Really? Why? I've never found this to be so. I've uploaded Word docs, image files, PDF's - all sorts without bothering about this.... (in ASP.NET) Comments, anyone?
cheers - and a happy new year to all!
Phil
|
|
|
|
|
There doesn't exist anything as a read-only folder. What is shown in the properties of the folder is something that should represent the read-only state of the files in the folder, but that doesn't work very well either.
The problem is probably due to permissions. Check in the properties of the web site what user account is used for anonymous access, this is the account used for running asp code. Installing ASP.NET might have changed it to a different account. Then check the permissions for the folder, and make sure that the account used has write permission.
When uploading files, the form has to have the correct enctype, or it won't work. ASP.NET however sets the correct enctype on the form when you put an upload field in it.
---
b { font-weight: normal; }
|
|
|
|
|
can u get me the code for uploading files using asp?
|
|
|
|
|
Whom did you ask?
---
b { font-weight: normal; }
|
|
|
|
|
Dear All,
I would like to have a solution to this problem.
When accessing web page from local server (Windows 2000xp, Apache2 ,php5 and Mysql database)
it is giving "HTTP/1.1 403 Forbidden"
Web page will retrieve data from Mysql database using PHP.
What is the problem ? How to solve it.
Please help me giving solution.
rpkumar
|
|
|
|
|
Dear All,
I would like to have a solution to this problem.
|
|
|
|
|
hi all,
i have a table called poll.in my design page i am selecting usernumber (primarykey)from dropdownlist.when i am selecting usernumber i want to fetch the accessID from same table.
same usernumber having more then one accessid. i want to group this accessid depending on usernumber.(thts mean 2 grouping for same table)
usernumber is the first grouping
accessid is the second grouping
i have to display the count value only for accessid
pls help me out from this problem.
thanks in advance
rs_net
rs_net
|
|
|
|
|
hi, sorry for delay
Its basically sql Qn. so u should put it up in sql message board.
secondly how its related with Crystal reports.
Well, What i understood, You need query design tips.
its inbuilt in Crystal reports.
plz troubleshoot yourself.
or submit it clearly.
Any systematic work reflects its significance for a long time, Though I m not totally against "The Prototyping".So let's discuss in depth...
|
|
|
|
|
|
Perhaps you should explain what it's for?
I visited the page, and one could expect that the first thing on the page would be an explanation of what the progam does, but not so...
Well, I've been around for a while, so I can make a fairly good guess what the program does, but I don't think that everyone can. And I don't think that one should have to visit the page and read everything on it before getting a clue...
---
b { font-weight: normal; }
|
|
|
|
|
I totally agree with you, and I'm also getting a bit tired of people posting "endorsements" for their own stuff (i.e. the guy that kept posting about the free vb.net videos).
Brian Van Beek
Inside this room, all of my dreams become realities, and some of my realities become dreams. -Willy Wonka
Read my Blog, I know you want to... [^]
|
|
|
|
|
|
I have asp.net Web control MyWebControl and Component MyComponent.
MyWebControl references on MyComponent, it looks like
class MyWebControl : WebControl
{
MyComponent _component;
MyComponent component
{
get {return _component;}
set {_component = value;}
}
...
}
I want this reference to be saved in InitializeComponents section.
(i want the following code to be generated )
MyComponent = new MyComponent();
...MyWebControl1.component = MyComponent1; - !!!
By default "component" value of MyWebControl
saved in aspx page text.
I can use DesignerSerializer attribute and generate
code directly, but I suppose there must be the easiest way.
Alex Ilyin
|
|
|
|
|
Apologies for cross-posting this question from the Visual C++ forum -- I thought there might be someone here who would be able to help and I'm about at the end of my rope at the moment.
I am getting a crash inside InternetConnect and I can't for the life of me figure out why. It seems only to happen when I pass INTERNET_SERVICE_FTP -- I have a test program which does nothing but create a CInternetSession, then call GetHttpConnection, then call GetFtpConnection, passing valid IP addresses to both functions. GetHttpConnection returns successfully. GetFtpConnection crashes with an illegal memory access (and an overwritten stack) after the CFtpConnection constructor calls InternetConnect. Is there anything I can do to repair this short of reinstalling Windows? (The install is Windows 2000 sp 4.)
Thanks and again, apologies if you are rereading this question from VC++.
|
|
|
|
|
Hello Dears
I have developed a Web Application, which deals with patient registration with in the Hospital circle (Intranet Application)
The Problem is:
When doing the Registration the Name and Address should be checked to avoid the duplication.
First time peoples are typing the name like (Eg:Jayalakshmi)
When the same person comes again they are going to registration and typing name like (Eg:Jayalaksmi)
Note:
#1 time : Jayalakshmi
#2 time : Jayalaksmi (Here the H is missing)
In this situation the system need to intimate them that is the person may be already registered.....
So I need Query that produce the exact result
I believe I have given a clear Question.if not don't hesitate it
N.Rajakumar B.E.,
Application Developer,
|
|
|
|
|
If you use Oracle, it supports a SOUNDEX function which can help you.
I know of no elegant solutions for MS SQL Server that performs the same functionality. In this case, you will have to build an alternative index of the information in your database and use something like Edit Distance or SOUNDEX/PHONIX to get the last names "similar enough" to the one in the existing field.
To make it interactive, you'll most likely need to use some form of background information fetching, like the so-called "AJAX" technology.
Hope that this can help you.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
THANKS DEAR I GOT SOLUTION
N.Rajakumar B.E.,
Application Developer,
|
|
|
|
|
Hi!
I have a form made in CGI script, which used to do html page creation, email sending at a time.
Now i have introduce Preview Data facility, which will open shtml file with form data. so that we can have a look into the matter and if needed we can edit the changes. but its not a easy process. so I would like to put that preview part within the CGI file so that user don't have to back to the browser and do necessary changes and again press prewiew data to see the new modification. so i want to such process that user can preview data on upper side of the same Form page, in below section form will be there, so that they can edit the data and press preview data and modified data inform of page will display everytime on the top portion of the Form. there will no movement of the window and no new window will open when user press preview data button.
For that i have written following code of preiew button submit action. but the problem is everytime new window is opening but CGI file is not showing on bottom pane of the frame.
<br />
<frameset rows="*,*"><br />
<frame name="top" src="../oildatfile/preview.shtml"><br />
<frame name="bottom" src="http://www.kshitij.com/cgi-bin/oil1.cgi"><br />
<noframes><br />
<body><br />
<br />
</body><br />
</noframes><br />
</frameset><br />
can any one help me with this protion of the project?
Thanks in advance.
Sujata.
|
|
|
|
|
How do you open the preview page from the button? You have to specify where you want it to be opened.
---
b { font-weight: normal; }
|
|
|
|
|
I want to open preview on top of the same CGI page from where preview is being executed. it can be on frame also. means on the top frame preview and on the bottom frame cgi file will be displayed. every time user press on preview button on the top frame they can observe the changes which have been made by preview.
hope i am clear enough.
by the way what is this mean? it is everytime when you reply to someone query.
<br />
b { font-weight: normal; }<br />
Sujata.
|
|
|
|
|
That didn't make it any clearer. All I really know is that you have more than one page, and you have a preview button. I assume that the preview button opens a preview page somewhere, but I don't know where the button is, where the page should be opened, or what the button does to open the page. That's why I asked about it in my previous post.
The css code is what I have chosen to put in my signature.
---
b { font-weight: normal; }
|
|
|
|
|
Ok!
I am clarifying more one by one.
there is one form in CGI, on the bottom of the form there is two button Send email and preview data.
send email do send email, making html page and save the form data.
preview data open a shtml page with form data to see only.
hope this much is clear.
now i want to something by that people can see the preview on the top of the new window and at a time there will be that form with last written data, if neede user can change the data and see the effect there only. if everthing is allright they can press the send email to finish the job, that's all.
but the problem , if i use frame page in preview data button press, on the upper frame shtml page with current data is displaying but that cgi file is not displaying at all on the bottom frame. I just only use frame so that user can see that shtml file and cgi file together on first shot they don't have to scroll down to find out the form to make changes or send email. The preview page has lots of data because form has many field and lots of data.
that's what i am trying to say. hope now it is clear to you.;)
Sujata.
|
|
|
|