|
Just use relative path as I mentioned.
~/xx/a/DSC08182.JPG will automatically point to
http://localhost/xx/aa/DSC08182.JPG if you are running from localhost.
Cheers.
|
|
|
|
|
|
Hi,
Forms authentication not working in my system.....
Same code working in others system.....
Send me some solution
Regards
Jayabharathi
|
|
|
|
|
rjayaabharathi@gmail.com wrote: Forms authentication not working in my system.....
Same code working in others system.....
Do you expect that we have to guess that what is not working in your system, what error you are getting or What is working on other system ?
Please be specific while asking any question so that we can help you out.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hi
not throwing any exception....
but always returning User.Identity.IsAuthenticated = false
|
|
|
|
|
Try like this
Page.User.Identity.IsAuthenticated
or
HttpContext.Current.User.Identity.IsAuthenticated
if the same problem comes let me know..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
|
Where r u writing the above code..!Can You show the sample code..!
and the other thing wat abt the IsApproved Status ..!Is it false or True by default..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
in page load,
If User.Identity.IsAuthenticated = True And User.Identity.Name = HttpContext.Current.Session("username") Then
Else
Response.Redirect("..\index.aspx")
End If
|
|
|
|
|
rjayaabharathi@gmail.com wrote: but always returning User.Identity.IsAuthenticated = false
Does your application hosted on IIS? What authentication mode are you using on IIS ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
LOl I am Not answering This..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
sashidhar wrote: LOl I am Not answering This..!
I got your point !!!
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
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?
|
|
|
|