.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

cannot find resource login.aspx

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :ASP.Net
I have set up users with the membership provider and thus have a database in my vwd2008 app named aspnetdb.mdf.  I added another "database2" to the app.  I set up a form to login called Default.aspx.  Once logged In the user is taken to Default2.aspx.  On Default2, I have a GridView connected to database2.  What I am doing is trying to view Default2 without logging in and prompt a response.  Instead I get the error 404 that login.aspx cannot be found.  HOw do I correct this? On Default2 Page Load......If Not Page.IsPostBack Then Response.Write("Gotcha") End If Does this have anything to do with me using two databases in the same web app ?

View Complete Post

More Related Resource Links

return url in aspx refreshes the page when I click login after entering user name and password

Hello,   I need help as I am struggling to login into my web portal on my new sony vaio laptop. I think that I need to do some settings, or download some plugin. Infact I don't know what to do, as I have spent many hours trying to login, but no success. Below is my office website:   http://www.lantec-uk.net/SignIn.aspx?ReturnUrl=%2fdefault.aspx When I enter my credentials and click login, the web page gets refreshed, i.e username and password get erased, rather than taking me into my web-portal. The laptop is having windows 7 home premium, with ie8. I have also tried installing firefox, chrome, opera and safari, but same problem. Somebody please help, as sony has refused to take the laptop back and they are saying that there is problem with website. Similarly, website staff are saying that there is a problem with the laptop and not with the website.   Any help highly appreciated. 

Unable to find static resource in runtime even while designer can see it

So i have:    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Werp.MigrationHelper"> <Style TargetType="{x:Type UserControl}" x:Key="WizardPageControl" x:Name="WizardPageControl"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type UserControl}"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="10" /> <ColumnDefinition Width="475" /> <ColumnDefinition Width="10" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="10" /> <RowDefinition Height="410"/> <RowDefinition Height="50" /> <RowDefinition Height="10" /> </Grid.RowDefinitions> <StackPanel Orientation="Vertical" Name="MainContent" Grid.Row="1" Grid.Column="1"> <ContentPresenter Content="{TemplateBinding Content}"/> </StackPanel> <StackPanel Grid.Column="1" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center&qu

Find User Password by Username Before Login


hi guys,

I have only username. and want to check and grab the password from the database. It is BEFORE LOGGING IN. so I don't think the build-in asp.net functions could be used, right?

thanks a lot!!

List.aspx Resource not found error



i recently merged my dynamic data web application to an existing web application, everything works fine in my machine, when i move the code to another machine it doesnt work, both are VS2008 with SP1, below is the structure

Root > Support > SupportMaster.aspx (this is the default.aspx file which gets created when you create a dynamic data entities web application)

Root > DynamicData > [contains all the default files]

http://localhost:1234/Support/SupportMaster.aspx list downs the list of tables which i have put in the LINQ to SQL file

when i click one of the table Airlines, the url becomes http://localhost:1234/airlines/list.aspx, this url works in my machine but the same doesnt work in the other machine

it gives an resource not found error, please help, im going nuts to figure this out


"403 forbidden" Error in my Custom login page, cant find problem

I Created a custom login page using Sharepoint Application page which is cofigured with FBA.  but every time redirect to http://testsp.max-perf.com/_layouts/DataQ.Extranet/test.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F .  I have  Win2008 (not r2) and sp2010. Thank you.

Can't find resource dictionary


I'm using VS2010, .net 4, in a pure WPF app. I'm using the code here to customize an expander control


I've put the code in a separate xaml file (/Styles/ScreenStyles.xaml) and included it via my app.xaml file using a merged dictionary

<Application x:Class="WpfApplication1.App"

Xaml cannot find StaticResource even sure the resource is defined



I'm having trouble using static resources for color schemes in my user interface library. I have my Generic.xaml file, where I "include" all the other resource dictionary files:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">


  <ResourceDictionary Source="/Moonlite.Platform.Shell.UI;component/Themes/ColorSchemes/Default.xaml" />


Forms Authentication -> login.aspx bypass and auto-create user?


Can I do the following, if I have 'this' within my web.config:

        <authentication mode="Forms">
            <forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH" timeout="120"/>

        <authentication mode="Forms">

            <forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH" timeout="120"/>


use Login.aspx Form as a webpart

You cannot vote on your own post hi.

how i can change appearance of FBA form in sharepoint 2007?

I want to show Login part in left navigation in my site? how i can do it?

Im very appriciated if anyone help me & give me a sample.

use Login.aspx Form as a webpart



can i use one sharepoint form such as Login.aspx (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS) as a webpart in my sharepoint homepage site?

i want to change appearance FBA form in sharepoint. i want to use Login part in my homepage in left navigation bar.how can i do that?

Im very appriciated if anyone help me & give me a sample.

How to create a Login Page.aspx via WebService


Does anyone know where I could look to find how to create a simple login page.aspx via WebService? 

How to find Resource Deadlock on the database / server?


How to find Resource Deadlock on the database / server?please help me...



i am using sql server 2008 and my jobs fail due to deadlock so i want to capture the root cause.please help me

Where can I Find Free PHP Resource?


  I have seen a lot of people asking for sites that can free download PHP script .I have the same problem

Thanks for your help!

iPad converterformac|| ipdfconverter

Error CrystalImageHandler in .aspx login page


I Nhave a asp.net+sqldatabase+vb web application which was working fine now after the editing some pages the eoor below comes please help to rectify


Line 109: <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers> 

Code works on aspx but not ascx


Not sure which category to put this question in, so I will put it in here.

Just to give you an idea of the layout of my solution, I have the main project, along with 2 class libraries, BLL and DAL.  (Business Logic Layer and Data Access Layer)

The BLL refers to the DAL and the main project refers to the BLL.

I had a test website and the code worked fine, but the same code will not work on the real project. The only difference is that in the test project, the code was on an aspx code behind, whereas in the real project, it is an ascx code behind (Web User Control )

The code is:

Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString
        Dim recordEntry As New UserRecord(connectionString)
        recordEntry.UserName = "TestName"
        recordEntry.BMI = bMI
        recordEntry.BMR = bMR
        recordEntry.FTM = fTM
        recordEntry.TDEE = tDEE
        recordEntry.TodayDate = dateForToday

Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString

Create an API (aspx vs mvc)


Hi everybody!

I'm not sure if this is the right place to ask this, so, sorry if it's not. I have to create a web application. I can handle that. But, it has a requirement I've never done before. I need to create an API for that application, so other apps can get or set information from/to my webapp.

I've been searching a lot and still don't have a starting point. Seems that MVC is really good to do that, but I'm not familiar with MVC, so I would need a starting point. I was thinking to do it in aspx (Framework 4), but do not know how to do that with aspx either.

Can anyone help me to get started with this?

Thanks in advance

Launch CMD File From ASPX Page


My organization uses a CMD file to install updated files for a major enterprise application. Currently, we send out an email to users with a link to the file and instructions to run it, BUT inevitably users don't update their machines until their in field and try to start the app.


We're now liking the idea of using an ASPX page to prompt the users to run the updates and to capture the fact that the updates have been run. I realize that we can't capture the success or failure of the update. But we'd like to capture the user accessed the page.


Is it possible to embed into the markup for the page a link to the file on the local intranet that the users can click on to run the file?

The user accessing the page would capture that they did just that. We'd deal with wether or not the update was actually installed or if it failed later with them directly.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend