Click here to Skip to main content
15,884,388 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: visual studio for mac, Unexpected character '�' (CS1056) Pin
Richard MacCutchan18-Mar-19 22:57
mveRichard MacCutchan18-Mar-19 22:57 
QuestionNot declared or inaccessible due to protection levels - VS 2017 errors Pin
Member 876166718-Mar-19 8:42
Member 876166718-Mar-19 8:42 
AnswerRe: Not declared or inaccessible due to protection levels - VS 2017 errors Pin
Richard Deeming18-Mar-19 9:27
mveRichard Deeming18-Mar-19 9:27 
GeneralRe: Not declared or inaccessible due to protection levels - VS 2017 errors Pin
Member 876166718-Mar-19 10:52
Member 876166718-Mar-19 10:52 
GeneralRe: Not declared or inaccessible due to protection levels - VS 2017 errors Pin
Richard Deeming19-Mar-19 2:01
mveRichard Deeming19-Mar-19 2:01 
GeneralRe: Not declared or inaccessible due to protection levels - VS 2017 errors Pin
Member 876166719-Mar-19 23:08
Member 876166719-Mar-19 23:08 
GeneralGrid view select operation to update data from form view Pin
Member 1418527517-Mar-19 1:01
Member 1418527517-Mar-19 1:01 
Questionnamespace error when using namespaces that don't match names ? Pin
Member 245846713-Mar-19 20:26
Member 245846713-Mar-19 20:26 
Suppose I create an asp.net website project that loads data into griview from the class library, declaring the library to use loading data for griview

//file: ChitietSP.aspx
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using System.Diagnostics; // Debug
using connectSQL; // warning

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
LoadData();
}
}
string sSQL;

private void LoadData()
{

sSQL = "SELECT * FROM TABKHACHHANG ";
sSQL += "ORDER BY MASOPHIEU;";
    GridView1.DataSource = ClsConnecSQL.FillDatatable(sSQL); //warning
}

}

//file: clsConnecSQL.cs

using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//using connectSQL;

namespace connectSQL
{
public class ClsConnecSQL
{
public static DataTable FillDatatable(string sSQL)
{
//Do somthing...
}
}

}
I have declared the library namespace to be used is still error, asking you to help me
using connectSQL; // warning
GridView1.DataSource = ClsConnecSQL.FillDatatable (sSQL); // error not found connectSQL namespace
QuestionRe: namespace error when using namespaces that don't match names ? Pin
Richard MacCutchan13-Mar-19 22:24
mveRichard MacCutchan13-Mar-19 22:24 
AnswerRe: namespace error when using namespaces that don't match names ? Pin
Eddy Vluggen14-Mar-19 2:20
professionalEddy Vluggen14-Mar-19 2:20 
SuggestionRe: namespace error when using namespaces that don't match names ? Pin
Richard Deeming14-Mar-19 8:44
mveRichard Deeming14-Mar-19 8:44 
GeneralRe: namespace error when using namespaces that don't match names ? Pin
Member 24584673-May-19 20:35
Member 24584673-May-19 20:35 
AnswerRe: namespace error when using namespaces that don't match names ? Pin
Member 245846717-Mar-19 23:04
Member 245846717-Mar-19 23:04 
QuestionCapture Search Engine Keyword Pin
Otekpo Emmanuel12-Mar-19 15:09
Otekpo Emmanuel12-Mar-19 15:09 
AnswerRe: Capture Search Engine Keyword Pin
F-ES Sitecore13-Mar-19 1:02
professionalF-ES Sitecore13-Mar-19 1:02 
QuestionCommunication between 2 MVC API's on the same server Pin
Fred28345-Mar-19 21:19
Fred28345-Mar-19 21:19 
AnswerRe: Communication between 2 MVC API's on the same server Pin
Afzaal Ahmad Zeeshan6-Mar-19 1:34
professionalAfzaal Ahmad Zeeshan6-Mar-19 1:34 
GeneralRe: Communication between 2 MVC API's on the same server Pin
Fred28346-Mar-19 2:03
Fred28346-Mar-19 2:03 
AnswerRe: Communication between 2 MVC API's on the same server Pin
Nathan Minier6-Mar-19 1:59
professionalNathan Minier6-Mar-19 1:59 
GeneralRe: Communication between 2 MVC API's on the same server Pin
Fred28346-Mar-19 2:20
Fred28346-Mar-19 2:20 
QuestionOpenID, ADSF, custom LoginID Pin
Super Lloyd28-Feb-19 14:52
Super Lloyd28-Feb-19 14:52 
QuestionUsing SelectList for dropdown binding (ASP.NET Core) Pin
Member 1416479527-Feb-19 4:42
Member 1416479527-Feb-19 4:42 
AnswerRe: Using SelectList for dropdown binding (ASP.NET Core) Pin
Richard Deeming27-Feb-19 8:10
mveRichard Deeming27-Feb-19 8:10 
GeneralRe: Using SelectList for dropdown binding (ASP.NET Core) Pin
Member 1416479527-Feb-19 8:20
Member 1416479527-Feb-19 8:20 
QuestionCapture and report JavaScript errors Pin
dataminers25-Feb-19 21:46
dataminers25-Feb-19 21:46 

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.