CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 4/11/2007 7:53:10 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 208 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
CodeDigger
Asp.Net User
how to view dataset designer generated c# code in ASP.NET projects (works fine for Windows projects)4/11/2007 7:53:10 AM

0

I dragged a couple of tables to a DataSet (no problem, DataTables get generated..)

wanted to "enhance" partial class but neither double click on DataSet (in Designer) nor "view code" option (on any DataTable) reveals c# code (as it does when writing windows apps) .

 So, how do you get to tthe source when writing for ASP.NET?

 
(okay, like always, explain your problem, make sure you don't miss anythign and voila! solved it yourself, found out how to get there a different way, post anyway, might make someone else happy)

 Solution: Menue -> Class view -> choose a generated (partial) class now your in generated code and from there it is, a piece of cake.


 

CodeDigger
Asp.Net User
Re: how to view dataset designer generated c# code in ASP.NET projects (works fine for Windows projects)4/11/2007 1:23:51 PM

0

just a quick note to the above:

VS doesn't lead you via view code to c# code because the code is generated on site (on web site) and you, during development are (usually) just local.

What this implies is that VS will not autom. create file for partial class extension of DataTable classes. TRhsi you will have tro do yourself. Having completed this you are free to enhance any normal partial class the DataSet Designer has created.

 using System;
using System.Data;
using System.Configuration;
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;

/// <summary>
/// Summary description for ImportDs
/// The following I added to App_Code/ImportDs.cs to extend "DataSet Designer generated" ImportDs class
/// </summary>
public partial class ImportDs : System.Data.DataSet {
  public string GetMyName() { return "Nobody does this to me"; }
}

 

 

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
how to view dataset designer generated c# code in ASP.NET projects ... ... generated c# code in ASP.NET projects (works fine for Windows projects) ... VS doesn't lead you via view code to c# code because the code is generated on site ... to extend "DataSet Designer generated" ImportDs class ...
Odd Typed DataSet Designer Errors - ASP.NET Forums Page view counter. Microsoft ASP.net ... C:\Projects\Learning\TDD\ DataAccessLayer\RecordingDataSet.Designer.vb. Code for Error #1 (Auto-Generated by DataSet Designer): ... The same project opened in a new solution works fine;; One project of my solution have a ... WINDOWS\assembly\GAC_MSIL\System. ...
vsnet ide Most Recent Posts It works fine for other project types except the web project. ... When writing a lot of code in either C# or unmanaged C++ the IDE becomes super super slow. .... created using the dataset designer in VS 2003 (using VB.NET). ... I want to develop an ASP.NET web control and in Visual Studio 2005 I'd like it to not ...
CodeProject: Using the ASP.NET 2.0 ReportViewer in Local Mode ... C#, SQL, Windows, .NET 2.0, ASP.NET, SQL 2005, VS2005, DBA, Dev ... View State ... Step 2: Create a DataTable in a typed DataSet using the DataSet Designer .... I've got windows forms project that uses the ReportViewer in local mode. .... click the refresh button inside the reportviewer control then it works fine , ...
CodeProject: Extending TableAdapters for Dynamic SQL. Free source ... Looking again at the DataSet in DataSet Designer, we see that even a very simple .... You can start by moving the auto-generated code that calls the Fill method out .... So your coding and C# and your doing an ASP.NET app and you are having the .... The windows form project uses this exact code but it works fine! ...

how to view dataset designer generated c# code in ASP.NET projects ... how to view dataset designer generated c# code in ASP.NET projects (works fine for Windows projects), > ROOT > NEWSGROUP > Asp.Net Forum ...






how to generate fixed number of rows in a gridview?

can i open a web project application after i install web applications projects?

generator of designer file failed

sharing code & classes among multiple web applications

problem with tutorial

sln file after publish website

where can i download the wap addin, because the microsoft link is broken!!

assembly problem

profile problems with service pack 1

various display settings and monitor sizes

problem when web app published but ok on asp.net development server

asp.net website on cd

compiler problem error cs0433

losing file permissions

can not create a solution with vs 2005 web application project

copy a wap

compare/contrast between wsp and wap

resources aren't being included in application assembly

can we extend the precompiled & deployed application in asp.net

unable to complete web application projects install

trying to override initialize method in custom membership provider...

"go to definition" of class method isn't work

wap can´t get installed

solution file re-writing web service project entry

event handler creation fails when class contains overloaded methods

problems with migrating from web site to wap: dubble declared controls and events

create a wap on a remote iis/frontpage extensions server

how to add an existing project to an asp.net solution

visual studio 2005 professional and windows 2003 server

"find all references" no longer works in web app projects under vs 2005?

   
  Privacy | Contact Us
All Times Are GMT