|
You will have to use the onclick event of the textbox and call a javascript function that will set the text of the textbox to ""
onclick="make_blank();"
<script>
function make_blank()
{
var textbox = document.getElementById("")
if(textbox!=null)
{
textbox.value="";
}
}
</script>
modified on Monday, June 23, 2008 2:28 AM
|
|
|
|
|
onclick event of textbox .. is Sure? if yes where is it ?
|
|
|
|
|
Modified my previous post.
look it over
|
|
|
|
|
onClinetclick="make_blank();"
rajeshprajapati
|
|
|
|
|
Rajesh B Prajapati wrote: onClinetclick="make_blank();"
Don't you mean onClientClick="make_blank();"?
onclick also works as far as i know
|
|
|
|
|
Doesnt that annoy you , that you spend time answeing a post then they delete so no one else can use it in the future...
We are not a Code Charity
|
|
|
|
|
Is asp.net validators are safe to use for validations, if yes then is there is need to validate on server side.
|
|
|
|
|
Asp.net validators use javascript to validate input that your users type in. Both Ie and firefox allow the user to turn javascript off this is why it is always a good idea to validate all inputs from the user server side too.
Trust but verify
|
|
|
|
|
Is all the asp.net validators are rendered as javascript, if yes then can any hacker hack the site, if the validations are done only using validators
|
|
|
|
|
If i turn javascript off on my browser and then visit your page there will be no client side validation on my inputs. And if there is no server side validation then yes i may be able to perform SQL injection or other attacks on your website
this is why server side validation is also very important and most definitely needed
|
|
|
|
|
I recommend buying a book on web development. Any ASP.NET book will tell you you need to validate on the server. Why ? b/c a user can hack your script and turn client side validation off. Sure, it's nice to have it, but you should not trust anything you get from the client,
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
how to clear particular page history only from browser.
please can any one help. I need hardly.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Hi
As a web site are not to play with client's browser, therfore user's browser's history cant be deleted by code.
Rather, you can block your user, who is viewing your webpage, GOING BACK TO ANY PAGE HE HAS ALREADY TRAVERSED. Check the following code,
<script language="javascript">
history.go(1);
</script>
Thanks,
Arindam D Tewary
|
|
|
|
|
how to write code for eXcel ACCRINT function PLease Help Me If this is possible
*************************** NC
ACCRINT = par * Rate / Frquency * E Ai/NL
*************************** L1
Formula URL= http://office.microsoft.com/en-us/excel/HP052089791033.aspx[^]
where:
par The par value of the security.
rate The annual interest rate or coupon when the security was issued.
frequency The number of coupon payments per year:
1 = annual
2 = semi annual
4 = quarterly
Ai = number of accrued days for the ith quasi-coupon period within odd period.
NC = number of quasi-coupon periods that fit in odd period. If this number contains a fraction, raise it to the next whole number.
NLi = normal length in days of the ith quasi-coupon period within odd period.
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
modified on Monday, June 23, 2008 1:53 AM
|
|
|
|
|
what is the basic difference between common type system and common language specification ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
I'm sure the answer has nothing to do with ASP.NET
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi
how get color picker onmouseover event and stored this picked color value in cookies. get the value from cookie and set background-color this cookies value without post using ajax.net
please help me
with regards,
bretto
|
|
|
|
|
hi friends
i have 3 aspx page and 1 masterpage
1 aspx page is top banner
2 aspx page is footer
3 aspx page is leftlinks
questions
1.how can i add these three page in master page
2 In run time top banner only display . i have button in top banner.i click that button after that another two pages display.how can i achive this.
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
You can't. You're doing it all wrong. These should be controls, not pages.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Dear friendz,
I am binding morethan 100 records in to a dropdownlist control in my web project.
If I click the dropdownlist, It is showing more than 25 data with vertical scrollbar.
It is not feeling good to look.
I want to customize the displaying records.
It should display only 10 records with vertical scrollbar.
What I have to do? Pls help me
Thanks in advance
Balasubramanian K.
|
|
|
|
|
I don't think you can set that with a standard control.
If you can, it's a HTML setting, so you should search general web dev info, not just ASP.NET.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Balasubramanian,
I also had similiar problem.
i had abt 40 records to bind to dropdown and it must not scroll vertical.
something similiar u can say.
Solution implemented by me was:(lots of work in it)
I kept dropdown un-binded(rather binded to single value(-Select-,-1)
and ReadOnly
Second on click on dropdown, i did show a vertical scrolling div
havin table inside it with 20 rows.Onclick of TD, i would capture that row.
I had little right arrow button on right, on click of which it flipped div with another similiar di of 20 rows.(u could rebind same too). I added selected value to my original dropdown(dropdown.insert()) and kept it selected.
Pretty hacky and lot of work, but at end it did pay for me.
With 100records, it may not be suggested but just imagine user scrolling down for hundred values poping down.
It was better than it.
regards, ravifree
ravis
|
|
|
|
|
First of all, I would like to thank you for your ans.
But I dont get it clear. Pls. clear me
Balasubramanian K.
|
|
|
|
|
hi sir, in what aspect you were unclear.
what i did was a div with runat server attribute
this div contains as many inner divs with div style as display:none
and
added a dynamic table(s) at codebehind to inner div.
this table contained
i did show show inner-div1 on click of dropdown
if side arrow clicked i hide this inner-div1 and shown inner-div2)
if any td is clicked i hide this all div as whole and populate value in dropdown through javascript
regards, ravifree
ravis
|
|
|
|