Posts by Felipe • 231 points
16 posts
-
2
votes1
answer59
viewsA: How to get the Controller to pick up the "Linktext string" text from @Html.Actionlink
You can make Actionresult accept a string parameter this way: public ActionResult Classificacao(string name = null){ } and Actionlink would be: @Html.ActionLink("**Classificação**", "Index",…
-
3
votes2
answers501
viewsA: How do I determine the search path for Controllers and Views?
The name of your controller for example HomeController by law will fetch everything inside the Home folder. The action within her example to public IActionResult Index will search inside the folder…
-
1
votes0
answers82
viewsQ: Service Worker caching an Asp net core 2.0 application
I cannot meet the specifications of Progressive web apps because my service worker does not cache the web app. Follows the code: self.addEventListener('install', e => { let timeStamp =…
-
0
votes1
answer49
viewsA: Pusho notification Web App Progressive web app
I found the solution. Actually I needed to check the permission as Notification.resquestPermission() And also needed an SSL certificate to register service-work.
-
-1
votes1
answer49
viewsQ: Pusho notification Web App Progressive web app
I’m creating a web app but I couldn’t make the push notification as it is in the documentation. I wonder if you have a more practical way to push Notifications.
-
1
votes1
answer2643
viewsQ: Post JSON on Android
I wonder if android is yes or no performing my JSON post. Follows the code: public void login(JSONObject dados) { try { HttpClient client = new DefaultHttpClient(); HttpPost hp = new HttpPost();…
-
0
votes0
answers185
viewsQ: How to recover the array of a post sent on Android to a php?
Android code: String caminho = "http://10.0.2.2/system/pages/login"; HttpURLConnection conn = null; BufferedReader reader = null; try{ URL urlConection = new URL(caminho); conn = (HttpURLConnection)…
-
1
votes0
answers71
viewsQ: When my return Json is an array how can I get this array?
try{ URL urlConection = new URL(caminho); conn = (HttpURLConnection) urlConection.openConnection(); conn.setDoOutput(true); conn.setRequestMethod("POST"); /* DataOutputStream pt = new…
-
0
votes1
answer235
viewsQ: I’m trying to create a connection using localhost but is giving refused Connection
public static String getJsonSystem(String urlString){ HttpURLConnection urlConnection = null; BufferedReader reader = null; String retorno = ""; try{ URL url = new URL(urlString); urlConnection =…
-
0
votes0
answers37
viewsQ: java.lang.Nullpointerexception error when trying to popular Spinner
Inside the Oncreate: spnMateriasID = (Spinner) findViewById(R.id.spnMateria); try{ atividadeModel = new AtividadeModel(this); atividadeModel.getWritableDatabase(); materiaModel = new…
-
0
votes0
answers143
viewsQ: Difficult to make an Android Sqlite query
I’m doing a project for college but I’ve been having difficulties with consultations to Sqlite. I wish you could assist me in this issue. Oncreate: protected void onCreate(Bundle savedInstanceState)…
-
4
votes1
answer66
viewsQ: Why doesn’t my Return return the i do for?
#include <stdio.h> #include <stdlib.h> int BuscaLinear(int *sequencia[], int tamanho, int valor) { int i; for(i=0;i<tamanho;i++) { if(sequencia[i] == valor) { return i; } } return -1;…
-
-3
votes2
answers63
viewsQ: "Nullreferenceexeption error was unhandled" when compiling
Follow the code below: public partial class Form1 : Form { public Form1() { button1.Click += Button1_Click; } private void Button1_Click(object sender, EventArgs e) { decimal n1, n2, result; n1 =…
-
0
votes2
answers65
viewsA: How to make a link on my site open only when clicked on the same page?
Well you can use Frameset in html much easier. Or you can create a schema in php type: $ac = 1; When you click the edit button, your page will add $ac + 1 and you will continue on the same page only…
-
1
votes1
answer230
views -
6
votes1
answer71
viewsQ: Why can’t I display Messageboxbuttons if it’s not a string?
'Cause I’m having trouble showing off MessageBoxButtons if it is not a string? static void Main() { string texto = "Minha primeira MessageBox"; MessageBoxButtons botao = MessageBoxButtons.OKCancel;…