Mono -- cool. This might not be the best list for this question.
Are you sure that ByteFX is in the gac? Also a little googling indicates that there was a compilation issue with ByteFX late last year. Are you sure you have all the latest verisons and patches. Also might want to ask here http://groups.yahoo.com/group/mono/ http://groups.google.com/group/MonoDeveloper?lnk=gschg&hl=en And check here http://www.mono-project.com/Mailing_Lists for more resources On 10/24/05, dotnetjohnhyd <[EMAIL PROTECTED]> wrote: > Hi i John new to mono in these Web application i tried to display > data of mysql table Using Code Behind. i have > ByteFX.Data.dll in gac of mono. i have tried n number of method but i > did get it . My Code is ..... > > DataGridShow.aspx > <%@ Page language="c#" Src="DataGridShow.aspx.cs" > Inherits="WebAppMySql.WebForm1" %> > <body > > <form id="Form1" method="post" runat="server"> > <asp:Button id="btnDisplay" runat="server" Text="Data > From MySql" > Width="160px" > > Height="32px"></asp:Button> > <asp:DataGrid id="dgTable" style="Z-INDEX: 102; LEFT: 240px; POSITION: > absolute; TOP: 112px" runat="server"> > </asp:DataGrid> > </form> > </body> > </HTML> > DataGridShow.aspx.cs > 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; > using ByteFX.Data; > using ByteFX.Data.MySqlClient; > > namespace WebAppMySql > { > > public class WebForm1 : System.Web.UI.Page > { > protected System.Web.UI.WebControls.DataGrid dgTable; > protected System.Web.UI.WebControls.Button btnDisplay; > > private void Page_Load(object sender, System.EventArgs e) > { > > // Put user code to initialize the page here > > } > > private void btnDisplay_Click(object sender, System.EventArgs > e) > { > MySqlConnection con = new > MySqlConnection("Server=localhost;uid=;pwd=;database=test"); > MySqlDataAdapter adp = new MySqlDataAdapter("select * > from > Student",con); > DataSet ds = new DataSet(); > adp.Fill(ds,"Stud"); > dgTable.DataSource=ds.Tables["Stud"]; > dgTable.DataBind(); > } > > > } > } > > # mcs /t:library /out:bin/WebAppMySql.dll -r:System.Web > -r:System.Data.SqlClient -r:System.Data -r:ByteFX.Data > > -r:System.Drawing AssemblyInfo.cs Global.asax.cs DataGridShow.aspx.cs > Compilation Successful > But when i open the brower and type > http://localhost/demo/WebAppMySql/DataGridShow.aspx > i am getting error > > Compilation Error > Description: Error compiling a resource required to service this > request. Review your source file and modify it to fix this > > error. > > Error message: > /usr/local/lib/xsp/test/WebAppMySql/DataGridShow.aspx.cs(13,7) : error > CS0246: The type or namespace name > > `ByteFX' could not be found. > > any body who know solution plz help me > > > > > > > > > > Yahoo! Groups Links > > > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
