Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

De_Novice

@De_Novice
About
Posts
14
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Google map with multiple markers
    D De_Novice

    Venu, I have used the control from subgurim to achieve what you are looking for. It works good. Have a look at it. Here is the link Thanks

    ASP.NET database tutorial

  • Aspx Login and Sql Server Problem - Help Me :(
    D De_Novice

    I have a weird problem:- I have a two databases(A and B). Database A is used by the company's site and everything works fine. I created database B that uses the same user as Database A. I have created a base login site ( site B) using SQL membership provider in asp.net2.0 and this site connects to Database B, everything works fine locally but when I publish this site and upload it I cannot get the user log in. 1) I tired testing with the forgot password and I get the error "We were unable to access your information. Please try again. ". So I thought it was the web confog problem, to rule it out I changed the connection in siteB's web config to point to database A and it works fine. If I change the conection to dabase B it doesnt work. 2) I have added the application name setting too in the webconfig Here is the web config:-

    <connectionStrings>
    <add name="dbconnection" connectionString="Data Source=SQLOLEDB.1;Data Source=.;Initial Catalog=DatabaseB;User ID=test;Password=test123"/>

    			<remove name="LocalSqlServer"/>
    	<add name="LocalSqlServer" connectionString="Data Source=SQLOLEDB.1;Data Source=.;Initial Catalog=DatabaseB;User ID=test;Password=test123"/>
    </connectionStrings>
    <system.web>
    	<roleManager enabled="true">
    		<providers>
    			<add name="SqlRoleManager"
    				 type="System.Web.Security.SqlRoleProvider"
    				 connectionStringName="LocalSqlServer"
    				 applicationName="/SiteB" />
    		</providers>
    	</roleManager>
    
    <connectionStrings>
    

    What am I doing wrong? Is there some permission that is not set in the new database. Its a basic SQL Server 2005 database and I used the aspnet sql tool to create the tables for the sql server membership. Please help. I am stuck on this for over 72 hours.

    ASP.NET help asp-net database csharp sql-server

  • Sql Membership / Login works local but not on production server
    D De_Novice

    Please help

    ASP.NET help question csharp database sysadmin

  • Sql Membership / Login works local but not on production server
    D De_Novice

    Hi All, I have created a basic login site, right now just has a login and forgetpassword page. The site works perfectly locally but on publishing when I navigate to forgotpassword page after typing the username and click submit I get the following error "We were unable to access your information. Please try again. " Also when I am trying to login I get the error"Invalid Username Or Password". Why does it work locally and not on the production server? Here is my web config file, I am unable to figure this out. Have done a lot of research and would appreciate your help.

    <?xml version="1.0"?>
    <configuration>
    <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    </sectionGroup>
    </sectionGroup>
    </sectionGroup>
    </configSections>

    <!-->Mail Setting-->
    <system.net>
    	<mailSettings>
    
    ASP.NET help question csharp database sysadmin

  • 403(The website declined to show this webpage) Error - WebConfig Authorization - Need to redirect to login
    D De_Novice

    ok.. I changed the setting for the admin folder from deny users "*" to deny users"?" and it worked.

    <location path="Admin">
    <system.web>
    <authorization>
    <allow roles="Admin"/>
    <deny roles="Employee"/>
    <deny users="?"/>
    </authorization>
    </system.web>

    what is the difference between * and ?.

    ASP.NET security database com help question

  • 403(The website declined to show this webpage) Error - WebConfig Authorization - Need to redirect to login
    D De_Novice

    Here is a part of the web config file from the production:

    <authentication mode="Forms" >
    <forms loginUrl="login.aspx" >
    </forms>
    </authentication>

          <authorization>
        <allow roles="Admin, Employee"/> 
        <deny users="\*"/>
      </authorization>
    
    </system.web>
    
    
          <location path="Admin">
      <system.web>
        <authorization>
          <allow roles="Admin"/>
          <deny roles="Employee"/>
          <deny users="\*"/>
        </authorization>
      </system.web>
    </location>
    

    Why does it work in development and not when published. I havent changed any settings from development to publish accept the database connection string.

    ASP.NET security database com help question

  • 403(The website declined to show this webpage) Error - WebConfig Authorization - Need to redirect to login
    D De_Novice

    Hi, I have created a sample login site using SQL membership provider and authentication and authorization. The admin folder has a default.aspx and in the web config I have denied access to users who are not of role admin and any other user. When I run the code with the admin/default.aspx as start page locally, it works fine by redirecting me to login page. However on publish when I type in www.domainname.com/admin/default.aspx, I get the error that "The website declined to show this webpage, Most likely causes:This website requires you to log in.". How can I make it redirect to login page. Thanks

    ASP.NET security database com help question

  • Deny access to an aspx menu in webconfig, Role Based Authorization
    D De_Novice

    Hi, I am using role based authorization. Is it possible to deny access to a control using webconfig. I have created a menu ( not from sitemap) in the master page and I want this menu to be accessible only by users in roles and not by everyone else. I know I can make it invisible in login page etc but is there any other way? Here is a part of the web config code

    ASP.NET security question

  • DataList web user control
    D De_Novice

    Hi, I am not sure if this is possible. I am exploring web user controls. I have created a datalist user control (datalist.ascx). I have added this control to my default page. Now I want to bind data to this datalist. I am not sure how to do that. I am testing with user controls and any help will be appreciated. Here is my code: default.aspx

    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default" title="Untitled Page" %>

    <%@ Register Src="datalist.ascx" TagName="datalist" TagPrefix="uc1" %>
    <%@ MasterType VirtualPath="~/MasterPage.master" %>;

    default.aspx.vb

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim cmd As New SqlCommand("ws_Testimonials")
    Try
    If dalaccess.Connect = True Then
    rs1 = dalaccess.GetDataset(cmd, 60)
    dalaccess.Disconnect()
    Datalist1.datasource = rs1
    Datalist1.DataBind()
    End If
    Catch ex As Exception
    End Try

    I get the compilation error that "Error 1 'datasource' is not a member of 'ASP.datalist_ascx'." Gurus please help.

    ASP.NET help winforms testing beta-testing tutorial

  • Handle master page button(s) click events on content page
    D De_Novice

    There is also an abstract approach. I am new to classes and delegate events, kindlt explain in detail to a beginner.

    ASP.NET question csharp asp-net design sales

  • Handle master page button(s) click events on content page
    D De_Novice

    I have a master page ( masterpage.master) that has 2 link buttons lnkbtn_save and lnkbtn_edit. I have 2 content pages ( product and customer). When the user is on customer.aspx and clicks the lnkbtn_edit I want the controls on the customer page to be enabled and when the user clicks lnkbtn_save, I want the customer data to be saved. Basically the linkbuttons click event needs to be handles in the content page. learning for the fist process in this video ()[^] I could create a click event for one link button. How would I do this for two buttons. Here is my code:-- masterpage.aspx.vb

    Partial Class MasterPage
    Inherits System.Web.UI.MasterPage
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub
    
    Protected Sub lnkbtn\_save\_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
    
    End Sub
    
    Public ReadOnly Property Masterbtnsave() As LinkButton
        Get
            Return lnkbtn\_Save
        End Get
    
    End Property
    

    End Class

    customer.aspx.vb

    Partial Class customer
    Inherits System.Web.UI.Page

    Protected Sub Masterbtnsave\_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        MsgBox("from customer page")
    End Sub
    Protected Sub Page\_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
        AddHandler Me.Master.Masterbtnsave.click, AddressOf Masterbtnsave\_Click
    
    End Sub
    

    End Class

    My question is: in the masterpage code behind I am returning the actual name of the lnkbutton in the property, how can I make this such that it returns the name of the button that was clicked. And then in the content page based on the button that was clicked some code is executed. Any help will be appreciated

    ASP.NET question csharp asp-net design sales

  • Access content page procedure from master page button
    D De_Novice

    what will the EventArgs be? How does this work. Can you give me a working example? Thank you for your time.

    ASP.NET csharp help question

  • Access content page procedure from master page button
    D De_Novice

    I do not understand , where would you create the event in the code behind of master page? Could you give soe more explanation and codesnipped vb?

    ASP.NET csharp help question

  • Access content page procedure from master page button
    D De_Novice

    Hi Gurus, This is the situation:- I have a master page (masterpage.master) that contains a save button (btn_save). There are 3 contentpages that inherit this master page, each content page needs to use the save button but use the procdure for the content page. How do I make this happen that when user is on contentpage1 and user clicks save button, the procedure to save for contentpage1 is executed. I am new to .net and have searched the web but in vain. Will appreciate any help. I am using Vb.net ,kindly reply with code / explanation in vb. Thanks

    ASP.NET csharp help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups