473,396 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Simplest Solution for Repeat Update???

Hi...

Can someone please tell me the simplest solution to create an update page
for a menu I have on an asp.net website...

Basiclly I have 10 menu and 10 price fields that change every day! I want to
stor the information in an SQL Database and have created a very simple table
with with the following fields:

menuID
Item
Price

HTML...
<table>
<TR vAlign="top" align="left">
<TD width="50"> </TD>
<TD width="10"> </TD>
<TD width="75">
<P>Item 1:</P>
</TD>
<TD width="10"> </TD>
<TD width="200"><asp:textbox id="tbMenuItem1" runat="server" Width="200px"
Height="18px"></asp:textbox></TD>
<TD width="10"> </TD>
<TD width="75">
<P>Price (DK):
</P>
</TD>
<TD><asp:textbox id="tbMenuPrice1" runat="server" Width="50px"
Height="18px"></asp:textbox></TD>
</TR>
<TR vAlign="top" align="left">
<TD width="50"> </TD>
<TD width="10"> </TD>
<TD width="75">
<P>Item 1:</P>
</TD>
<TD width="10"> </TD>
<TD width="200"><asp:textbox id="tbMenuItem2" runat="server" Width="200px"
Height="18px"></asp:textbox></TD>
<TD width="10"> </TD>
<TD width="75">
<P>Price (DK):
</P>
</TD>
<TD><asp:textbox id="tbMenuPrice2" runat="server" Width="50px"
Height="18px"></asp:textbox></TD>
</TR>
</table>

Can you do it something like this???
Any examples or help would be very appritiated...

Thanks

Nov 19 '05 #1
1 1118
Tim,

I'm not certain why you are using text boxes...

Do people need to be able to enter in text? Or just view it? Based on what
you've said here it sounds like just view it. And in that case I'd use a
datagrid. It has a lot of built in formatting and will display all data in a
table format automatically for you directly from the database.

Here's a tutorial that shows various databinding techniques. It will show
you how to bind to your textboxes and how to use a datagrid if that's a
better choice for you (I think it is):

http://samples.gotdotnet.com/quickstart/aspplus/


--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Tim::.." <myatix_at_hotmail.com> wrote in message
news:58**********************************@microsof t.com...
Hi...

Can someone please tell me the simplest solution to create an update page
for a menu I have on an asp.net website...

Basiclly I have 10 menu and 10 price fields that change every day! I want
to
stor the information in an SQL Database and have created a very simple
table
with with the following fields:

menuID
Item
Price

HTML...
<table>
<TR vAlign="top" align="left">
<TD width="50"> </TD>
<TD width="10"> </TD>
<TD width="75">
<P>Item 1:</P>
</TD>
<TD width="10"> </TD>
<TD width="200"><asp:textbox id="tbMenuItem1" runat="server" Width="200px"
Height="18px"></asp:textbox></TD>
<TD width="10"> </TD>
<TD width="75">
<P>Price (DK):
</P>
</TD>
<TD><asp:textbox id="tbMenuPrice1" runat="server" Width="50px"
Height="18px"></asp:textbox></TD>
</TR>
<TR vAlign="top" align="left">
<TD width="50"> </TD>
<TD width="10"> </TD>
<TD width="75">
<P>Item 1:</P>
</TD>
<TD width="10"> </TD>
<TD width="200"><asp:textbox id="tbMenuItem2" runat="server" Width="200px"
Height="18px"></asp:textbox></TD>
<TD width="10"> </TD>
<TD width="75">
<P>Price (DK):
</P>
</TD>
<TD><asp:textbox id="tbMenuPrice2" runat="server" Width="50px"
Height="18px"></asp:textbox></TD>
</TR>
</table>

Can you do it something like this???
Any examples or help would be very appritiated...

Thanks

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul Eden | last post by:
Afternoon all. I wonder if someone might lend a little hand here? I'm using input.htm to take some data using radio and a text field from the user, which then "get"s them to update.php. Now...
5
by: Brent Burkart | last post by:
I want to protect my website with a user and password. I have SQL Server 2000 where I want to store the users and passwords and the website is complete. I just need to add in some security with...
7
by: Brad | last post by:
When debugging my current web project, in VS2003, I found I had lost the ability to drill down on watch objects in the Watch Window; I could only view the single value specific watch objects. ...
4
by: Alan Silver | last post by:
Hello, I have a site that stores some info in an XML file. The file is pretty simple, of the form... <Site> <SiteName>Fred's Ferrets</SiteName> <SomeVar>Whatever</SomeVar> .... etc ......
4
by: MLH | last post by:
Would like to create a database named 20060602Data.mdb and populate it with the data in 31 local tables in the current running database. I would like to do it all with a single button click. Was...
2
by: fran7 | last post by:
Hi, I have this very nice link tracker script that works a treat. The only thing is it doesnt restrict repeat clicking. Is there a simple method to add a cookie feature to this so that people...
1
by: rowland | last post by:
What's the simplest solution for formatting the output of local time in iso 8601 including the time zone information? Example: "2008-07-25T14:28:43.934-04:00" Thanks, Rowland
3
by: =?Utf-8?B?Y21lZWsxXzE5OTk=?= | last post by:
Hello, On a webpage, create an UpdatePanel with two DropDownLists. Set AutoPostBack of DropDownList1 to true. In the SelectedIndexChanged method, refill DropDownList2 and set the focus to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.