|
katarukoti wrote: 1999-2000
or
1999-20
Try
^[1][9]{3}[-][2][0][0-9]{0,2}$
himanshu
|
|
|
|
|
hi i tried but the result is same as previous
it is not accepting..
where the mistake is?
|
|
|
|
|
Hi,
i think you also need requiredfieldvalidator because the expression i have given to you works only when you write some text in textbox.
Just place requiredfieldvalidator and it will solve your problem.
himanshu
|
|
|
|
|
hi
i tried that also
but the expression is not accepting any kind of input
i tried without rfv
and
also with rfv.
|
|
|
|
|
You can use AJAX control kit MaskEditBox
Here [^]is an example Video.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi
i haven't seen the video yet,
i am aware of maskededit,
it will accept only
Date,
Number,
Time
&
DateTime but i want only year format as a i mentioned previously..
i want to restrict the user to enter only Year..
how to do this..
|
|
|
|
|
I want to develop ASP.NET web site like wizard,
Suppoes I have 4 pages, First 3 pages are used to collect data from user,
and last page is used show all data which is entered in first three pages,
How to store all information? and how to pass information to page4?
Please help me,
thanks in advanced,
Bhushan
|
|
|
|
|
Well, the obvious way for me, is to make all the wizard steps, controls, and let viewstate hold the values for your code behind to accumulate and pass on.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I am loading another website in my iframe and i dont know how to apply customized scrollbar for that iframe.How can i apply ?
pls help me
Cheers..!
Vijay s
|
|
|
|
|
Is it possible to add a cancel button inside a wizard control? Even though I googled it, I didn't receive anything usefully. Can anybody provide any links or articles to this?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Set the DisplayCancelButton property to true.
|
|
|
|
|
I tried that. But still not displaying that button. Following is my html code:
<asp:Wizard ID="CreateDocumentWizard" runat="server" ActiveStepIndex="0" BorderWidth="0px"
DisplaySideBar="False" OnPreviousButtonClick = "CreateDocumentWizard_PreviousButtonClick"
onnextbuttonclick="CreateDocumentWizard_NextButtonClick"
onfinishbuttonclick="CreateDocumentWizard_FinishButtonClick"
onactivestepchanged="CreateDocumentWizard_ActiveStepChanged" DisplayCancelButton="true" >
Am I do something wrong here? Or should I do something else? Please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Have you added WizardSteps to your wizard control.
The Cancel button is displayed for me.
|
|
|
|
|
|
Is this reply for me or the person who posted the question?
|
|
|
|
|
Thanks a lot for your help in the first instance.
I think I got it.
I have added Wizard steps to the control. and also added start and step navigation template as follows:
<StartNavigationTemplate>
<asp:Button ID = "StartNextButton" runat="server" CommandName="MoveNext" Text="Next" />
</StartNavigationTemplate>
<StepNavigationTemplate>
<asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False"
CommandName="MovePrevious" Text="Previous"
/>
<asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext"
Text="Next" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
</StepNavigationTemplate>
I think if I put cancel button again in start navigation template, then it will also appear in first tab. But I feel the code is repeating. Is this the correct way to display the cancel button? Please suggest.
Thanks again!!
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Good Day
Am using IE 7 and Infragistics 8.1. Things have been working well until i played around with the IE Manage Pluggins. Now everything has freezed. i cant use menus in my IE. On other Machines my Application works fine. I have uninstalled IE7 and installed another one again but still the Problem persist.
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I've got an IIS v6 (Windows Server 2003) web site which uses an old DLL written with unmanaged code. (Aspx, C# using System.Runtime.InteropService to call unmanaged dll)
But I've bought a new Windows Server 2008 with IIS7 and the call to unmanaged DLL is not working.
In fact my C# code call an unmanaged DLL but the code never ends. It's entering in DLL code (all is working until the "return"; instruction, but it does not return to C# !!).
I've tried to configure the application pool (classic mode), the web site properties... but to hard for me.At a time I got the error "IIS Worker Thread stop working"!
A sample:
ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Table runat="server">
<asp:TableRow>
<asp:TableCell>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</div>
</form>
</body>
</html>
CS
using System;
using System.Runtime.InteropServices;
public partial class _Default : System.Web.UI.Page
{
[DllImport("MyDLL.dll", EntryPoint = "?get_html@@YAPBDN@Z")]
static extern string get_html(double value);
protected void Button1_Click(object sender, EventArgs e)
{
Random a = new Random();
Literal1.Text = get_html(a.NextDouble());
}
}
DLL C++
#include "stdafx.h"
#include "stdio.h"
char myBuffer[MAX_PATH];
__declspec(dllexport) const char * get_html(double value)
{
memset(myBuffer, 0x00, MAX_PATH);
sprintf(myBuffer, "<html><title>Test</title></head><body>Entered value : %.2f<br>Value x2 = %.2f</body></html>", value, value*2);
return myBuffer;
}
With IIS6, when the button is clicked the HTML text is displayed (all is good). With IIS7 nothing is happening !
Any idea ?
Thanks for help !
Le Sourcier
|
|
|
|
|
Did you get this issue resolved?
I'm having a similar issue and haven't found anything online yet to resolve it.
|
|
|
|
|
Hi There,
I have redio button list.What I want to do is that I want to check which radio button selected using JavaScript.Can anybody tell me how to do this.
Thanks.
Life Is Beautifull
|
|
|
|
|
function GetRadioButtonValue(radioButtonListName)
{
var radio = document.getElementsByName(radioButtonListName);
for (var i = 0; i < radio.length; i++)
{
if (radio[i].checked)
alert(radio[i].value);
}
}
|
|
|
|
|
Hello All,
I have a question,suppose I want to add a web service reference which is developed in asp.net into another plateform e.g.PHP,Java etc... And my web service return dataset or datareader or anything else.
So what the excetly result I'll get.. Is it a XML return ?? or some error found when I add that web service reference.
So if you have any good online tutorial for the web service as advance evel then let me give also.....
Thanks in advance...
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Web services communicates using SOAP messages. So you will get XML format string which matches to SOAP specification[^]. When you add web service through visual studio, it generates a proxy class which take care about converting the raw SOAP message into appropriate data structures (DataSet in your case).
A web service is stateless and it can't return a data reader.
|
|
|
|
|
thanks a lot...
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hello All,
i have list box which have display only 10 item at a time and when user scroll down i have fire one click event through java script and fill next 10 record in list box.
but i have one problem when click event is fire i want to set scroll position at 11 record.
can you please help how it's possible?
Thanks in advance.
Anish Patel
|
|
|
|