Questions tagged as 'webforms'

0
answers

DropDownList does not load string [closed]

I have a method in asp.net which loads some dropdowns and gets the name of dropdown as its parameter. The method is working perfectly, because when I "debug" the application I see that dropdown received the items. The prob...
asked by 03.08.2014 / 21:20
1
answer

How to do redirect after authentication in STS?

My application authenticates users through STS. Authentication can go to the STS and validate the user PIN on the card. But how do I redirect it to the "home" page of my site after authentication? Addendum: I do not have access to the STS...
asked by 26.02.2014 / 15:12
2
answers

Different databases for the same application asp.net C #

In a club management system each club has its own database. There is a DAL class where it is in charge of getting the web.config to string from application connection . How to ensure that the login application loads the correct...
asked by 15.01.2015 / 14:17
2
answers

How to put a button in a textarea in ASP.NET, C #?

Good. I have the following sketch of a contact form made in wix.com but I wanted to put it also in my asp.net project. Sofar,itlookslikethis: Mycodeisasfollows:<body><style>textarea,input{border:2pxsolidrgba(7,143,27,1);padding:5px1...
asked by 22.05.2018 / 17:25
2
answers

What is the best way to read a SQL error return?

What is the best way to read a sql server error return in a C # web form application? I have the following .. No sql server; END TRY BEGIN CATCH Raiserror('Erro ao gerar os dados', 18, 1); return; END CATCH; No c # SqlCom...
asked by 29.10.2015 / 19:12
1
answer

How to escape the SqlDataSource.FilterExpression?

I have a function that adds a filter to SqlDataSource . This expression contains LIKE in the query. However, if the person places a character as ' , an error occurs (evidenced by SQL Injection). string cliente = TB_Cliente.T...
asked by 06.12.2017 / 12:46
1
answer

Image gallery asp.net and C # with problem to view the photo

I'm having trouble displaying the photo in the browser, the repeater brings all the info from the bank except the photo. I inserted the data manually into the database. // TABLE CREATE TABLE [dbo].[Imoveis]( [CodImovel] [int] IDENTITY(1...
asked by 12.08.2016 / 00:00
2
answers

How to convert a DataSet to Int32?

I'm having a problem converting an information that is coming from my database to a variable of type Int32 . When I do the select max(cur_id) from tbl_curriculo; I send the id information straight to a Dataset which I call...
asked by 18.06.2016 / 07:07
2
answers

Select with Linq set the first characters in the where

How can I set in Linq the same as I define in the Where do sql server clause of the form below .. select * from tb_CentrosCusto cc where cc.Clasificacao like '1.4.1%' In other words, I'm trying to find out what's going on with...
asked by 13.11.2015 / 15:14
2
answers

manipulating DataTables.net data with Json [how to manipulate json to display img in column]

I'm putting together a table with the JS framework DataTables I process the data via Server-side through JSON In the first column I would like to display a photo, the name of this photo comes via JSON. How to do it? Example of...
asked by 19.10.2015 / 20:29