c# - How pass null from code behind with textboxes -


i have 2 textboxes , drop down.user has option should select drop down , enter value in 1 of texbox .

my procedure accepts null values . problem how pass tht code behind tht text box value submitted shud return data.

can 1 me on .

thanks smartdev

have checked int.parse or int.tryparse methods along nullbale int

some thing similar work

int? couldbenullint; couldbenullint = int.parse(sometextbox.text); 

if value returned null, pass null procedure otherwise pass non null value

such as

if(couldbenullint.hasvalue && couldbenullint.value !=null) 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -