|
Visit
http://forums.asp.net/t/1286671.aspx
|
|
|
|
|
I have a modalpopupextender for an ajax popup login window on my site. After the user logs in, I want to close the modalpopupextender and redirect them to the page they originated from (I'm using "FormsAuthentication.RedirectFromLoginPage" for this), however I'm getting a "pagerequestmanagerparsererrorexception" javascript error after I click login and try to perform the RedirectFromLoginPage. Is there a way around this issue?
My code looks like the following (I allow the user to login via their email address, hence the "GetUserNameByEmail" line in the code). It fails on the FormsAuthentication.RedirectFromLoginPage... line:
----------------------------------------------------------------------------------------------------------------------------
protected void LoginButton_Click(object sender, EventArgs e)
{
LoginButton.Attributes.Add("onClick", "this.blur();");
string username = Membership.GetUserNameByEmail(Email.Text);
if (Membership.ValidateUser(username, Password.Text))
{
FormsAuthentication.RedirectFromLoginPage(username, RememberMeCheckbox.Checked);
}
else
{
InvalidLoginLabel.Visible = true;
ModalPopupExtenderLogin.Show();
}
}
------------------------------------------------------------------------------------------------
I understand ajax fails when you try to do a redirect such as this but I don't know of an alternate way to achieve this. Any ideas?
Thanks.
-Goalie35
|
|
|
|
|
Same is posted in Web development......
|
|
|
|
|
I have a page that uses a master page. I have a button that when clicked, should display a popup message like a confirm message, then process (add or remove data to the table).
If processing is chosen, then I want to send some message back to the parent to refresh or do something else.
With javascript and html controls like input type=submit etc, sending messages back and forth is simple.
But how do I do it when I have server side processing to do?
I am sure there are ways.
Thanks.
|
|
|
|
|
There is this new thing people have been talking about, maybe you've heard of it; Ajax?
only two letters away from being an asset
|
|
|
|
|
Yes, sure I did. I am using some basic AJAX on my pages to prevent refreshing of the whole page.
But I don't know how to solve this problem I mentioned.
Can you please direct me to the right way?
Thanks.
|
|
|
|
|
You are using an Ajax enabled control, most likely the UpdatePanel. However, Ajax is more than jest a set of controls and can be used for client-server communication.
Start
here[^]
only two letters away from being an asset
|
|
|
|
|
Should I visit the town of Ajax as well? In the google search I found that too.
Just kidding - thanks.
|
|
|
|
|
window.opener.parentfunction(parametors to send)
i think it will help you where parent function is written in javascript of parent page from where popup is open.
umerumerumer
|
|
|
|
|
Hi!
My application is installed in an intranet, in the same domain from which i do the request with a client pc.
In the IIS(6.0) I disabled anonymous access, and i check Windows Integrated Authentication.
In the web.config I set
authentication mode="Windows"
authorization -> allow users="*"
This seems to be correct, but whenI try to access to the web application the credential prompt appear.
Now, How can i disable this prompt?
I read a lot of documentation in Internet, and i see that a possible solution is to set the option security of IE ( custom level -> user authentication -> anonymous log only ith user name and password ), but also this doesn't work.
Can someone help me?
Thank you in advance.
Alberto
|
|
|
|
|
cruscotto wrote: read a lot of documentation in Internet, and i see that a possible solution is to set the option security of IE ( custom level -> user authentication ->
after done this do you restart the browser ?
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
cruscotto wrote: option security of IE ( custom level -> user authentication ->
Then select "Automatic Logon only in Intranet Zone".
and
cruscotto wrote: authorization -> allow users="*"
is not required...
|
|
|
|
|
what is mean by asp? asp funtions?
|
|
|
|
|
|
|
gmPhil wrote: JFGI[^]
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
logu070 wrote: asp
A type of snake, no?
|
|
|
|
|
what is google ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am getting this error
Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'
my site is on the server, so i guess, i need to remove the 'dbo.' from 'dbo.aspnet_CheckSchemaVersion'.
But i m not able to locate this.
I am getting this error, when i am attempting to login ( same error on registration page ).
All other pages are working fine.
Please help me out of this.
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
apr ~ asp wrote: I am getting this error
Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'
I believe you are using Membership or Profile in asp.net . Did you register your SQL server for that ?
Please run aspnet_regsql from your command prompt and choose the database you are using. Then Again run the application .
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Thanx for ur reply ....
i already did that ...
My site works perfectly for local database, for remote database, i guess dbo. extension has to be removed.
I removed the dbo. extension for other table adapters from the xsd file of the dataset.
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
apr ~ asp wrote: guess dbo. extension has to be removed.
I removed the dbo. extension for other table adapters from the xsd file of the dataset.
then , is it working now ?
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
everything is working fine, except the membership framework.
i m not able to locate
dbo.aspnet_CheckSchemaVersion
to remove "dbo."
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
Hi to All,
I am working on an internal web application. For this I am using ASP.NET 3.5, WCF for web service. WCF is handling all the database related work. I am using windows authentication for this application. In one machine I am hosting my web service by desktop application and Database server is different machine. I am using SQL server 2005 as database server.
After deploying the web application on IIS when I am accessing the database through web service, I cannot get the request login name in Database profiler. I am just getting the login name of user where I'm hosting the web service.
Thanks
Navi
|
|
|
|
|
Hi all
im trying to write a file to a database(stored as image), my program works fine in debug mode, and my file name is c:\\Test\\Test.jpg(contained in tboPath.Text)
When i run the application as an actual webpage from the server i get the error message "c:TestTest.jpg file name not found", even though the file is there. does anyone know whats causing this.
SqlParameter imgLogo = new SqlParameter("@LogoImage", SqlDbType.Image);
imgLogo.Direction = ParameterDirection.Input;
if (tboPath.Text != "")
{
imgLogo.Value = File.ReadAllBytes(tboPath.Text);
SqlCmd.Parameters.Add(imgLogo);
CheckImageExist(strFileName);
}
Thank you
|
|
|
|