Fórum Como passar dados do Banco para Janela Modal? #476013
11/04/2014
0
public void BuscarImoveisModal(int codImovel)
{
ImovelBLL imovelbll = new ImovelBLL();
tbImovel imovel = new tbImovel();
imovel = imovelbll.Find(i => i.codImovel.Equals(codImovel)).First();
lblModDesc.Text = imovel.descricao;
lblAreaTotal.Text = imovel.areaTotal;
lblAreaConst.Text = imovel.areaConstruida;
lblModVal.Text = imovel.valor.ToString();
imgFoto1.ImageUrl = "http://localhost:1286/Imoveis/" + imovel.foto1.ToString();
imgFoto2.ImageUrl = "http://localhost:1286/Imoveis/" + imovel.foto2.ToString();
imgFoto3.ImageUrl = "http://localhost:1286/Imoveis/" + imovel.foto3.ToString();
imgFoto4.ImageUrl = "http://localhost:1286/Imoveis/" + imovel.foto4.ToString();
imgFoto5.ImageUrl = "http://localhost:1286/Imoveis/" + imovel.foto5.ToString();
imgFoto6.ImageUrl = "http://localhost:1286/Imoveis/" + imovel.foto6.ToString();
}
So que quando eu carrego a pagina e clico no botao para abrir minha modal ele nao traz nem as imagens e nem as informações. como eu falo galera para mostrar valores do banco na modal com asp.net?
Olha como a tela aparece pra mim sem os dados do banco.
[img]http://arquivo.devmedia.com.br/forum/imagem/335183-20140411-014519.png[/img]
Bem galera como podem reparar na foto, a imagem nao aparece, e os campos abaixo da imagem tambem vem em branco.
alguem pode ajudar por favor?
obrigado.
Celiol.
Curtir tópico
+ 0Posts
11/04/2014
Pjava
Gostei + 0
11/04/2014
Celiol.
Gostei + 0
11/04/2014
Celiol.
Gostei + 0
19/05/2014
Henrique Gasparotto
Gostei + 0
19/05/2014
Celiol.
Gostei + 0
27/05/2014
Heber Mazutti
Gostei + 0
28/05/2014
Celiol.
blz
Delivery TI
Gostei + 0
29/05/2014
Joel Rodrigues
Gostei + 0
29/05/2014
Celiol.
Delivery TI
Gostei + 0
22/07/2015
Williame Figueiredo
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)