Posts by Luiz Martinez • 463 points
25 posts
-
0
votes0
answers55
viewsQ: Efficient SQL Server Index
Ladies and gentlemen. (as), I need help to build an efficient index for an SQL table. I have a table that is causing me a certain headache, because it is consulted with a certain frequency, besides…
-
0
votes1
answer732
viewsQ: Error creating Foreign key
I am creating two references of Foreign key pointing to two different tables, however I am getting error in creating one of them. There are no Primary or candidate Keys in the referenced table…
-
0
votes1
answer345
viewsA: Validate Radio Button Javascript + MVC Razor
I was able to resolve by forcing the yes check and creating the validation for Yes or No. @Html.RadioButtonFor(m => m.Domiciliacao.listaPerg[index].ckPerg, true, new { @class = "radio-inline",…
-
1
votes1
answer345
viewsQ: Validate Radio Button Javascript + MVC Razor
Need to validate if all my Radio have been checked, can you help me perform this validation on JS? My cshtml is mounting the radio’s through a Model List<> . <div id="checklists"…
-
2
votes2
answers434
viewsQ: Input Submit does not call Actionresult
I’m having trouble calling Actionresult using input type="submit" and pass the model data. I did a test using ActionLink but Model is not sent. Someone could shed a light? Here is the code:…
-
10
votes1
answer5341
viewsQ: Order By with List<>
It is possible to make a OrderBy in a List<> setting the value for comparison? Example: mRel.OrderBy(s => s.Status == EnumModel.StatusGeral.Novo).ToList() My Code:…
-
1
votes1
answer336
viewsQ: TFS Automatically Merge Without Checking Conflicts
We recently installed TFS 2012 to control the versions of some local systems, but we are facing a problem. When you are asked to check in a file that has been changed, it is saved in TFS without…
-
2
votes2
answers421
viewsQ: Javascript variable value assignment
I have the JS code below and the return of JSON does not assign the value to variable texto. I did a test with alert(data.frase) and the message came normally. Would anyone know why to go texto does…
-
2
votes1
answer200
viewsA: Dropdownlist filled and selected
Solved @Html.DropDownListFor(model => model.MotivosRelacionados.Produto.Codigo,…
-
1
votes1
answer200
viewsQ: Dropdownlist filled and selected
I need to fill in a @Html.Dropdownlist() with my Model parameters and pre-select one of the items. At Model I am receiving the complete package, being: List of products on Produto and the items…
-
2
votes2
answers1333
viewsQ: Set default value SQL Server column
I would like to know how to set an Insert pattern in a column in SQL. Example: CREATE TABLE XPTO( ID INT IDENTITY(1,1), NOME VARCHAR(100) NOT NULL, ATIVO CHAR(1) NOT NULL) In this case, I want to…
-
0
votes1
answer2004
viewsQ: Call Action via javascript
Good afternoon, I need help with a problem until simple, but it’s knocking me down. I need to call a controller method and pass two parameters to it, I did something, but it’s not working, someone…
-
-1
votes2
answers978
viewsA: List<Model> Actionresult() MVC
Gentlemen., I was able to solve it with a tip I received and Mendez’s reply. I filled the list with a Session Session["viewPoderes"] = listaPoder;, this way I could use only the code to search for…
-
0
votes2
answers978
viewsQ: List<Model> Actionresult() MVC
Guys, I need you to help me figure out where I’m going wrong and how to fix a little problem. I don’t know much about MVC, but I’m turning around here. I need to pass a Model class as a parameter to…
-
1
votes1
answer63
viewsQ: Change the culture of Monthcalendar
It is possible to change the object’s date format MonthCalendar from a Winforms application? It occurs that the crop selected at a customer’s station is Polish and this is causing error in handling…
-
2
votes2
answers1387
viewsQ: List Folders and Subfolders of an FTP with C#
Would anyone know if it is possible, if yes, how to list all folders and subfolders of a FTP? Okay, here’s the idea. I’m listing all the Files and Directories in this FTP, but different from…
-
2
votes1
answer89
viewsQ: Windows service for after Exception
Is there any way to make a Windows service created on c# don’t give Stop() after a Exception? The service was created with a timer, which will run every 1 hour, but there was an error in the…
-
1
votes1
answer49
viewsQ: Include Default XML namespace
Srs(as), good morning, I am generating an XML from the serialization of a class.Cs(schema) and the output is created xml (first example) . This will be exported to an external system, however they…
-
1
votes1
answer279
viewsA: Search query coming from a Dynamic form (Codeigniter)
Orange, could you explain your situation better? From what I understand, you have a single screen application and in this there are Textbox and Combobox fields, and you need to create a query to the…
-
1
votes2
answers705
viewsA: Use Ftpwebrequest with Uri https
Ladies and gentlemen(s), I have solved the problem... Using the component WebClient and UploadFile. Thank you so much for your help!!!! follows code below. private void SendFiles(string fileName) {…
-
0
votes2
answers705
viewsQ: Use Ftpwebrequest with Uri https
Srs(as), good afternoon, I am creating a service that will upload some files to an FTP link, however this is like HTTPS (https://path/path). occurs that the class Ftpwebrequest does not allow the…
-
0
votes2
answers346
viewsA: Shell Failure C#
I managed to solve the problem. Instead of simply running the command line through Process.Start, I created a file. bat with the command line and this was executed by Process.Start. StringBuilder…
-
4
votes1
answer618
viewsQ: SQL 2012 - replace (nolock) with(nolock)
I need help solving a mismatch problem. The company I work with is migrating from an SQL Server 2008 database to 2012, but we have identified some problems. The main one is the declaration of…
-
1
votes2
answers346
viewsQ: Shell Failure C#
Friends, I ask for help to solve a small problem. I am running SQL command through sqlcmd and Shell on C#, but the file is in a folder that contains "space", as follows. Path: D: Sandboxes\CIA…
-
0
votes1
answer379
viewsQ: Help - Collation Conflict
Srs(as), good afternoon, Could help me identify a problem? I am changing a PROC and when testing it is occurring the following error: Cannot resolve the collation Conflict between…