List Info

Thread: Looking for Code generator




Looking for Code generator
user name
2006-07-05 18:59:58
Actually, you might try doing a VB or C# application instead
of an ASP.Net
application.  Then you would get the code generated for what
you are looking
for.

Otherwise Conessto or Iron Speed are 2 alternatives to
learning how to do it
yourself.

Robert L. Stewart
The Dyson Group International
Software for the Non-profit Enterprise
Expanding your Sphere of Knowledge


Quoting Automatic digest processor <LISTSERVDISCUSS.DEVELOP.COM>:

> Date:    Tue, 4 Jul 2006 15:41:11 +0200
> From:    Boster Sibande <bosterICTMALAWI.ORG>
> Subject: Looking for Code generator.
>
> Good people,
> I am developing a database driven web application. I do
not want to write
> too much code from scratch. Therefore, I want to use
the Visual Studio
> controls and wizards. However, the problem I have is
that the wizards
> produce ASP.Net code while I want VB or C# code. Is
there a tool that can
> help me convert the ASP.Net code generated to VB or C#.
>
> Example:
>
> ASP.Net Code
> <asp:GridView ID="GridView1"
runat="server"
AutoGenerateColumns="False"
>
DataSourceID="AccessDataSource1">...</asp:
GridView>
> <asp:AccessDataSource
ID="AccessDataSource1"
runat="server"
> DataFile="~/App_Data/testdb.mdb" 
SelectCommand="SELECT * FROM
> [Table1]"></asp:AccessDataSource>
>
> Should be converted to VB or C# Code as follows:
>
> string strOleDbconnection =
"Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=~/App_Data/testdb.mdb;)";
> OleDbConnection OleDbConnection = new
OleDbConnection(strOleDbconnection);
> OleDbCommand OleDbCommand = new
OleDbCommand("select * from table1",
> OleDbConnection);
> OleDbConnection.Open();
> OleDbDataReader reader = OleDbCommand.ExecuteReader();
> GridView1.DataSource = reader;
> GridView1.DataBind();
>
> Thanks,
> Boster.

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )