|
/^[0-9\s]*$/ this regular expression will allow only numeric value
|
|
|
|
|
thanks for reply,
i want complate script...
if you have ,then send me plz,
Impact Pro
|
|
|
|
|
Here is my control, what it does is that it doesn't require a numeric value, but if one is entered, it cannot be longer than 10 numeric characters. No spaces are allowed. Please modify to your needs:
<asp:RegularExpressionValidator
ID="RegularExpressionValidator_PostalCode"
ControlToValidate="txtPostalCode"
Display="Dynamic"
ErrorMessage="Optional: Invalid postal code"
ValidationExpression="\d{1,10}$"
runat="server">Optional: Invalid postal code
</asp:RegularExpressionValidator>
I hope this helps.
Regards
|
|
|
|
|
Hi,
I am using AJAX in my appl using VS 2005. In one of the checkboxlist, set of values are binded and one of the value is <b>"<n.a.> -"</b>
When I select that particular item, I got the error as:
<b>Sys.WebForms.PageRequestManagerServerErrorException: an unknow error occured while processing the request on the server. the status code returned from the server was: 500</b>
What is the cause of the error? Is this problem using AJAX? What is remedy for this problem? Can anyone help me?
Thankfully,
jm
|
|
|
|
|
You could try changing the < and > to & lt; and & gt; which may solve the problem - without the spaces, had to put them there so that the page didnt show the <>
|
|
|
|
|
Hi,
Thanks for your reply. But where should i change it? When it is binded, value is taken from DB. But when I select the item (I enabled the AutoPostBack = True) for the checklistbox. (Also I do have same kind of value in one of my Dropdownlistbox).
When i selected in the dropdownlist, The SelectedIndexChanged event not firing, instead it gives the Exception.
In this case what should I do to avoid it..
Thankfully,
jm
|
|
|
|
|
Hi,
This is from Chandrakanth.
Actually i want to Use LIST OBJECT Control which was located in EXCEL
CONTROLS.
Can any one tell me what are all the DLL i have to Add to use Excel
Controls in my Project.
Thanks And Regards
Chandrakanth.G
Chandrakanth
|
|
|
|
|
Hi,
I am working in javascript within asp.net. but default.aspx web page using under content place holder. I know that i can't use body tag in content place holder. how call a javascript function in content place holder. How It's possible?
please help me anybody urgently.
deepak_272@yahoo.com
|
|
|
|
|
When you have to call the javscript function
you can write script tag in content placeholder Whats the problem in calling the javascript ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
I know that use a javascript in content place holder. but function will be call in body tab. body tag can not write in content place holder. if you know please help me detail. tanks.
|
|
|
|
|
My question is when you have to call that javscript function on load something like that ?
if you put that javascript in content placeholder and that content placeholder is in form then this javascript is going to call in page load
so better way is to register that javacript .cs file
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi...
Does anybody know how i can catch the text change event (on the server) for a textbox in a repeater.
Thanks.
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Sorry,
The page is not postback on TextChange event but it fires the TextChange Event Routine When it is Postback by another event or submit.
so you have to manualy submit the form.
Best Regards,
Chetan Patel
|
|
|
|
|
Hi All,
I have bit of a head scratcher, I have a LoginView control and in that loginView control I have a dropdownlist, to access the dropdownlist control in the code behind I know you have to do :
DropDownList ddl = (DropDownList)LoginView.FindControl("dropdownlist");
But how do I get the event for text changed of that dropdownlist control. I added it manually but when I try to run the app I get the message that the event is not accessible due to its protection level.
Any help will be appreciated.
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Hi,
This is from Chandrakanth.
Actullay i have been working on Dotnet Framework2.0.
my Question is some of the Controls are DISABLED MODE in TOOL BOX.
How can i ENABLE that controls.
That means suppose i want to Use EXCEL Controls along with Standard Controls. How can i use that EXCELControls in TOOL BOX. That EXCEL controls are DISABLED MODE. How can i ENABLE that Controls.
Thanks in Advance
With Regards
Chandrakanth.G
Chandrakanth
|
|
|
|
|
Right Click on the tool box and select choose Control and then select requiered dll
Best Regards,
Chetan Patel
|
|
|
|
|
mrgaddam wrote: With Regards
Chandrakanth.G
Chandrakanth
One signature is enough.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi,
i have a table. and in that i have two rows(trs)
in first row i have two tds .In first td i have a textbox and in second td i have a button named "save"
In second row (tr) i have only one td ........this td consists of a button named "add new row"
if i click on the "add new row " button another row has to be generated dynamically with textbox and button like first row.
how can i do this using asp.net
|
|
|
|
|
Please describe your requirement in brief.
Best Regards,
Chetan Patel
|
|
|
|
|
hi,
i have given the clear explanation yaar..plz let me know if u have any doubts
|
|
|
|
|
Hi,
Not sure what you are trying to ask, but I'm assuming you are wanting to create a table dynamically?? If so, have a look at my code that I used:
In .aspx file:
<asp:Table id="tblResults" BorderWidth="0" Width="100%" runat="server">
<asp:TableRow>
<asp:TableCell Width="30%"><b>Day</b></asp:TableCell>
<asp:TableCell Width="70%"><b>Daily Rate</b></asp:TableCell>
</asp:TableRow>
</asp:Table>
In a method:
TableRow row = new TableRow();
tblResults.Rows.Add(row);
TableCell cell1 = new TableCell();
TableCell cell2 = new TableCell();
cell1.Text = "Cell 1";
cell1.Width = Unit.Percentage(30);
row.Cells.Add(cell1);
cell2.Text = "Cell 2";
cell2.Width = Unit.Percentage(70);
row.Cells.Add(cell2);
I hope this helps.
Regards
|
|
|
|
|
hi
i did a project in ASP.net (ie i created a website). i got memory in one website. how can i upload my project in to a website
please help me...
thq
|
|
|
|
|
In server Explorer Window Right Click and Select >> Publish
Then Upload the Folder You have specified while publishing
Best Regards,
Chetan Patel
|
|
|
|
|
thq chetan for ur reply.....
i am haveing a MS Access Data base for my project how can upload my database into my website
please help me.....
|
|
|
|