|
SayamiSuchi wrote: I am inserting some text in texbox and there is range validation set as minimum as 10 and maximun as 100
Is ir a MultilineText Box ? Could you please share us the code block for the seection ?
This should work
<asp:TextBox ID = "txtAge" runat = "server" />
<asp:RangeValidator ID = "RangeValidator1" runat = "server"
ControlToValidate = "txtAge" Type = "Integer"
ErrorMessage = "Age Range 19 to 30 " MaximumValue = "30" MinimumValue = "19" ValidationGroup="FormValidation" >
</asp:RangeValidator>
<asp:Button Text="text" id="button" runat="server" ValidationGroup="FormValidation" onclick="button_Click" />
This works perfect for me !
|
|
|
|
|
I used regularExpressionValidator and it worked . thanks all for your great ideas.
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
ErrorMessage="Description shouldn't be less than 30 characters"
ControlToValidate="txtDescription" CssClass="valError" Display="Dynamic"
EnableClientScript="False" ForeColor="" ValidationExpression="(\s|.){30,1000}">!</asp:RegularExpressionValidator>
suchita
|
|
|
|
|
I have a sub domain on my website sub.mydomain.com where sub is a folder on my root but it is an independent website.
Do I have to place a separate web.config in that folder or it will use the web.config available on the root?
|
|
|
|
|
I think there should be only one web.config file..
suchita
|
|
|
|
|
We can use multiple config files if you have seperate setting for the sublevel application Otherwise it'll inherit the parent configuration.
|
|
|
|
|
SayamiSuchi wrote: I think there should be only one web.config file..
No, We can use multiple web.config in a application, but should be one in a folder.
Thanks !
|
|
|
|
|
|
i have doubt in using master page and panel..
which one is speed for execution ???
advantages and dis advantages???
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
There is no comparison, they are two different objects for two different purposes.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I am using gridview to show my data from the database. I have autoGeneratedColumns set to false but I do need the shorting properties by date. I set allowShorting to true. I have fields like date and FirstName. Is it possible that i can short either by date or FirstName both. Like whenever user select by date, it should be shorted by date and whenever user selects by FirstName, it should short accordingly. Can I be able to do that ?
suchita
|
|
|
|
|
The GridView class has a Sort method, so you can easily sort programmatically. What you need to do is choose a way for the user to request the different ways of sorting you want; maybe add a few buttons?
|
|
|
|
|
Thanks for the reply. Ya I did use sort method but I want to have two columns sorting. For example, there are two columns ID and Name , then when user clicks ID, it should sort with ID and when user clicks Name, it should sort with Name. Is there any way to do that ?
suchita
|
|
|
|
|
I'm somewhat familiar with DataGridView (in WinForms), not with DataGrid.
However, have a look at DataGridColumn.SortExpression, I think it is the key to what you want.
|
|
|
|
|
|
thanks. I got it work already.
suchita
|
|
|
|
|
Hi
I want to know how to create a message sending application in asp.net using vb.
Is there any demo application,please send me, it'll be useful for me
Thanks in advance
|
|
|
|
|
Hi,
Please Don't Cross Post. You have already asked the same question just below two thread.
Thanks !
|
|
|
|
|
Hello Coders
I want to read Image Metadata information in my asp.net with C# web application.How I do this.
Any help would be appreciated...
Amit Gautam
|
|
|
|
|
|
Hi guys i want to use auto complete extender for my textbox...,
I know how to use tht with pagemethod...,
Now my probs is my webmethod in some other project...,
i am accessing the webmethod through webreference for my pages...,
i have declared the name space like this...,
using ABPort.portWebServices;
now how can i acces the web method which is in ABPort.portWebServices for my textbox which is in another project page...,
plz guide me this is my code sample:
portWebServices.asmx.cs
-----------------------
[WebMethod]
public static string[] Get_Alert_CompanyInfo(string prefixText)
{
string sql = "Select * from tbl";
SqlDataAdapter da = new SqlDataAdapter(sql, SqlCl);
da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 50).Value = prefixText + "%";
DataTable dt = new DataTable();
da.Fill(dt);
string[] items = new string[dt.Rows.Count];
int i = 0;
foreach (DataRow dr in dt.Rows)
{
items.SetValue(dr["LNAME"].ToString(), i);
i++;
}
return items;
}
my page name which is in another project
-----------------------------------------
SetAlerts.aspx in tht my textbox is there, for tht i want to acces this webmethod "Get_Alert_CompanyInfo"
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Hi sir/madam,
I want to send an text sms from asp.net using vb applications. will u able to send me code behind or demo project,
Thanks in advance.
Nandha kumar
|
|
|
|
|
|
Hi,
While asking a question, please give proper Subject line. This actually helps members to give the answer.
|
|
|
|
|
|
hi,
i recently encountered a new problem in my site
when i enter in my site i see this error
System.Data.SqlClient.SqlException: Invalid object name 'Menus'
i use somthing else instead of dbo schema
i think if i change my schema to dbo this problem will be clear
isnt it?
please help me.
|
|
|
|