|
hey raghav......
this accepts only a single digit number!!!!
i want the field such tat it should accept number..... any number of any length.....
but this validation coontrol accepts only a single digit no.
not any other number also
please help asap.
thanks
Ramesh
|
|
|
|
|
Hey Ramesh
Try this:
ValidationExpression="[0-9]*$"
Raghvendra Kumar Roy
|
|
|
|
|
Hey Raghav,
I have been able to do it by simply adding a star
ValidationExpression="[0-9]*"
For wat is tat additional $ ?
Please let me know
|
|
|
|
|
hi Ramesh
$ means stop looking at this position.
Raghvendra Kumar Roy
|
|
|
|
|
This script is used for u accept only numbers.
<br />
<script type="javascript"><br />
function isinteg(obj){<br />
if (isNaN(obj.value)){<br />
obj.value="";<br />
return false;<br />
}<br />
return true;<br />
}<br />
</script><br />
<input type="text" name="field" onkeyup="isinteg(this);"><br />
Regards,
Satips.
|
|
|
|
|
//here formElement is the control and myString is the string typed into it .
//By using this javascripting code the characters and others will not //get //typed only numbers will type.
function removeInvalidChars(formElement, myString)
{
var intPeriod = 0
for (var i = 0; i < myString.length; i++)
{
A_char = myString.charCodeAt(i)
//We are validating for numbers.
if (A_char > 47 && A_char < 58)
{
// It's a number
continue;
}
else
{
myString = myString.substring(0,i)
}
}
formElement.value = myString;
}
|
|
|
|
|
function intOnly(obj)
{
if(obj.value!=parseInt(obj.value))
{
alert("Please Enter Whole Number only");
obj.value="";
}
}
i hope this will help you.
Puneet Srivastava
|
|
|
|
|
Public Class Form2
Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
Dim c As Integer
c = Asc(e.KeyChar)
If c = 8 Or c = 13 Then
Exit Sub
ElseIf c < 47 Or c > 57 Then
e.Handled = True
ErrorProvider1.SetError(TextBox1, "Invalid Number")
Else
e.Handled = False
ErrorProvider1.SetError(TextBox1, "")
End If
End Sub
End Class
just create a user control and use it wherever u want
|
|
|
|
|
Hi All,
I am use javascript rich text editor for body of the mail and I need to send this mail to different email ID's.
before I send any mail I need to check it so which control should I use so that I can show the text and image.
Will Textarea control help me???
|
|
|
|
|
ASP.NET 2.0 wrote: Will Textarea control help me???
No.
Use DIV element. Set the contentEditable property to true.
|
|
|
|
|
Thanks Venkatesh, but can u please help me with the code...
|
|
|
|
|
Sorry buddy... I don't access to other website presently...
Google for WYSWYG Editor...
You can use IFRAME also instead of DIV...
|
|
|
|
|
Hi,
I have implemented paging in a datagrid. It has got numeric pages iplemented.When i click on a particular page no, then the font size of that page no(current page no) increases as compared to other page no's.
I want all the page no's to be of the same size even the current page no. How to get this.
Thanks,
Riz
|
|
|
|
|
Post your code, what you have done it in your code for it ? le tus check it and we will tell wher it has gone wrong?
We can't simply answer.
Regards,
Satips.
|
|
|
|
|
Hi All,
Can anybody let me know how to use the font properties ......
Actually i want to set the font properties like Bold,Italic,Underline and Font-Family like "Times New Roman","Arial"........ at run- time
.................................
Thnx in advance
|
|
|
|
|
|
Hi,
I'm working on a project for dynamic code generation. We are creating the entire solution from scratch here(just at the initial stage).
I create aspx and code behind files in the PL, but after the entire solution is created, I try to open the aspx file in the designer and I get this error:
"The file could not be loaded in to the Web Forms designer."
I am getting this link for help:
http://msdn2.microsoft.com/en-us/library/aa289356(VS.71).aspx
But I'm using src attribute like this and it was working when creating file using VS 2003:
Could someone point out whats going wrong here.
Regards,
Blumen
|
|
|
|
|
You are using the <% %>(script tag) in aspx page that’s why you are getting the error (The file could not be loaded in to the Web Forms designer) to view the designer page first remove all <% %> tags from aspx page.
I hope this will help you
Puneet Srivastava
|
|
|
|
|
Hi,
Thank you for the reply.
I tried removing the script tags, but still i get the same error.
Regards,
Blumen
|
|
|
|
|
Hi all,
I have an issue!!!
I have a dropdown list(somewhere near the bottom) in my page with autopostback set on.
The problem is as soon as i select an item from the list, due to auto postback,the control goes to the top of the page!(the page is long enough, so the user has to scroll down to completely fill the form).
so the user has to again scroll down till bottom of the page.
Thank You
Ramesh Bhojan
|
|
|
|
|
If you are using ASP.NET 2.0, you have one option called maintainScrollPositionOnPostBack. This accepts boolean value, which you can use with the page tag.Or you can check this[^] for an alternative method that uses javascript. But I suggest you to use the first method, It is cross browser too.
|
|
|
|
|
Hi navaneeth!
where do i find the maintainScrollposition on postback option?
i could not find that in the properties window of the dropdown list!!!!
|
|
|
|
|
Hi
Simply add MaintainScrollPostionOnPostBack = True in the Page directive if you are using VS.Net 2005.
Check this link[^]
Harini
|
|
|
|
|
you have one option called maintainScrollPositionOnPostBack in ASP.NET 2.0.
I hope this will help you.
Puneet Srivastava
|
|
|
|
|
hi friends
i am devlopung one application in which i am using ajax
on form i have one textbox
on change of value of textbox i need to change data of datagrid
this i have done by using ajax
i want to add one html checkbox in each row of datagrid
how can i add this
thanks
manisha
|
|
|
|