|
hi
i want to know how we can apply javascript for the page like we use asp.net requrefield validation (means text box value cant be null) and email validation. i am asp user but these validation i want to use in my normal html form and i need javascript for this and i don't know how i do this with javascript. i found on w3schools.com but i didn't under stand that how do work?
I will do my best?
|
|
|
|
|
The stuff on w3schools is all going to be as good as it gets, if you don't understand it, perhaps you need a book ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Will you suggest me a good book name and author so i can improve my javascript but i didn't know anything about javascript so please told me a good one beginner book or may be links to improve my javascript. thanks
I will do my best?
|
|
|
|
|
You can apply a javascript function which returns bool on clientclick of the controls.In that function you can validate the value if its true the it goes to server else you cal show show message and ask to rewrite again.
as
<asp:textbox id="txtServiceNo" runat="server" width="170px" onkeypress="javascript:return Validateit()" xmlns:asp="#unknown">
Cheers!!
Brij
|
|
|
|
|
actually problem is that this work is totally in html not in asp.net another wise i will use validation controls of asp.net. as i told earlier that i visit w3schools.com but i didn't satisfied. so please tell me javascript function where to call and how to call i have three necessary filed to input name, email and description that not null and email validation from where and how call javascript and what would be the javascript code. thanks for reply.
I will do my best?
|
|
|
|
|
AspDotNetUser wrote: this work is totally in html not in asp.net
Then why are you posting in this ASP.NET forum instead of the web developemnt one?
There is no end of JavaScript tutorials and examples on the web - just search around til you find some you like. Another good way of learning is to view the source code of web-pages that do the sort of thing you want to achieve.
Study and then come back with any specific questions - but do not expect people here to provide you with fully functional code.
Do your best...
|
|
|
|
|
Use document.getElementByID('The name of your control').value
|
|
|
|
|
Dear,
I have binary in SQL Server, I want to read it and display as image, show how can i do?
Please give me a full code
Socheat
|
|
|
|
|
|
Hi i want to show chart in my aspx page...,
Except rdlc component give me some other way to show my chart...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
modified on Friday, August 22, 2008 1:49 AM
|
|
|
|
|
Dundas Charts ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
i want detail description about Authentication and authorization
|
|
|
|
|
I want a ferrari. Life is like that. If you want a detailed description, buy a book or google for an article. A forum reply is the place for a specific answer, not an overview.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: I want a ferrari.
That'd be nice
Christian Graus wrote: A forum reply is the place for a specific answer, not an overview.
Excellent point, and I second that.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
Pick a better subject line, and be a bit more detailed about what you are asking.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I suggest dropping out of programming NOW.
Blog link to be reinstated at a later date.
|
|
|
|
|
HOW TO WRITE CSS FOR ASP.NET 2.0 MENU CONTROL
can any one please send me code
|
|
|
|
|
You write css for any control the same as you do for normal ones.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
TARAK NATH ROY wrote: can any one please send me code
No. Does not work like that in these forums. You need to try and do your OWN work and when stuck, ask for help.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Stop yelling!
Blog link to be reinstated at a later date.
|
|
|
|
|
Ok I created a application that uses SQL. It stores the information the user enters in a textbox to a sql database. When the user views that information in a textbox it displays exactly like they wrote it. Example:
If they wrote this in a textbox:
Testing my TextBox
This is the second line with a space inbetween
This is the third line with a space inbetween
Now it gets displayed back just like that in a text box.
If I were to send it in a email it is displayed like this:
Testing my TextBox This is the second line with a space inbetween This is the third line with a space inbetween
It does not recongize the new line character a textbox uses. Is there a way to fix this?
I have the email sending set to HTML and it needs to be that way.
|
|
|
|
|
Since you are sending in HTML format, you need to use an HTML newline to make it look right. Just look for the newlines in the textbox, and change it to <br />. That should be simple enough.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
when displaying it back from the database to a textbox you dont actually see a new line character. Basically when sending it in html I need to replace each newline character that is for a textbox with a html new line character
|
|
|
|
|
Well, with the change in sending mail from .Net 1.1 to 2.0; somehow it has become a tricky part.
But what you can do for this is that just before sending the email, replace the message like this.
LstrMessage = LstrMessage.Replace("\r\n", "</br>");
hope this helps.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|