not loggin in behind iframes...

Discussion in 'ASP .Net' started by Christiano Donke, Jul 23, 2008.

  1. i know that asp.net cannot work with frames... that it recognizes the frame
    as a single window...
    so far... no problem..


    i redesigned a site, giving it a frame with ads all around, and an iframe in
    the middle with the login pages...

    but now, when i click to login, the page flashes, but there is no login...
    it keeps just like that...


    have anyone ever seen this???


    tks,
    christiano.
     
    Christiano Donke, Jul 23, 2008
    #1
    1. Advertising

  2. Christiano Donke

    darrel Guest

    > i know that asp.net cannot work with frames... that it recognizes the
    > frame as a single window...


    I don't think that's true.

    > i redesigned a site, giving it a frame with ads all around, and an iframe
    > in the middle with the login pages...


    By 'frame' do you mean frameset?

    > but now, when i click to login, the page flashes, but there is no login...
    > it keeps just like that...


    It's impossible to say without knowing what your login page is doing.

    BUT...if you're building an asp.net site, why have frames at all? You can
    generate the adds server side and just put them in the HTML page itself.

    Frames should be avoided most of the time.

    -Darrel
     
    darrel, Jul 23, 2008
    #2
    1. Advertising

  3. Darrel,

    by frame i meant like a painting... it has a frame, just like a
    painting, where is place a flash animation, some ads, and partners logos...
    in the middle of it, is place the asp.net site itself...

    the login runs a simple sql password/username comparisson...

    the code is place below,...

    i used frames, because i don't want it reloading every redirect..


    tks,
    christiano.

    Code:


    Dim cmdComando As New SqlCommand

    Dim dtrAutentica As SqlDataReader

    'DEFINIÇÃO DO TIPO DE COMANDO E CONEXÃO

    cmdComando.CommandType = Data.CommandType.StoredProcedure

    cmdComando.Connection = ConBanco

    cmdComando.CommandText = "proc_SelAltenticaUsuario"

    'PASSANDO OS PARÂMETROS PARA A PROC

    Dim sLogin As SqlParameter = New SqlParameter("@sLogin",
    Data.SqlDbType.VarChar, 30) 'Username param

    sLogin.Value = txtLogin.Text

    cmdComando.Parameters.Add(sLogin)

    Dim sSenha As SqlParameter = New SqlParameter("@sSenha",
    Data.SqlDbType.VarChar, 12) 'Password Param

    sSenha.Value = txtSenha.Text

    cmdComando.Parameters.Add(sSenha)

    'ABRINDO A CONEXÃO JOGANDO O RETORNO DA PROC NO DATA READER

    ConBanco_Open()

    dtrAutentica = cmdComando.ExecuteReader()

    If dtrAutentica.Read Then

    'CASO TENHA ALGUM RETORNO, JOGA O RETORNO NA VARIAVEL DE SESSÃO

    Session("UsuaCodi") = dtrAutentica.Item("UsuaCodi").ToString

    Session("UsuaGrup") = dtrAutentica.Item("UsuaGrup").ToString

    Session("GereCodi") = dtrAutentica.Item("GereCodi").ToString

    Session("GereNome") = dtrAutentica.Item("GereNome").ToString

    'AUTENTITICA O USUARIO VIA FORMS E REDIRECIONA PARA A PAGINA

    FormsAuthentication.RedirectFromLoginPage(txtLogin.Text, False)

    Else

    'CASO NAO ENCONTRE O LOGIN O SEU ESTAO INCORRETO E EXIBE MENSAGEM

    lblErro.Visible = True

    End If

    ConBanco.Close()







    Web.conf:



    <authentication mode="Forms">

    <forms name="ESCOLTAONLINE" loginUrl="login.aspx" protection="All"
    timeout="60"/>

    </authentication>

    <authorization >

    <deny users="?"/>

    </authorization>

    </system.web>

    <location path="Imagens">

    <system.web>

    <authorization>

    <allow users="?"/>

    </authorization >

    </system.web>

    </location>

    <location path="jeff.css">

    <system.web>

    <authorization>

    <allow users="?"/>

    </authorization >

    </system.web>

    </location>

    <location path="ESCOLTA ON LINE.pdf">

    <system.web>

    <authorization>

    <allow users="*"/>

    </authorization >

    </system.web>

    </location>

    "darrel" <> escreveu na mensagem
    news:...
    >> i know that asp.net cannot work with frames... that it recognizes the
    >> frame as a single window...

    >
    > I don't think that's true.
    >
    >> i redesigned a site, giving it a frame with ads all around, and an iframe
    >> in the middle with the login pages...

    >
    > By 'frame' do you mean frameset?
    >
    >> but now, when i click to login, the page flashes, but there is no
    >> login... it keeps just like that...

    >
    > It's impossible to say without knowing what your login page is doing.
    >
    > BUT...if you're building an asp.net site, why have frames at all? You can
    > generate the adds server side and just put them in the HTML page itself.
    >
    > Frames should be avoided most of the time.
    >
    > -Darrel
     
    Christiano Donke, Jul 28, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luc Kumps

    Loggin all http Request

    Luc Kumps, Jul 1, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    347
    Luc Kumps
    Jul 2, 2003
  2. Lee

    Loggin in on the fly

    Lee, Feb 11, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    335
  3. Ajay

    loggin

    Ajay, Aug 28, 2004, in forum: Python
    Replies:
    1
    Views:
    556
    Vinay Sajip
    Sep 7, 2004
  4. flamesrock
    Replies:
    0
    Views:
    330
    flamesrock
    Apr 29, 2005
  5. Greg Dharma
    Replies:
    6
    Views:
    372
    Jorgen Grahn
    Jun 14, 2009
Loading...

Share This Page