Click here to Skip to main content
14,768,021 members
Home » Discussions » ASP.NET
   

ASP.NET

 
GeneralRe: Trying to open a pdf file in a new Tab on Chrome browser - not happening Pin
ZurdoDev3-Jan-20 8:46
professionalZurdoDev3-Jan-20 8:46 
GeneralRe: Trying to open a pdf file in a new Tab on Chrome browser - not happening Pin
simpledeveloper3-Jan-20 8:56
Membersimpledeveloper3-Jan-20 8:56 
GeneralRe: Trying to open a pdf file in a new Tab on Chrome browser - not happening Pin
simpledeveloper3-Jan-20 10:08
Membersimpledeveloper3-Jan-20 10:08 
QuestionHow I can insert data into gridview without use data source??? Pin
Nowiglah3-Jan-20 5:34
MemberNowiglah3-Jan-20 5:34 
AnswerRe: How I can insert data into gridview without use data source??? Pin
ZurdoDev3-Jan-20 7:30
professionalZurdoDev3-Jan-20 7:30 
GeneralRe: How I can insert data into gridview without use data source??? Pin
Nowiglah4-Jan-20 7:16
MemberNowiglah4-Jan-20 7:16 
AnswerRe: How I can insert data into gridview without use data source??? Pin
ZurdoDev4-Jan-20 8:46
professionalZurdoDev4-Jan-20 8:46 
QuestionError: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl) Pin
Member 24584672-Jan-20 21:41
MemberMember 24584672-Jan-20 21:41 
The website is working fine now I added MenuLeft.ascx into the folder "C:\WebSite2010\WebMaster\Controls\" when pressing the Rebuild website button with the error "Error: C:\WebSite2010\WebMaster\Controls\MenuTop.ascx.cs(14): error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)". Note that the folder "C:\WebSite2010\Controls\" already has a file with the same file name: MenuLeft.ascx now I copy the declaration of 2 files with the same name, how do I change the code ?
in the file: C:\WebSite2010\Controls\MenuLeft.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuLeft.ascx.cs" Inherits="MenuLeft" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register Src="~/Controls/ThuvienHinhAnh.ascx" TagPrefix="uc" TagName="ThuvienHinhAnh" %>
<%@ Register Src="~/Controls/QuangCaoLeft.ascx" TagPrefix="uc" TagName="QuangCaoLeft" %>
<%@ Register Src="~/Controls/WebURL.ascx" TagPrefix="uc" TagName="WebURL" %>
<%@ Register Src="~/Controls/Newsletter.ascx" TagPrefix="uc" TagName="Newsletter" %>
<%@ Register src="DanhMucBDS.ascx" tagname="DanhMucBDS" tagprefix="uc" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<table cellspacing="0" cellpadding="0" width="180" border="0">
...
</table>
in the file: C:\WebSite2010\WebMaster\Controls\MenuLeft.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuLeft.ascx.cs" Inherits="MenuLeft" %>
<%@ Import Namespace="webapp4U" %>
<table width="185px" border="0" cellpadding="0" cellspacing="0">
...
</table>

AnswerRe: Error: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl) Pin
ZurdoDev3-Jan-20 7:32
professionalZurdoDev3-Jan-20 7:32 
GeneralRe: Error: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl) Pin
Member 24584677-Jan-20 18:13
MemberMember 24584677-Jan-20 18:13 
QuestionASP .NET list of text boxes not aligning properly Pin
Member 1462055328-Dec-19 17:23
MemberMember 1462055328-Dec-19 17:23 
AnswerRe: ASP .NET list of text boxes not aligning properly Pin
Member 1462055329-Dec-19 2:38
MemberMember 1462055329-Dec-19 2:38 
QuestionASP.Net MVC: How to print raw model in razor view Pin
Mou_kol24-Dec-19 23:19
MemberMou_kol24-Dec-19 23:19 
AnswerRe: ASP.Net MVC: How to print raw model in razor view Pin
F-ES Sitecore25-Dec-19 10:17
mveF-ES Sitecore25-Dec-19 10:17 
QuestionallowDefinition='MachineToApplication' beyond application level Pin
kuldeeps2117-Dec-19 5:53
Memberkuldeeps2117-Dec-19 5:53 
AnswerRe: allowDefinition='MachineToApplication' beyond application level Pin
Richard Deeming17-Dec-19 6:07
mveRichard Deeming17-Dec-19 6:07 
QuestionScrape with htmlagilitypack problems Pin
Member 175325016-Dec-19 7:02
MemberMember 175325016-Dec-19 7:02 
AnswerRe: Scrape with htmlagilitypack problems Pin
Richard Deeming16-Dec-19 9:41
mveRichard Deeming16-Dec-19 9:41 
GeneralRe: Scrape with htmlagilitypack problems Pin
Member 175325018-Dec-19 12:22
MemberMember 175325018-Dec-19 12:22 
QuestionASP.Net MVC: How data is serialize into model when pass to client side from action Pin
Mou_kol15-Dec-19 10:33
MemberMou_kol15-Dec-19 10:33 
AnswerRe: ASP.Net MVC: How data is serialize into model when pass to client side from action Pin
Richard Deeming16-Dec-19 9:30
mveRichard Deeming16-Dec-19 9:30 
GeneralRe: ASP.Net MVC: How data is serialize into model when pass to client side from action Pin
Mou_kol24-Dec-19 22:14
MemberMou_kol24-Dec-19 22:14 
GeneralRe: ASP.Net MVC: How data is serialize into model when pass to client side from action Pin
Richard Deeming7-Jan-20 9:09
mveRichard Deeming7-Jan-20 9:09 
QuestionHow do I change this code using Inheritance? Pin
Marc Hede12-Dec-19 22:39
MemberMarc Hede12-Dec-19 22:39 
AnswerRe: How do I change this code using Inheritance? Pin
Richard MacCutchan12-Dec-19 23:15
mveRichard MacCutchan12-Dec-19 23:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.