|
|
 |
| ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

July 11th, 2007, 12:16 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Location: , , Finland.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Get specific row from database
Hi,
I have a database where I have a bunch of text, like
_________________
|ID|TEXT|TEXT2 |
|--|----|-------|
|1 |Titl|My home|
|--|----|-------|
|2 |Logi|Login |
|---------------|
I do this because I'm doing a multilingual page.
language is defined by a Session variable.
How can I on one page tell that I want to print row title here and row logi on another place.
|

July 11th, 2007, 12:44 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 Posts
|
|
hey there.. Can you elaborate a little more what are you trying to do??
because at first sight looks like you need only to select the row you want...
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
|

July 11th, 2007, 12:56 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Location: , , Finland.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes thats what I want to do select the row 1 and print it on page and then print row 2.
But I don't know how to do it. I'm working with DreamWeaver and program don't have the feature
|

July 11th, 2007, 01:00 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 Posts
|
|
well.. this is a asp.net forum.. if you are expecting help from Dreamweaver this is maybe not the best place...
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
|

July 11th, 2007, 01:24 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Location: , , Finland.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
how do you do it by plain asp.net coding
|

July 11th, 2007, 01:31 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 Posts
|
|
ok.. I see a couple of problem with your inquiry.. first, Dreamweaver produce htm files, and asp.net files has aspx extension. To build that type of files, you have to transform your htm files into aspx and for that you need visual studio (there is a free version also) (you can do this also on notepad and compiling the files using the compiling option of the .net framework). Once you are in there, you have several ways to do this, including controls, Themes (not sure about this way) and code behind. The type of controls you want to use and the way you want to do it depends on the database and your expertise to do this...
Maybe, Maybe you are looking for a way to do this in plain asp code?? like a script that run on the htm file???
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
|

July 11th, 2007, 01:38 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Location: , , Finland.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Have you noticed that Dreamweaver can produce HTML,PHP,ASP,ASP.NET,JSP and ColdFusion Pages
Evrything doesn't go a round Microsoft
|

July 11th, 2007, 01:43 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 Posts
|
|
then my mistake.. let's rewind and start over...
ok.. do you have all the asp.net controls or just a few?? you have to fetch data from the database with a Select command (that's sql) (something like SELECT * from tablename where Id = languageid)
where do you have the languageid?? to know which row do you need... also you have controls where do you want to put this data??? are there html or asp.net controls???
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
|

July 11th, 2007, 02:11 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Location: , , Finland.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have made in SQL a view that has all columns I need. When page loads it put default a session value witch can be change later.
I have a DataSet that filter by the session. I have Select from the database TEXTtype and TExt.
TextType is the text type that i want to display, ex. Title. Text is the real text that displays on the page. Ex. My home page.
I have many rows in table.
On one page I want to display ex. row 1,5,8 and on another page display row 2,3,9
|

July 11th, 2007, 02:17 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 Posts
|
|
if the dataset is already filter, then you have the rows you want, don't you? anyway, this data is written directly to the html or you want to put it in controls?
did you already draw the controls when you have the data or you want to add them depending on the data that you are getting???
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |