Ask a Question related to ASP.NET Building Controls, Design and Development.
-
close browser without Logout #1
Numberic textbox
hi,
i need to create a numeric textbox control which accepts only numbers,
decimal point, backspace, arrow keys, should not allow pasting contents...
etc.
i've created a web user control by extending TextBox class and added a
javascript attribute to it as base.attributes.add("onkeydown","some
javascript code");
Its working when im giving the javascript code here, its not working when im
giving javascript code in its html section...
As there may be lots of lines in the javascript code, it should be placed
somewhere and the function only should be called from attributes.add()
method...
Please provide help.
close browser without Logout Guest
-
textbox.value
Try this: If Textbox4.Text <> "" and Textbox5.Text <> "" and Textbox6.Text <> "" then ** TextBox4 etc are objects and not the values of the... -
Inserting Text before the Numberic Page numbers in paging
How do Insert the word "Page:" in front of the auto-generated numbers in paging? For example, the bottom of the Datagrid currently just displays... -
textbox
i would like modify font texybox in verdana in onpage_load textbox.font=? -
runat="server"....a simple html textbox or a webform server textbox...that is the question.
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the... -
VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail???
I've had this happen a few times too. I'm still not positive of what exactly causes it but all that's happening is the control that no longer... -
Gaurav Vaish \(www.EduJini.IN\) #2
Re: Numberic textbox
> Its working when im giving the javascript code here, its not working when
Probably the fault in Javascript code.> im
> giving javascript code in its html section...
How are you calling the other method from onchange (client-side)?> As there may be lots of lines in the javascript code, it should be placed
> somewhere and the function only should be called from attributes.add()
> method...
Is there any Javascript error?
The final HTML generated may look like:
<input type='text' name='numberbox' id='numberbox' onchange='return
checkData(this)' />
<script language='javascript' type='text/javascript'>
function checkData(ctrl)
{
var value = ctrl.value;
// Validate the value here... and return the validation result.
}
</script>
--
Happy Hacking,
Gaurav Vaish | [url]http://www.mastergaurav.org[/url]
[url]http://www.edujini.in[/url] | [url]http://webservices.edujini.in[/url]
-------------------
Gaurav Vaish \(www.EduJini.IN\) Guest



Reply With Quote

