in Education by
I have a DropDownList with values that I get from a SQL database. Depending on the selection made from the DropDownList, I populate a GridView, also from a SQL database. When I set AutoPostBack=true on the DropDownList I get a 'Input string not in correct format' error. My DropDownList: --- Select --- In my ObjectDataSource for my GridView I use the following SelectParameters: Any help? Thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
It is probably trying to convert the value of this list item to an int --- Select --- An empty string cannot be converted to an integer, try using -1 or 0.

Related questions

0 votes
    I have a DropDownList with values that I get from a SQL database. Depending on the selection made from ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    The approach to input validation that simply encodes characters considered "bad" to a format which should not affect the ... weak (1)Encrypt bad (2)Backlisting (3)Encode bad...
asked May 15, 2021 in Technology by JackTerrance
0 votes
    When receiving user input on forms I want to detect whether fields like "username" or "address" does not contain markup ... form is more dangerous, but it should still be safe:...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    A—- is in input device that is used to traslete paper document into electronic format that can be store in a computer Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    I am working in an graphql application where I have to send custom error object / message in json ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    Does anyone know how to solve this java error? java.io.IOException: Invalid keystore format I get it when ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    Does anyone know how to solve this java error? java.io.IOException: Invalid keystore format I get it when ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    I'm trying to run a query on Cassandra through spark. When running this command: val test = sc.cassandraTable[Person](keyspace, ... users" WHERE token("uuid") > ? AND token("uuid")...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Which of these code snippet is the correct format to run SQL queries? 1. display(spark.sqlContext("select * from Fresco")) 2 ... ")) 4. show(spark.sql("select * from Fresco"))...
asked Oct 22, 2020 in Technology by JackTerrance
0 votes
    I am trying to fit some (numpy) data into python skLearn modules, but keep getting error messages. When ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 3, 2022 in Education by JackTerrance
0 votes
    Which annotation is used to represent command line input and assigned to correct data type? (a) @Input (b ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following is correct error when loading JAR file with duplicate name? (a) java.io.NullPointerException ( ... JDBC of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Hi, I am a relatively new programmer and my teacher gave us this problem to fix. Thing is, I have no idea ... wrong with this problem? Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    Me and my colleague have different versions of VisualStudio. He used interpolated string and I couldn't ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 19, 2022 in Education by JackTerrance
...