Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:779548
More Search Options
RSS Available
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 »
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online