the error said it was an invalid method... i dont know why
this is the code behind:
public class CreateAccountCodeBehind : Page
protected TextBox FirstNameTB; //declaring the objects that are used within the aspx page and need coding
protected TextBox SurnameTB;
protected TextBox IDTB;
protected TextBox AddressTB;
protected TextBox ContactNumTB;
protected TextBox EmailAddTB;
protected TextBox PasswordTB;
protected TextBox ConfirmPasswordTB;
protected TextBox AnswerTB;
protected DropDownList QuestionList;
public void Submitbtn_Click(object sender, EventArgs e) //creating the new instance of the webservice and using the correct parameters
string First = FirstNameTB.Text;
string Surn = SurnameTB.Text;
string ID = IDTB.Text;
string Add = AddressTB.Text;
string con = ContactNumTB.Text;
string em = EmailAddTB.Text;
string pa = PasswordTB.Text;
string qu = QuestionList.SelectedItem.Text;
string an = AnswerTB.Text;
CreateAccountService SignUp = new CreateAccountService();
SignUp.Sign(First, Surn, ID, Add, con, em, pa, qu, an);
I have never heard that bevore.
But ok, the answere is "Yes" it will run the base constructor as well.
And it will be worked threw bevor the derived classes constructor
If you have a base constructor which takes parameters, you have to do it like this:
public baseclass(string text, int number)
public derivedclass(string text, int number, .....) : base(text, number)
Exception:A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$txtCompanyType="&#").
while enter special charecters in textbox how to validate this combination '&#' using regular expression pls help me in this .
Thanks for your answers for my previous post. It helped me solve my problem very quickly.Now I have one more problem.
Is there any built in vaildators available to validate inputs in windows application using C# (Like we have in asp.net development). If it is show please explain how to use it? or do I have to use regular expression to build validation?
Set the Mask property of the MaskedTextBox as per your requirement and the validaton on inputs will be done automatically. There are few predefined Mask available in the Visual Studio, you can chack if you can utilized any of them.
Never Gives up
Last Visit: 31-Dec-99 18:00 Last Update: 4-Jul-22 20:07