Posts by okevinlira • 927 points
24 posts
-
7
votes1
answer234
viewsQ: My CSS file is very large and it is difficult to maintain readability
My CSS File is close to 10,000 lines. It’s getting too complicated to maintain this file. in its Development version the file "weighs" 170kb and in its minified version, "only" 128kb Some points to…
-
1
votes1
answer73
viewsA: Action Does Not Perform
Since I couldn’t solve it, I solved the case in another way. I added a Handler to intercept requests as follows. public class CustomActionFilter : ActionFilterAttribute { public override void…
-
5
votes2
answers483
viewsA: ASP.NET Identity and Windows Identity Foundation (WIF)?
Good I think for a good understanding, it is not enough to just translate something from MSDN or Wikipedia, Explanatory Material here. Windows Identity Foundation (WIF) is a Microsoft software…
-
2
votes3
answers1183
viewsA: How to Dropdown ASP NET MVC
public static class DropDownListHelper { public static List<SelectListItem> DropDownListEnum<T>(this HtmlHelper helper) { List<SelectListItem> listaItens = new…
-
6
votes3
answers1183
viewsQ: How to Dropdown ASP NET MVC
I have a DTO class [Serializable] public class PerfilDTO { public int Codigo { get; set; } public string Descricao { get; set; } public SituacaoEnum Situacao { get; set; } public…
-
5
votes1
answer122
viewsQ: Is there any advantage in avoiding type specification redundancy?
Given the following code: public override Entidades.ControleAcesso.Perfil PreencherEntidade(IDataReader dr) { return new Entidades.ControleAcesso.Perfil() { Codigo =…
c#asked okevinlira 927 -
1
votes1
answer73
viewsQ: Action Does Not Perform
I am using STS authentication, and given certain configuration in web.config I can’t get my (Sign In) action to perform what it should. to elute follows code: [AllowAnonymous] public class…
-
3
votes1
answer118
viewsQ: ASP.net MVC with WIF
When searching the web, I saw that it is not possible to register Assembly’s on the Razor view engine on Asp.net mvc as was done on webforms. <%@ Register TagPrefix="wif"…
-
0
votes1
answer143
viewsA: Gridview Change Row to Readonly
From what I understand of your question, if you find a value in any of the Cells Voce wants its line to become read only, so it follows something I had in mind: VB: For RCnt As Integer = 0 To…
-
1
votes1
answer80
viewsA: How to make STS request User PIN after Logout
I came to the following conclusion: protected void BtnLogoutClick(object sender, EventArgs e) { WSFederationAuthenticationModule fam = FederatedAuthentication.WSFederationAuthenticationModule; try {…
-
3
votes2
answers11150
viewsA: How to Mount a Transaction with Commit and Rollback on Oracle?
Assuming you find an exception during your processing, you could do a rollback on that line: PROCEDURE SP_FAZ_ALGO ( pUSU_STATIVO IN OUT USU_USUARIO.USU_STATIVO %TYPE, pUSU_CDUSUARIOIN OUT…
-
1
votes1
answer80
viewsQ: How to make STS request User PIN after Logout
I’m having trouble executing a logout of the application using STS. After clicking the Logout button, I Expose all the cookies I have, until I give the signout command of Federationauthentication,…
-
1
votes1
answer497
viewsA: How to receive a SMS via Codeigniter?
There is a library called Codeigniter Textmagic Api in git hub. It might help you to have a starting point, or even solve your problem. https://github.com/appleboy/CodeIgniter-TextMagic-API…
-
0
votes1
answer241
viewsA: How to Redirect after STS authentication?
I managed to get around it like this... it’s not the best way, (I believe) but it works. protected void FederatedPassiveSignIn1_Load(object sender, EventArgs e) { if (IsPostBack) return; try { var…
-
2
votes1
answer241
viewsQ: How to Redirect after STS authentication?
My application authenticates users through STS. Authentication can go to STS and validate the user PIN on the card. But how do I have it redirected to the "home" page of my site after…
-
2
votes4
answers3081
viewsA: Limit number of characters per line
You can overload (Override) in Appendtext and Text in a derived class. using System; using System.Windows.Forms; namespace WindowsFormsApplication1 { class TextBoxExt : TextBox { new public void…
-
1
votes2
answers379
viewsA: Tomcat only reads Log4j.properties when restarted
It is possible to do as follows: To make Log4j reload your configuration file automatically when it undergoes changes, you can do this with the configureAndWatch method. But the default boot…
-
1
votes8
answers45010
viewsA: What is the difference between C# and ASP.NET?
Asp.Net or Active Server Pages . Net is the new version of ASP that serves the Microsoft Framework. however it is possible to program in Vb.net together with Asp.net. Not only C#. C# is a…
-
0
votes2
answers67
viewsA: How to convert Sender to a Form?
Your code has a box / Unboxing problem. see: http://msdn.microsoft.com/pt-br/library/yz2be5wk.aspx if (ContaAtiva.id == 0) { (Form)sender.FormClosed += carregarLogoVanguarda; } else {…
-
0
votes2
answers169
viewsA: How to disable Eclipse code replacement for "setters"?
Window / Preferences -> Java / Debug There are 4 Checkboxes related to Hot Code Replace. Disabling all of them will solve your problem
-
14
votes7
answers180098
viewsA: Format decimal places directly in the SQL command in Firebird
Try it like this: SELECT cast(seu_campo AS NUMERIC(15,3)) FROM sua_tabela I believe your intention is to show this on the screen so try it like this: select cast(seu_campo as varchar(10)) from…
-
1
votes3
answers10204
viewsA: How to put a value that is saved in the database in a combobox?
To be simpler. Based on your example: Conta conta = new Conta(); conta = controle.Ler(id); cboEstado.DataSource = conta; cboEstado.ValueMember = "ID ou IDENTIFICADOR UNICO DO REGISTRO";…
-
5
votes2
answers2443
viewsA: T-SQL with case sensitive like
Yes it is possible, but first it is necessary to know what type of COLLATION your SQL SERVER is configured. For this Check with the following Select: select databasepropertyex('databasename',…
-
8
votes7
answers10092
viewsA: How to make child form change values in parent form C#?
In this case you can pass the parent form as parameter for the class, and through this parameter (in the case of the parent form object) you can interact with the parent form. Code of Form1: public…