Posts by EduardoFernandes • 1,925 points
61 posts
-
3
votes1
answer356
viewsA: About size check
Recover Picture Data on Local Disk: For browsers that support HTML5/CSS3, it is possible according to the following code: HTML: <input type="file" id="choose" multiple="multiple" /> <br>…
-
2
votes1
answer844
viewsA: Error when viewing Webservice Consultregistration 2
To access web services via . NET follow the following steps: Right-click the project and select "Add Web References..." Enter the Web Service URL. Now, simply instantiate the Web Service object as…
-
5
votes2
answers1134
viewsA: Is there a performance gain when using View’s in SQL?
Creating a View itself does not produce performance gains. However, there are some things that can be done to improve your performance: In SQL Server you can create indexes for View, improving its…
-
2
votes1
answer2527
viewsA: How to show database data in Textboxes?
There are some problems in your code: In the Page_Load the command ClienteBusiness.ListarCliente(idCliente); does not populate the object cliente, since nothing receives the return of the métood…
-
1
votes4
answers1330
viewsA: How to load a C library into C#?
Follow the steps below: Make a DLL that serves as a wrapper for your .lib. This DLL is written in C or C++ and should expose each function of the library. lib. Call each wrapper function built in…
c#answered EduardoFernandes 1,925 -
2
votes5
answers1347
viewsA: Singleton or class and statics?
The advantage of using Singleton is that the code that accesses Singleton does not know how to implement it. See the Singleton example below in Java: public class MySingleton { // Variavel estática…
pattern-designanswered EduardoFernandes 1,925 -
2
votes1
answer606
viewsA: Change a Textbox to Multiline while maintaining CSS
Creating a simple application, with the data informed in the question, one can see that the CSS is applied even using `Textmode="Multiline". So, probably the page is not finding the CSS file. See…
-
3
votes1
answer595
viewsA: Combobox which best method: Onselectedindexchanged via autopostback or Jquery?
Solution using Updatepanel Using Updatepanel, allows easier maintenance of the application because it avoids the use of javascript. Also, regarding the typing problem, just put individual…
-
1
votes2
answers1246
viewsA: Pop-up Child window
If you are using Modalpopupextender, you can close it by code-Behind via the following call: ModalPopupExtenderID.Hide();, in his method Criar_Fornecedor_Click. Soon he’d be like this: protected…
-
5
votes2
answers310
viewsA: Static Methods in Factory Method
Note that there are 2 design Patterns related to Factory Method: Factory Method - http://sourcemaking.com/design_patterns/factory_method Static Factory Method -…
-
3
votes1
answer307
viewsA: Doctrine - Access the $entityManager variable created in bootstrap.php from within a Class
In addition to putting your bootstrap class on your controller through the requre/require_once, you also need to put the $entityManager tagged global in your Function, for example: public function…