Posts by krispim • 453 points
25 posts
-
0
votes1
answer100
viewsA: Validate field with Customvalidator
I solved my problem of validating the field after postblack on the page. Was done in javascript. $(document).ready(function () { ValidarDataInventario(); }); function ValidarDataInventario() { if…
-
1
votes1
answer100
viewsQ: Validate field with Customvalidator
I have a field that is filled with an automatic date , this field is validated with customValidator so that the date is not empty, the problem when the field is validated with empty and I click on…
-
1
votes2
answers577
viewsQ: Validate Field with Avascript
I need to validate some field, forcing the user to provide the data before saving in database, if it does not provide the data, the edge of the control turns red stating that there is something…
-
1
votes2
answers177
viewsQ: the onKeyUp event of the java script influences the Customvalidator Function
I have a question, the onKeyUp event of the java script influences the Clientvalidationfunction property of the Customvalidator. I am maintaining a page here at the company, and I need to validate a…
-
0
votes1
answer531
viewsQ: Validating an Empty textbox field with Customvalidator
I need to validate a Textbox field, for when it is empty paint to embroider indicating that there is some error with the field, I am using the customValidador but it is not working. The code of…
-
-1
votes1
answer3634
viewsQ: It is possible to disable the Primary key of a table
I was wondering if it’s possible to disable a Primary key from a table. I’ll explain why you have to disable Prime Key. I have a table B that has a foregein referring to table A, but I need to…
-
0
votes1
answer298
viewsQ: To validate the value selected in the dropdownlist
I am using the Comparevalidator to check if the value selected in the dropdownlist is "Select", but this does not work, follow the code. <asp:DropDownList ID="ddlIdPisSt" runat="server"…
-
3
votes2
answers4180
viewsQ: Create a script to check if the table has a primary key
I need to create a script to check if a table has primary key, if not, is added to primary key. I found this way to make the script, nas did not understand where it takes the name of this table…
-
1
votes2
answers782
viewsQ: How to make space in the checkboxlist text created dimanically
I’m trying to give a space between the checkboxlist square and the text, but it’s not working, I followed the code. <div class="form-group"> <asp:Label ID="Label2" Text="" runat="server"…
-
1
votes2
answers277
viewsQ: Format select output
I have a problem to format a column in gridview, this column takes three values from the concatenated database, utlimo value can be null, if null has with not present the last trace that separates…
-
1
votes1
answer301
viewsQ: Increasing the size of a string
It is possible to increase the size of a string in the code? string sIdentComanda = ""; if (objComandaParametro.ComandaParametros[0].IsControlaNrComanda) { sIdentComanda += " Comanda: " + nrComanda;…
-
3
votes3
answers2918
viewsQ: Format a string with time
I’m trying to format a string that already has date and time, but this string just gotta get the time I’m trying this way but it doesn’t work: Recovering from Data Base. string dtSolicitacao =…
-
0
votes1
answer49
viewsQ: Select the Textbox value
It is possible, when entering a page, to leave the value of a textbox, and if the value is wrong, instead of deleting just enter another value that the previous value is automatically deleted?…
-
4
votes2
answers132
viewsQ: check if several fields are created in the database
It was added in a table plus 7 columns, only before you need to check if this column is in the database otherwise the column creation script should not be executed. Is there a way in a single…
-
0
votes1
answer226
viewsQ: Error with javascrit in separate file
I have a function javascript to validate number-only input in a field text when onkeypress, onKeyUp, onBlur and onChange, when I put this code on the page works, but I have several other pages that…
javascriptasked krispim 453 -
0
votes1
answer133
viewsQ: Replace problem on sqlserver
I have a field in the page that receives only number, but when I compare in the function this value of the page with what is in the bank, does not return to search. I’m trying to use the Replace to…
sql-serverasked krispim 453 -
0
votes1
answer226
viewsA: Javascript paging from Asp:Gridview
If you are just going to put paging in gridview you have a property for this. AllowPaging="True" If it is not that, it puts more details of the problem.
-
1
votes1
answer68
viewsA: Doubt to Load Combobox from an account with the sub account
Denilson Carlos, try to take the increment of cbbConta.Selectedindex +1. private void cbbConta_SelectedIndexChanged(object sender, EventArgs e) { codContaSelec = cbbConta.SelectedIndex ; //…
-
0
votes3
answers6938
views -
1
votes3
answers6938
views -
9
votes3
answers31270
viewsQ: Format mask for CNPJ
I need to format a mask for CNPJ. Until then this is done, but the standard of the company is to format with space instead of stitch. This is the code I’m using. valorDoTextBox =…
-
2
votes1
answer307
viewsQ: Changing a Label control when changing a textbox control
I have a textbox control that is used to receive a CPF or CNPJ and in it and made a check to accept only numbers. The label that is in front of the textbox only appears when the page is saved and…
-
0
votes1
answer653
viewsQ: add a foreing key to an existing table
I have to create a column in an existing table and at the same time create a foreing key with another table using this column that was created, and this foreing key by default has to be null. The…
-
1
votes1
answer13959
viewsQ: Set default value for column of an existing table
It is possible to set default value for column of an existing table? I am trying this way, but always the column is null instead of the default value that was reported. IF NOT EXISTS (SELECT * FROM…
sql-serverasked krispim 453 -
6
votes2
answers415
viewsQ: How to check if Eval has null value?
I’m using the Eval property to load a field from GridView instantiated an object, the problem is when the object has no value , instead of appearing blank wanted to show a dash indicating that…