Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

The name <name> does not exist in the current context

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Montand - 19 Feb 2008 20:41 GMT
Hello Group
Im really new in dotnet and i am modifying what the other programmer did, Im
using VStudio 2005 Pro. I have 16 errors when build the project and all
return this error, i know every one is independent so i going to post just
one: (I don't know if is enough with this code to know what's the problem)
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace sncf.organisms
{
/// <summary>
/// Summary description for groups.
/// </summary>
public partial class groups : System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
sncf.classes.sncfclass objSNCF= new sncf.classes.sncfclass();
objSNCF.stringsql="Select Id, f_GroupName from groups Where f_Type=5";
objSNCF.FillDataGrid(DataGrid1);
objSNCF.stringsql="Select Id, f_GroupName, f_Function from groups Where
f_Type=5";
objSNCF.FillDataGrid(DataGrid2);
}

// DataGrid1 and DataGrid2 send me this error.... WHY ??????????????????

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
}
#endregion
protected void LinkButton1_Click(object sender, System.EventArgs e)
{
Response.Redirect("../documents.aspx?Id=5");
}
protected void LinkButton2_Click(object sender, System.EventArgs e)
{
Response.Redirect("../Reunions.aspx?Id=5");
}
}
}

Thanks for your help

________________________
Victor Lopez (Montand)
INDETEC
Alexey Smirnov - 20 Feb 2008 08:09 GMT
> Hello Group
> Im really new in dotnet and i am modifying what the other programmer did, Im
[quoted text clipped - 31 lines]
>
> // DataGrid1 and DataGrid2 send me this error.... WHY ??????????????????

DataGrid1 and DataGrid2 refer to a DataGrid controls on the web form.
Do you have these controls on your page? Check if they have right name
(DataGrid1 and DataGrid2)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.