![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 10
OS: XP prof
|
Iam trying to use range validaor for a text box for which user has to enter phone nunber. Max vaue 9999999999 Min value 1000000000. Type = string and also tried with int.The error was not displaying.Any one plz solve my prblm.
|
|
|
|
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Northampton, UK
Posts: 1,090
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)
|
Re: Validation...range validator prblm
Could you post your code?
What language are you using? What's wrong with it? (you don't mention the actual problem just that there is one). Cheers, Jamey |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Feb 2008
Posts: 269
OS: Vista
|
Re: Validation...range validator prblm
I don't know any ASP... www.w3schools.com should help a bit.
If you want to do it in PHP I'd be happy to help. |
|
|
|
|
|
#10 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 10
OS: XP prof
|
Re: Validation...range validator prblm
Hai frnd,
Suddenly all my images of the web site are disappered and when I view tht in internet explorer i can only see red color "X" inplace of image. what happened to my web site?? any one plz help.. |
|
|
|
|
|
#13 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 10
OS: XP prof
|
Prblm with get accessor
Hai frnds,
I was totally confused with get and set acessors.i understood that as we declare private fields and in order to give access of private properties we declare public property {get or Set}. but any one explain in practical manner. I have one example. public class ShoppingCartItem { public string Description; public int Quantity; public ShoppingCartItem(string description, int quantity) { Description = description; Quantity = quantity; } public string ItemLine { get { string line = Quantity.ToString() + “ “ + Description; if (Quantity == 1) line += “ costume”; else line += “ costumes”; return line; } } } Here he did not declare any private property as Item line but direcly setting the accessor(get). Mainly i did not understood what the code in the get accessor is doing. any please help me out of this problem.actually iam begiiner to .net. plz try to explain me in detail. I searched in different sites but i did not get a clear idea. Thanking you in advance. |
|
|
|
|
|
#14 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Northampton, UK
Posts: 1,090
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)
|
Re: Validation...range validator prblm
Hey, i'm not very good with .Net (because i've not done a whole lot in .Net)...
But as i see it the code within the get statement returns how many costume(/s) are currently set(By doing the following): - Works out whether the variable Quantity is singular/plural(seen below:) Code:
if (Quantity == 1) - Else it set's the returned string to the amount of costumes plus the string " costumes": Code:
line += “ costumes”; Then the line: Code:
return line; Hope that explains it well enough Cheers, Jamey |
|
|
|
|
|
#17 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 10
OS: XP prof
|
Forms Authentication
Hi frnds, This is SUDHAKAR backwith starting trouble...
Iam trying to use membership. I created 4 aspx pages(login page, regular page, register page and sepearte folder and kept reserved page for members.). I made some changes to asp.net website administration tools for security tab like followed the wizard steps and created 4 users. Then allowed all anonymous users to root folder(all folders). then All users deneid to the member folder. Then allowed 1 user to the member folder. then every thing is finished but when iam opening the reserved page in browser it must take me to the login page and after entering ID nd pass word it shud take me to the reserved page. What To do If i want to display Login page ,If any anonomys user tries to access the members Page ?? Thanking you in advance SUDHAKAR... |
|
|
|
![]() |
| Thread Tools | |
|
|