Posts by Guilherme Guini • 316 points
12 posts
-
2
votes3
answers4632
viewsA: What is the difference between one-dimensional and two-dimensional matrix?
Well the answers are above, I just wanted to put a drawing I think will contribute to understanding. Imagine I’m wanting to store people’s data. One-dimensional matrix: João | Vitor | Pedro |…
-
2
votes2
answers389
viewsA: MD5 is good enough?
MD5-Message Digest 5 is a Hash algorithm. Hash algorithms aim to maintain data integrity and work more or less like this: You have an input M, a Hash H function and an output (hash code) H(M).…
-
5
votes3
answers414
viewsA: How to change the structure of a LINQ query at runtime?
In the example below I use Linq with Lambda expressions not to repeat the code. Stay like this: private void lerPessoa(string nome, bool maiorIdade) { using (BancoEFEntities context = new…
-
0
votes1
answer115
viewsQ: Download file on IOS - Swift
People I am a short time programming for IOS using the language SWIFT. I need to download a file from the web, I’m using Nsurlsessionconfiguration, but this object only works for IOS 8+. And I want…
-
0
votes1
answer372
viewsA: Aspnet change textbox characteristics dynamically
You can add styles dynamically to change the characteristics of your textbox. Example: <html> <head> //Você pode usar classe <style type="text/css"> .borda { border: 1px solid red;…
-
-3
votes2
answers7804
viewsA: Convert a dd/MM/yyy string to Datetime
Try to do this: DateTime data = DateTime.MinValue; try { data = DateTime.Parse(dataString); } catch{ data = DateTime.MinValue} if(data.CompareTo(DateTime.MinValue) != 0) //data correta else //data…
-
0
votes1
answer218
viewsA: Displaying Gridview Master Detail so that the details are shown below each master
Take a look at the link below, it’s a little different because it only shows if you expand:…
-
4
votes2
answers185
viewsA: Android app restarts if it gets out of focus for a while
Before you start developing for android you should know the life cycle of an activity (Activity). When the activity is no longer visible to the user the application is stopped and when the user…
androidanswered Guilherme Guini 316 -
1
votes1
answer31
viewsA: How to use a table in the database with different fields of the model layer?
Strange your question, because if using only sql the class is not mapped, ie it does not reflect your database and you can use normally. Now I don’t know if you’re using any framework for data…
-
1
votes1
answer555
viewsA: Bootstrap Nav-tab event to run on the c#server side
Instead of you using normal link you can use Linkbutton from Asp.net and grab the event from the server-side click: <ul id="myTab" class="nav nav-tabs"> <li…
-
1
votes1
answer41
viewsA: Text property is empty in the gridview cell!
Why don’t you try using a Textbox or Boundfield: <Columns> <asp:TemplateField HeaderText="Cod." > <ItemTemplate><asp:TextBox id="txtCod" Text='<%#Eval("COD") %>' />…
asp.netanswered Guilherme Guini 316 -
0
votes1
answer63
viewsA: How do I make the imag map link a parameter from the database?
Depending on what you want to do, you can use ajax request, that is, in your tag you would have the html onclick event that would call a javascript function, which would finally call your c# method…