|
gauthee wrote: How can i achieve this in 1.1?
The best you could do is to create a class derived from the page class, and derive your page from this new class. But, that's a nasty, nasty hack, to do that just to split code across two files. It won't work 100% like a partial class either ( the page will see the base methods but not vice versa ). Why do you want this ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have to save an aspx page into html page.In my asp.net page,i have two images,one map and two graphs.I am getting maps ang graphs from another page into current page and displaying using iframes.My client requirement is whenever he click the 'Save as html'in that page, the entire page has to go n save in html.Plz tell me solution for this question?
Regards,
sanjana
|
|
|
|
|
Does anyone have a solution for doing rounded corners for text boxes in ASP.NET 2?
|
|
|
|
|
Hi,
U may find answer Here[^]
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi all,
Is there any specific property or control in ASP.NET 2.0 using which i can enter only numerical characters in a textbox??
How do i do this???
If no, please semd me the piece of code using which i can do this validation.
Thanks
Ramesh
|
|
|
|
|
you can use regular expression validation like this:
""asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Numeric Value" ControlToValidate="TextBox1" ValidationExpression="[0-9]">Raghvendra Kumar Roy
|
|
|
|
|
Hi Raghav,
Thanks!
n wat do i do if i want to validate a filed called year which should accept only 4 digit year like 2007 and not 07.
also i want a textbox which should not accept special characters.
|
|
|
|
|
if you want to validate a filed called year which should accept only 4 digit year like 2007 and not 07.
try this:
After validationexpression you can define numbers Just add this for your problem
ValidationExpression="[0-9]{4}"
if you want a textbox which should not accept special characters.
it will accept only uppercase characters,lowercase characters and numeric characters.
ValidationExpression="[A-Z,a-z][0-9]"
Thanks
Raghvendra Kumar Roy
|
|
|
|
|
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
|
|
|
|