Click here to Skip to main content
15,916,951 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: adding a record to database Pin
Mike Ellison15-Apr-06 3:05
Mike Ellison15-Apr-06 3:05 
Questionpass argument to web class Pin
2hdass14-Apr-06 18:57
2hdass14-Apr-06 18:57 
AnswerRe: pass argument to web class Pin
Mike Ellison15-Apr-06 2:51
Mike Ellison15-Apr-06 2:51 
QuestionCreating Reports Dynamically Pin
kc_tri14-Apr-06 11:25
kc_tri14-Apr-06 11:25 
AnswerRe: Creating Reports Dynamically Pin
jitendra gupta14-Apr-06 17:38
jitendra gupta14-Apr-06 17:38 
QuestionHow do i empty my DataSet? Pin
munklefish14-Apr-06 9:21
munklefish14-Apr-06 9:21 
AnswerRe: How do i empty my DataSet? Pin
Jakob Farian Krarup14-Apr-06 10:55
Jakob Farian Krarup14-Apr-06 10:55 
GeneralRe: How do i empty my DataSet? Pin
munklefish14-Apr-06 11:01
munklefish14-Apr-06 11:01 
Ok, Heres how i call method on Page_Load

loadDDL("tapas");<br />
			loadDDL("paellas");<br />
			loadDDL("postres");<br />
			loadDDL("desserts");<br />
			loadDDL("bebidas");<br />
			loadDDL("vinos");


And here is the contents of the method:

private void loadDDL(string input)<br />
		{<br />
			string checksql="SELECT * FROM tbl_Orders WHERE orderTableID = '"+tmpTable+"' AND orderUserID = '"+tmpCustLast+"' AND orderCategory = '"+input+"' AND (OrderTime BETWEEN '"+preDate+"' AND '"+dateNow+"')  ORDER BY orderTime DESC, orderUpdated DESC";<br />
			//load data<br />
			myAdapter.SelectCommand.CommandText=checksql;<br />
			myAdapter.Fill(dataSet11, "tbl_orders");<br />
			//which dropdownlist?<br />
			switch(input)<br />
			{<br />
				case "tapas":<br />
				{<br />
					DataList1.DataSource= dataSet11;<br />
					DataList1.DataBind();<br />
					break;<br />
				}<br />
				case "paellas":<br />
				{<br />
					DataList2.DataSource= dataSet11;<br />
					DataList2.DataBind();<br />
					break;<br />
				}<br />
				case "postres":<br />
				{<br />
					DataList3.DataSource= dataSet11;<br />
					DataList3.DataBind();<br />
					break;<br />
				}<br />
				case "desserts":<br />
				{<br />
					DataList4.DataSource= dataSet11;<br />
					DataList4.DataBind();<br />
					break;<br />
				}<br />
				case "bebidas":<br />
				{<br />
					DataList5.DataSource= dataSet11;<br />
					DataList5.DataBind();<br />
					break;<br />
				}<br />
				case "vinos":<br />
				{<br />
					DataList6.DataSource= dataSet11;<br />
					DataList6.DataBind();<br />
					break;<br />
				}<br />
				<br />
<br />
			}<br />
			<br />
		}


Rather than the new results overwritting the old in the DataSet, they are being added to it.


P.s Jakob,
Jakob Lund Krarup wrote:
10 kinds of people in the world:
- Those who understand binary
- Those who don't


I saw one of your posts ages ago and thought id add the binary joke as my footer in response to yours! I see you've adopted it now.
GeneralRe: How do i empty my DataSet? Pin
Jakob Farian Krarup14-Apr-06 22:10
Jakob Farian Krarup14-Apr-06 22:10 
GeneralRe: How do i empty my DataSet? Pin
munklefish14-Apr-06 23:45
munklefish14-Apr-06 23:45 
GeneralRe: How do i empty my DataSet? Pin
Jakob Farian Krarup15-Apr-06 11:00
Jakob Farian Krarup15-Apr-06 11:00 
GeneralRe: How do i empty my DataSet? Pin
munklefish16-Apr-06 2:25
munklefish16-Apr-06 2:25 
GeneralRe: How do i empty my DataSet? Pin
Jakob Farian Krarup16-Apr-06 9:18
Jakob Farian Krarup16-Apr-06 9:18 
GeneralRe: How do i empty my DataSet? Pin
munklefish16-Apr-06 9:24
munklefish16-Apr-06 9:24 
GeneralRe: How do i empty my DataSet? Pin
Jakob Farian Krarup16-Apr-06 9:27
Jakob Farian Krarup16-Apr-06 9:27 
GeneralRe: How do i empty my DataSet? Pin
munklefish15-Apr-06 0:10
munklefish15-Apr-06 0:10 
GeneralRe: How do i empty my DataSet? Pin
Jakob Farian Krarup15-Apr-06 10:58
Jakob Farian Krarup15-Apr-06 10:58 
QuestionWeb Reference Error??? Pin
JimFeng14-Apr-06 8:53
JimFeng14-Apr-06 8:53 
QuestionProblems losing the state with SQL Session State in a Web Farm Pin
Albert Pascual14-Apr-06 7:26
sitebuilderAlbert Pascual14-Apr-06 7:26 
AnswerRe: Problems losing the state with SQL Session State in a Web Farm Pin
Mike Ellison14-Apr-06 10:47
Mike Ellison14-Apr-06 10:47 
GeneralRe: Problems losing the state with SQL Session State in a Web Farm Pin
Albert Pascual14-Apr-06 11:01
sitebuilderAlbert Pascual14-Apr-06 11:01 
Questionhow to display Windows form in ASP.NET 2.0 Pin
wasif_Muhammad14-Apr-06 7:18
wasif_Muhammad14-Apr-06 7:18 
AnswerRe: how to display Windows form in ASP.NET 2.0 Pin
Mike Ellison14-Apr-06 10:45
Mike Ellison14-Apr-06 10:45 
QuestionAutoPostBack on a Gridview Pin
Jason K14-Apr-06 6:58
Jason K14-Apr-06 6:58 
QuestionApplication_Error doesn't fire Pin
Dario Solera14-Apr-06 5:39
Dario Solera14-Apr-06 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.