473,379 Members | 1,544 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,379 software developers and data experts.

TWO REPEATERS IN ONE PAGE ?????????

This is working perfectly.

Sub Page_Load(sender As Object, e As EventArgs)

Dim cnn As SqlConnection = New
SqlConnection("server=lwda329.servidoresdns.net;da tabase=qaf500;user=qaf500;
password=gruart")
Dim cmd As SqlDataAdapter = New SqlDataAdapter("SELECT * from
VentasWebConsultaES where IdPiso=" & Request.QueryString("Piso") & "", cnn)
Dim ds As DataSet = New DataSet()
cmd.Fill(ds)
Repeater1.DataSource = ds
Repeater1.DataBind()
End Sub
WHY THIS IS NOT WORKING????????

Sub Page_Load(sender As Object, e As EventArgs)

Dim cnn As SqlConnection = New
SqlConnection("server=lwda329.servidoresdns.net;da tabase=qaf500;user=qaf500;
password=gruart")
Dim cmd As SqlDataAdapter = New SqlDataAdapter("SELECT * from
VentasWebConsultaES where IdPiso=" & Request.QueryString("Piso") & "", cnn)
Dim cmd02 As SqlDataAdapter = New SqlDataAdapter("SELECT * from
FotosWeb where IdPiso=" & Request.QueryString("Piso") & "", cnn)
Dim ds As DataSet = New DataSet()
Dim ds02 As DataSet = New DataSet()
cmd.Fill(ds)
cmd02.Fill(ds02)
Repeater1.DataSource = ds
Repeater1.DataBind()
Repeater02.DataSource = ds02
Repeater02.DataBind()

End Sub

Nov 21 '05 #1
6 1070
did you really want to post your username and password to the world for your
sql server?
"news.microsoft.com" <co*******@winsolutions.es> wrote in message
news:eQ**************@TK2MSFTNGP14.phx.gbl...
This is working perfectly.

Sub Page_Load(sender As Object, e As EventArgs)

Dim cnn As SqlConnection = New
SqlConnection("server=lwda329.servidoresdns.net;da tabase=qaf500;user=qaf500;
password=gruart")
Dim cmd As SqlDataAdapter = New SqlDataAdapter("SELECT * from
VentasWebConsultaES where IdPiso=" & Request.QueryString("Piso") & "",
cnn)
Dim ds As DataSet = New DataSet()
cmd.Fill(ds)
Repeater1.DataSource = ds
Repeater1.DataBind()
End Sub
WHY THIS IS NOT WORKING????????

Sub Page_Load(sender As Object, e As EventArgs)

Dim cnn As SqlConnection = New
SqlConnection("server=lwda329.servidoresdns.net;da tabase=qaf500;user=qaf500;
password=gruart")
Dim cmd As SqlDataAdapter = New SqlDataAdapter("SELECT * from
VentasWebConsultaES where IdPiso=" & Request.QueryString("Piso") & "",
cnn)
Dim cmd02 As SqlDataAdapter = New SqlDataAdapter("SELECT *
from
FotosWeb where IdPiso=" & Request.QueryString("Piso") & "", cnn)
Dim ds As DataSet = New DataSet()
Dim ds02 As DataSet = New DataSet()
cmd.Fill(ds)
cmd02.Fill(ds02)
Repeater1.DataSource = ds
Repeater1.DataBind()
Repeater02.DataSource = ds02
Repeater02.DataBind()

End Sub

Nov 21 '05 #2
Hi,

I don't see it direct, what is the error?

Some advices about the code:

Use SQLparameters instead the & xxxx & for the SQL line

In this case where two connection actions are taken one after each other it
is better to open and close the connections yourself than to use the inbuild
open and close from the dataadapter

And of course that password.

However this has in my opinion nothing to do why it is not working. Can you
describe what you mean with not working?

Cor
Nov 21 '05 #3
It is giving an error when open the page from the link. The first example
works fine, but with the second I have got an error.

The fact is I have a page with one only record to be shown (a flat you are
interested to see information about) and also I need to show on that page
the 10 to 14 photos of that flat, whose files are inside a directory on the
web, and whose NAMES are inside another database in the SQL Server) Any help
on this would be highly appreciated.

By the way, thanks about the password. I have already changed it.
Desperation causes these things.

Thanks again.
"Cor Ligthert" <no************@planet.nl> escribió en el mensaje
news:eM**************@TK2MSFTNGP14.phx.gbl...
Hi,

I don't see it direct, what is the error?

Some advices about the code:

Use SQLparameters instead the & xxxx & for the SQL line

In this case where two connection actions are taken one after each other it is better to open and close the connections yourself than to use the inbuild open and close from the dataadapter

And of course that password.

However this has in my opinion nothing to do why it is not working. Can you describe what you mean with not working?

Cor

Nov 21 '05 #4
It is giving an error when open the page from the link. The first example
works fine, but with the second I have got an error.

The fact is I have a page with one only record to be shown (a flat you are
interested to see information about) and also I need to show on that page
the 10 to 14 photos of that flat, whose files are inside a directory on the
web, and whose NAMES are inside another database in the SQL Server) Any help
on this would be highly appreciated.

By the way, thanks about the password. I have already changed it.
Desperation causes these things.

Thanks again.
"Cor Ligthert" <no************@planet.nl> escribió en el mensaje
news:eM**************@TK2MSFTNGP14.phx.gbl...
Hi,

I don't see it direct, what is the error?

Some advices about the code:

Use SQLparameters instead the & xxxx & for the SQL line

In this case where two connection actions are taken one after each other it is better to open and close the connections yourself than to use the inbuild open and close from the dataadapter

And of course that password.

However this has in my opinion nothing to do why it is not working. Can you describe what you mean with not working?

Cor

Nov 21 '05 #5
Hi,

I tried it, although with one dataset and two repeaters, in my opinion was
it showed as it should be.

Can it be that you try to display a blob field in the repeater, although I
tried that as well and got byteArray?

Cor
Nov 21 '05 #6
Hi,

I tried it, although with one dataset and two repeaters, in my opinion was
it showed as it should be.

Can it be that you try to display a blob field in the repeater, although I
tried that as well and got byteArray?

Cor
Nov 21 '05 #7

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

Similar topics

0
by: David B | last post by:
Bare with me this is my first post. Objective: To dynamically create repeaters in a WebForm based on sets of data. Problem: When I attempt to create any Repeater from C# I get a big fat white...
3
by: DonRex | last post by:
Hello all! I couldn't find a web application-newsgroup for ASP.NET, so I'm sorry if this is the wrong forum! Synopsis: In my webform I have 3 nested repeaters: rpWeeks ----- rpTime
1
by: garethdjames | last post by:
Please can some on offer some practicle advice, I am designing a page that displays details about a product, the page will be navigated from a datagrid (this bit no problem), The details page...
1
by: Roy | last post by:
No errors here, I'm just looking for ways to make my code more efficient. As the subject line suggests, I have a LOT of repeaters on a certain page. They are visible or hidden depending on user...
1
by: andrew.douglas11 | last post by:
Hello all, Is it possible to share controls inside a child repeater? Here's the situation: I have a web page that needs to display data grouped by A, and alternatively by B (only one grouping...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.