|
good day again to all....
again i need your help.... on how to validate an asp.net 2003 textbox? that will only accept number values (0-9)...
i have two concerns:
asp.net 2003 textbox validation:
--1.) numeric validation only
--2.) alphanumeric (example : 100.00 / 9-9) ("." / "- ") will only be allowed other characters are not allowed....
sample codes is highly appreciated... or link will do....
thank you very much.....
start a new beginning in every ending; thats what life for......
|
|
|
|
|
I'm not 100% sure I understand what you mean.
You want a text box to only accept number values?
Then simply use a regular expression validator. \d* will match digits only.
-- modified at 5:28 Thursday 21st June, 2007
"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
-Atlas Shrugged, Ayn Rand
|
|
|
|
|
hello moo,
just try to use the Javascript and call the function on onBlur() event
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Sir can you give me a sample or link of your point of view?
start a new beginning in every ending; thats what life for......
|
|
|
|
|
In addition to the above post:
If you want to check while the user inputs data then you have to write some JavaScript that handles this (sorry no sample).
With ASP.NET AJAX it is a bit easier because in the Control Toolkit exists an extender that handles this case out of-the-box.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
thank you... i appreciate you thoughts
start a new beginning in every ending; thats what life for......
|
|
|
|
|
i have a n excel file at server, i need to print that excel file at client side by clicking a button with out opening that file...
is it possible?
plz any one help me plz...
Pradeep Reddy
|
|
|
|
|
You want to print the file client-side without opening it? Well, it has to be downloaded first anyway and unless you know of a way to print an Excel file on your desktop, for instance, without opening it your a bit stuck.
|
|
|
|
|
ok thank u...
Pradeep Reddy
|
|
|
|
|
Hello ,
I have a problem in crystal report page.I used the asp.net 2.0 and sql 2000 tools.Whenever I tried to run crystal report, the default images on the headaer part on the crystal report are not displayed.And specially the export and print images are not worked. Whenever you clicked on export or print images there was error on the page, and the error was:"object doesen't support this action".Actually when I run this project on local machine there was no error and all the images displayed correctly,but when I upload this project on web server and open pages from website the problem was occured.
Please help me to solve this problem.
Thanks.
Prashesh Kachhia
Software Developer
|
|
|
|
|
i am facing a problem in displaying a picture.
i am using an image control .
for displaying the pic , i am doing the following code using the datareader(in the query string , i am sending an id from the previous page(Query string), on the basis of which , i am refining the particular record).
now the code is
imgPicture.ImageUrl = Server.MapPath("photos\" & dr.Item("filepath").ToString)
image control is tying into the table.
Now my question is , Am I writing the correct code or there is some need of rectification.
There is no problem , when i am running the same code on the server.
problem arises when , i check at the client end.
|
|
|
|
|
Nilish wrote: Am I writing the correct code or there is some need of rectification.
Server.MapPath probably gives you the physical URL. You need to provide a URL relative to the application root.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Nilish wrote: Server.MapPath
Use ResolveUrl or ResolveClientUrl
|
|
|
|
|
|
Hi All!!,can you help me what are the things exists in Asp.Net...For example CLR->CommonLanguageRuntime..like this can any one list me?.Is this boring?,if its forgive me..
Hi,Im Razana
|
|
|
|
|
Please don't cross post
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
in Asp.net i am not getting System.Utilities class
|
|
|
|
|
Can you elaborate on your query?
|
|
|
|
|
Have you referenced it?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Well, according to my local MSDN docs there is no System.Utilities class...
|
|
|
|
|
badgrs wrote: System.Utilities class
It looked like very useful classname and hence I was fighting with my 'Visual Studio 2005' for sometime.
|
|
|
|
|
HI all
I am using a data grid in a search page to display the contents from a sql table. Some column names contain underscore which really don't look good on the form. SO i want to change the column names like (Typing_Speed -> Typing speed)
Pl help
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
I would suggest that you had turned off AutoGenerate for columns in the grid and explicitly specified the columns that need to be displayed and data bound. That way, you can achieve this elegantly.
|
|
|
|
|
Thanks for the suggestion sir
I turned off the auto generate column property so its showing nothing when the search button is clicked( the grid is empty).
Can u pl tell me how to explicitly specify the columns that need to be displayed and data bound.
Prakash Mishra(Banglore,India)
|
|
|
|