|
Yes ..!and the Other Thing is Yesterday Mistake..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
i'm using froms authentication
|
|
|
|
|
hi
i have to make a method that take a string of text of English to return a string of Spanish
in ASP.NET 3.5 C#
please suggest.
|
|
|
|
|
|
|
but this will require to explicitly define the resource files manually ...
|
|
|
|
|
protected void btnRegister_Click(object sender, EventArgs e)
{
objRegistration.UserName = txtUserName.Text.Trim();
string strGuid = Guid.NewGuid().ToString();
string strPassWord = BAMLibrary.Registration.GetRandomPassword(10);
if (int.Parse(objRegistration.CheckAvailability().Rows[0].ItemArray[0].ToString()) == 0)
{
objRegistration.FirstName = txtFirstName.Text;
objRegistration.LastName = txtLastName.Text;
objRegistration.Email = txtEmailID.Text;
objRegistration.DOB = DateTime.Parse(txtDOB.Text);
objRegistration.Address = txtPermanentAddress.Text;
objRegistration.City = txtCity.Text;
objRegistration.Country = ddlCountry.SelectedItem.Text;
objRegistration.AlternateEmailID = txtAlternateEmailID.Text;
objRegistration.ReferalID = int.Parse(hfReferalID.Value.ToString());
objRegistration.AccountNo = txtAccNo.Text;
objRegistration.AccountHolderName = txtAccountHolderName.Text;
objRegistration.BankName = txtBankName.Text;
objRegistration.Branch = txtBankBranch.Text;
objRegistration.PassWord = strPassWord;
objRegistration.IFCUCode = txtIFCUCode.Text;
objRegistration.ActivateCode = strGuid;
if (objRegistration.UserRegistration() > 0)
{
Response.Redirect(@"..\Conformation.aspx");
}
else
{
Response.Write("<script>alert('Unsuccessfull registration !')</script>");
}
}
else
{
Response.Write("<script>alert('User id already exist')</script>");
}
}
the following event is raising the error
Error 91 Cannot assign to 'ActivateCode' because it is a 'method group' E:\BEAMILLIONAIR\BAM\BAM\BAM\BAM\Register.aspx.cs 94 21 BAM
like this can anybody help me.
Thanks in advance
Sandeep adem
hi
|
|
|
|
|
ademsandeepreddy wrote: objRegistration.ActivateCode = strGuid;
What is ActivateCode ? Is it a method or properties ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi all,
I am using ajax modal pop up in one of my forms.Its working fine in local system.But after deploying it in server it is giving error. comos before the filed are appearing.
Thanks in advance,
Srinivas Mateti
|
|
|
|
|
What Error are you getting ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Which Error are you getting ? Does the proper framework is available on your deployed server ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Have you deployed the Ajax toolkit library to the server?
|
|
|
|
|
I have a table with field ID int IDENTITY(1,1) (primary key)
So lets say I have only two elements, with ID=1 and ID=2.
So if admin (id=1) remove element where ID=2 and then add a new element, I will have an element with ID=3 and not with the ID=2. (so table will have two elements one with id=1 and another with id=3 instead id=2)
Why this happens?
|
|
|
|
|
Maxdd 7 wrote: Why this happens?
This is how identity columns works.
Best wishes,
Navaneeth
|
|
|
|
|
N a v a n e e t h wrote: This is how identity columns works.
There is not a way that usually there's no way do alter value of the primary key.
So I suppose thats not possible to do something around that, am I right?
|
|
|
|
|
Maxdd 7 wrote: There is not a way that usually there's no way do alter value of the primary key.
What do you meant by that?
Most database systems won't reuse the identity value. It will always increase when new rows are added.
Best wishes,
Navaneeth
|
|
|
|
|
First of all your question is nothing to do with ASP.NET .
This is not the auto increment problem, that is what Identity Works
For Better Info : Read This[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
IDENTITY columns are designed to work this way. If you want to reuse identity values for some reasons, you can reseed the identity column using:
DBCC CHECKIDENT("Table1", RESEED, 2)
When you insert a new row after executing this statement, your ID column will start from 2 again.
|
|
|
|
|
Good Day Maxdd 7
as the guys says , that is how identity works. Delete and Truncate Works Differently. The Delete will continue from the previous seed but Truncate will start from the beginning. lets say i have this
Table1
<pre>
=============
ID | Name
=============
1 | Vuyiswa
2 | Maxdd 7
3 | Maxdd 8</pre>
if i have to Delete ID 3 and later i add a new Record. It will continue as ID 4 but if you truncate(this not a Good idea) the table and add the Records to a Temp table and insert in the very same table from a temp table you will get the records with ordered ID.
Hope you understand this.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
modified on Friday, November 27, 2009 9:12 AM
|
|
|
|
|
Vuyiswa Maseko wrote: The Delete will not continue from the previous seed
Did you mean to say "The Delete will continue from the previous seed" ? Because this is what is correct.
|
|
|
|
|
Oops i fixed it thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Thank you guys I was just curious about the reason but now I understand
|
|
|
|
|
You are Welcome
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I have a dropdownlist who's datasource is a ObjectCollection. I have 3 variables within the Object. The Dropdown list works fine and shows the name variable from the object. Below is some code that explains what i'm doing however I get a compiler error that the cast can't be done.
int number = ((Object)dropdownlist1.selecteditem).num;
For some reason i get a cannot convert a type system.web.ui.listitem to projectname.int
Any ideas?
|
|
|
|
|
It is because you converted the selecteditem to an object which doesn't have the num property.
What is projectname.int? projectname is a class? Can you please show the code that you use to bind the dropdownlist?
|
|
|
|