Search

You searched for the word(s): userid:779548

Matching Posts

  • Re: No overload for method 'Forum' takes '1' arguments

    localhost.Topic topic = new localhost.Topic(); string topicId = Request.QueryString["TopicID"].ToString(); public DataSet GetDataSetForum2(string id) { "SELECT * FROM Post WHERE ForumID='" + topicId + "'"; } datasource = topic.GetDataSetForum2(id); GridView1.DataSource = datasource; GridView1.DataBind(); This code is within the pageload within a try and catch statement. When I added the public dataset I got alot of errors. Have I put it in the wrong place?
    Posted to Web Forms (Forum) by JohnnyJ on 5/17/2008
  • Re: Web Service - No overload for method 'Forum' takes '1' arguments

    try { localhost.Topic topic = new localhost.Topic(); string topicId = Request.QueryString[ "TopicID" ].ToString(); public DataSet GetDataSetForum2( string id) { "SELECT * FROM Post WHERE ForumID='" + topicId + "'" ; } datasource = topic.GetDataSetForum2(id); GridView1.DataSource = datasource; GridView1.DataBind(); } catch {} This is correct, when I tried it I got loads of errors. Also this coding is located within the pageload.
    Posted to Web Forms (Forum) by JohnnyJ on 5/17/2008
  • Web Service - No overload for method 'Forum' takes '1' arguments

    [WebMethod] public DataSet GetDataSetForum2() { DataSet datasource = new DataSet(); string database = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|/topic.mdb;Persist Security Info=True" ; string queryStr = "Select * from Comment" ; OleDbConnection myConn = new OleDbConnection(database); OleDbDataAdapter myDataAdapter = new OleDbDataAdapter(queryStr, myConn); myConn.Open(); myDataAdapter.Fill(datasource, "Comment" ); myConn.Close(); return datasource;
    Posted to Web Forms (Forum) by JohnnyJ on 5/16/2008
  • Re: No overload for method 'Forum' takes '1' arguments

    [WebMethod] public DataSet GetDataSetForum2() { DataSet datasource = new DataSet(); string database = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|/topic.mdb;Persist Security Info=True" ; string queryStr = "Select * from Comment" ; OleDbConnection myConn = new OleDbConnection(database); OleDbDataAdapter myDataAdapter = new OleDbDataAdapter(queryStr, myConn); myConn.Open(); myDataAdapter.Fill(datasource, "Comment" ); myConn.Close(); return datasource;
    Posted to Web Forms (Forum) by JohnnyJ on 5/16/2008
  • Re: Select statement - gridview

    [WebMethod] public DataSet GetDataSetForum2() { DataSet datasource = new DataSet(); string database = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|/topic.mdb;Persist Security Info=True" ; string queryStr = "Select * from Comment" ; OleDbConnection myConn = new OleDbConnection(database); OleDbDataAdapter myDataAdapter = new OleDbDataAdapter(queryStr, myConn); myConn.Open(); myDataAdapter.Fill(datasource, "Comment" ); myConn.Close(); return datasource;
    Posted to Data Presentation Controls (Forum) by JohnnyJ on 5/16/2008
  • Re: No overload for method 'Forum' takes '1' arguments

    localhost.Topic topic = new localhost.Topic(); string topicId = Request.QueryString["TopicID"].ToString(); datasource = topic.Forum(topicId); GridView1.DataSource = datasource; GridView1.DataBind(); This is the new code. I dont understand where this goes: Forum(sting topicId) { //write your code to fire the query //SELECT * FROM Comment WHERE TopicID =" +topicId }
    Posted to Web Forms (Forum) by JohnnyJ on 5/15/2008
  • Re: No overload for method 'Forum' takes '1' arguments

    < xs:element name =" ForumID " type =" xs:int " minOccurs =" 0 " /> Thats what it states within the web service
    Posted to Web Forms (Forum) by JohnnyJ on 5/15/2008
  • Re: No overload for method 'Forum' takes '1' arguments

    The topicid is a auto-generated number, would that cause this problem?
    Posted to Web Forms (Forum) by JohnnyJ on 5/15/2008
  • Re: No overload for method 'Forum' takes '1' arguments

    This might be a stupid question but what does Forum signature mean?
    Posted to Web Forms (Forum) by JohnnyJ on 5/15/2008
  • No overload for method 'Forum' takes '1' arguments

    I am getting this error - No overload for method 'Forum' takes '1' arguments Can anyone help? I am using a web service created by myself Topic Page < asp:HyperLinkField DataNavigateUrlFormatString= "~/topic.aspx?TopicID={0}" NavigateUrl= "~/topic.aspx" Text= "Comments" DataNavigateUrlFields= "TopicID" /> Comments Page localhost.Topic topic = new localhost.Topic(); string topicId = Request.QueryString["TopicID"].ToString(); datasource
    Posted to Web Forms (Forum) by JohnnyJ on 5/15/2008
Page 1 of 8 (71 items) 1 2 3 4 5 Next > ... Last »