Posts by Igor Carreiro • 1,917 points
140 posts
-
1
votes0
answers33
viewsQ: How do I access the Ids that are inside a Gridview?
Example: I want to take the amount that was typed into this TextBox and as soon as I trigger the button event bthResposta I can recover the same to be able to set the class properties./ Obs. To…
-
0
votes1
answer118
viewsQ: Shorten/Camouflage very large text within a grid
I have this grid line that takes the description of a message, but it is very large sometimes and is breaking the grid layout, I wonder if it is possible to shorten the message and/ or camouflage…
-
0
votes1
answer48
viewsQ: How to give a POST on the page with the UPLOAD property without going into looping?
Looking on the internet I saw some websites saying that when you own a property Upload on the page can not give POST the same because it goes into looping. I have an application that creates/deletes…
-
0
votes2
answers589
viewsQ: How to list only the name of existing folders in a given directory
How can I list only the name of a folder that is inside a root folder? Example: Pasta raiz C:/Downloads SubPastas: Teste/ Teste 2 In my DLL I can list the folders but with its full path, I would…
-
2
votes0
answers28
viewsQ: File management similar to Google Drive
I was looking for how to create a data management similar to One Drive, Google Drive, etc. And I just came across that and I didn’t quite understand how to apply this in a WEB application, could…
asp.netasked Igor Carreiro 1,917 -
0
votes1
answer258
viewsQ: Fileupload is not passing the file to Code Behind
I am doing some tests to Upload any file and save it in a physical folder, but even with the file loaded on the screen, it is not passing in ID/value: Example: Follows codes: aspx: <div…
-
1
votes1
answer953
viewsQ: List existing folders/subfolders and files in a specific root folder
It is possible via code to list existing folders/files in a specific folder ? Example And play this list on a grid/table on the WEB for the user to know if the folder he wants to create already…
-
0
votes1
answer755
viewsQ: Plugin to change custom profile image
Is there a plugin that from this effect + modal to exchange photo ? Or is it all done in CSS :…
-
1
votes1
answer384
viewsQ: Photo conversion to Base64 with 414 error (Request-URI Too Long)
I have the comic down making the conversion of a photo to base string64 sends the base via AJAX to the controller, but by moving on to the ajax, return the following error: Photo conversion is done…
-
0
votes1
answer667
viewsQ: How to take the return of a trial to know if you had any lines affected?
My question is whether there were any lines affected in the execution of this Procedure and store the result in a variable of type int. If = 0, stop the process. If > 0, proceed with the process.…
asp.net-coreasked Igor Carreiro 1,917 -
1
votes2
answers184
viewsQ: Is it possible to set a timer before running a post/Reload on the page?
I have the Function below that at the end of a Reload operation on the page in order to update the status. It would be possible to put a wait time to run this Reload ? function…
-
1
votes2
answers1010
viewsQ: Display rows from a table according to filters
I have the code below where I have one onchange that should filter the status of each request (hiding/showing the rows in the table), but it is hiding the header of the table. Code: <!DOCTYPE…
-
0
votes2
answers973
viewsQ: Browse table with N lines with FOR and find specific values
How to go through a table with N lines and find the specific values of each Dropdownlist ? Example of the table below: I tried with the code below, but without success. function ValidarStatusGrid()…
-
1
votes2
answers476
viewsQ: Save/Recover Files with PDF Extension
To save files with extension PDF in the database it is necessary to do the conversion to base 64? Or would there be some other way to save this type and its recovery for viewing? The code I have…
-
0
votes3
answers5235
viewsQ: pass 2 parameters in button Onclick event
I have the following code that I would like to pass the ID txtCodEmpreendedor and txtName of the fields below as parameter for the event Preening(); <script> function…
-
0
votes1
answer48
viewsQ: Shopping Cart - Contactor alert of products within the same
Is there any jQuery plugin that does this kind of work in shopping cart icon?…
-
1
votes1
answer150
viewsQ: How to make a date filter load the data (at runtime) according to what the user is typing?
I have the screen below and as soon as the user is typing the date, the Function already loading the data. I don’t know which jQuery event to use and/or if it’s something more detailed.…
jqueryasked Igor Carreiro 1,917 -
1
votes1
answer554
viewsQ: Responsive modal
How can I leave the below modal responsive according to the monitor resolution(15" ~ 21"), if I add width & height for 21" monitors it looks good, but if I play in notebook(15") is overlapping…
-
0
votes1
answer42
viewsQ: Problem passing information from AJAX to Controller
I have the following ajax that picks up the order code. So far I can pick up the order code, but sends as null to controller var btn = document.getElementById("btnNumeroPed"); btn.onclick = function…
-
4
votes3
answers87
viewsQ: Put date in American format with substring
How to put the string 22012018 What is a date in American format to save in the database? The code below returns me the value: 2018-22-01 I mean, YEAR-DAY-MONTH The right one would be YEAR-MONTH-DAY…
c#asked Igor Carreiro 1,917 -
0
votes1
answer151
viewsA: Permissions in the Login
You can create a field in the table to know the type of user and/or hierarchy to know 'how it will' validate who will have rights to the components of each module. The example below is just a base,…
c#answered Igor Carreiro 1,917 -
1
votes1
answer132
viewsQ: Is it possible to apply CSS style in email sending method?
I have the following method that sends a password recovery email to the user. I wonder if it is possible to apply some type of CSS formatting in it, in order to make more attractive the sent email.…
-
1
votes1
answer463
viewsQ: How to load Fileupload image to <Asp:Image> tag?
My question is how to load the image directly from Fileupload for the tag <asp:Image> And if it is possible to make these validations by client side and validate type and size via jQuery.…
-
2
votes1
answer91
viewsQ: Decision structure, how to know which to use?
On good logic practice: I have a Dropdownlist with 8 values and depending on what is selected will add/remove components from a page html, where it is manipulated via jQuery Now my question is, what…
-
0
votes1
answer372
viewsQ: Class to write/read formatted TXT files
I’m using the Classe Textwriter to read/write a card receipt on .txt however it does not have the property of formatting letter size, spacing, etc. This makes the proof printed on the thermal…
-
1
votes1
answer1018
viewsQ: Save User Session/Cookie when logging in
In WEB applications usually on the Login screen has the option Remind me, in this application will save user data once the same leave marked the option. So when the user enters the site again,…
-
1
votes2
answers6887
viewsQ: Create a modal with jQuery/Javascript only
I have a view Password recovery, where it will bring the following message: We will send password recovery information to the email below: [email protected] Where this view will already open with the…
-
2
votes1
answer1785
viewsQ: Url encryption
I have a way of Email which generates a link through HTTP request, which will send to the user’s email for exchange. But for testing I fixed in this URL the user ID, but for security reasons I have…
-
1
votes1
answer45
viewsQ: Error opening View with values loaded directly from class
I have a default Login screen, which has the functionality "I forgot the password", which when clicked will check the number of the user ID typed on the screen, and if respected, will open a new…
-
1
votes1
answer37
viewsQ: Error validating home page after Login/Password
I have an access validation (Login/Password) that if true, should return to the home page, but return me the following error: Invalidoperationexception: Renderbody Invocation in…
-
0
votes1
answer44
viewsQ: How to return a message warning that there is already a record?
I have a method in Cepcontroller Register that before making the registration makes some validations and between them, checks if there is already registration for that Zip Code. I would like to…
-
0
votes3
answers68
viewsA: Select on a date and return cannot be null
Attribute the IS NOT NULL as it will filter all values that are not NULL. SELECT * FROM Table WHERE DataInicio IS NOT NULL
-
1
votes1
answer308
viewsQ: Query in . NET Core
I am learning the logic of MVC applied in . NET Core but I have some doubts about doing the process CRUD, more specifically the Consultation. How can I make the button click communicate with a…
-
1
votes1
answer85
viewsQ: How to enable/disable a txt from a choice of a jquery radiobutton?
I need to enable/disable a field according to the choice in a radiobutton Validations This field should only be active when the "Inactive" radio button is selected Follows code: Radiobutton:…
-
0
votes1
answer753
viewsQ: View PDF document windows Forms
Is there any property of viewing a file . PDF from the event Click on Picturebox without having to create a new modal? Example: I have this Picturebox, where I created the code below, as soon as it…
-
0
votes1
answer2137
viewsQ: The method or operation is not implemented c#
I cannot identify the reason for this mistake, since I made other developments with this logic and it worked. The method or operation is not implemented. Follows code: Method that starts the values:…
-
0
votes1
answer43
viewsQ: Properties Linklabel Windownsforms
You can use the property LinkLabel to open a kind of Modal to view history of a particular item that are stored in table ? Example: And in that Form would bring that info that is stocked from the…
-
2
votes1
answer568
viewsQ: Check whether a COM port is connected or not
It is possible via code line to check whether a COM port is connected or not ? Analysis: I have a program PDV(Point of Sale) where the same has the integration with Sitef, through a Pinpad(cardboard…
-
1
votes1
answer905
viewsQ: Problems validating longer than final start date
I developed this Function to validate date range, but this with a flaw that I can not solve. If I pass the values: It should enter the validation and not let save. But it does not happen and I do…
jqueryasked Igor Carreiro 1,917 -
0
votes0
answers90
viewsQ: Invalid/Unknown/Unsupported format error
I have the following line of code: new PrintPDF(ConfigurationManager.AppSettings["Comprovante"]); Which I declare in app config.: <add key="Comprovante" value="C:\Client\Resp\Comprovante.txt"…
c#asked Igor Carreiro 1,917 -
3
votes1
answer4415
viewsQ: How to reuse the Click of a button event in another method?
I have the event Click btnReabrirCaixa_Click and would like to reuse the process that has within that event in a method ValidarAberturaCaixa(), without copying and pasting the entire code, how could…
c#asked Igor Carreiro 1,917 -
6
votes2
answers2606
viewsQ: Check whether the previous day is a holiday and/or Sunday
I’m having trouble developing a date validation logic. The variable dataFecha is called with -1 day to already validate the previous day. But when I go to test the validations, he did not subtract…
-
1
votes1
answer18
viewsQ: How to delete the line it automatically generates in a gridView windowns form
I have a gridView that once it is populated with data, it always generates an extra line. How do I remove ? Obs. Grid columns are generated dynamically. if (objPed.ConsultarPedido(Metodos.empresa,…
-
0
votes1
answer162
viewsQ: How to dynamically align the margin of a label via windowns form code?
I have the lblStatus which serves to assign 4 different values according to the query and each value has a different size, so there is no way I can directly form by the property the position. Then I…
c#asked Igor Carreiro 1,917 -
2
votes1
answer47
viewsQ: How can I dynamically set an avatar photo in windows Forms?
I have the following line of code that will set the client image on the screen if there is, if not will leave as null. How can I leave dynamic, IE, if the customer does not have the photo will set…
c#asked Igor Carreiro 1,917 -
1
votes1
answer173
viewsQ: How to assign a List<> to a Datatable correctly windowns Form?
I’m trying to list the payment methods of the table dbo.FormaPgto in a Combobox but you’re making that mistake. Follows code. Class: public List<Formas_Pagamento> ListarFormaPgto(string campos…
c#asked Igor Carreiro 1,917 -
0
votes2
answers4220
viewsQ: Adjust Form layout according to monitor resolution
I made a form in fullscreen, where the monitor I use is 23'' inches. But where the functionality will be deployed, they use 19". When I executed, the Form did not get the size of the smaller…
-
1
votes2
answers1773
viewsA: Format phone numbers and CNPJ
Create a Function in jQuery to validate the CPF and/or CNPJ. If it is not something just visual, will have to do the treatment to save in the database, giving the .replace points and bar. Example:…
phpanswered Igor Carreiro 1,917 -
1
votes0
answers19
viewsQ: Understanding the MVC routes
I’m about to start a project in MVC 5 . NET but I don’t understand very well how it works this framework route. I’m used to ASP.NET 4.5 where I know that: The .aspx is the front-end. The .aspx.cs is…
-
0
votes2
answers232
viewsQ: How to pass a direct path to an html inside the iframe tag
How can I pass a path to a div calling an HTML page inside the tag iframe ? Example, I have the following help menu that will be available for the user to access from any screen of the system, but…