If(dropdownlist1.selectedIndexChanged==true)
{
//code
}
else
{
//code
}
I am getting error in If condition, so can u pls give me a
solution.

Answer Posted / narashiman

if we try to set the dropdownlist1 autopostback to true. we
will not get the error

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What I need to create and run an asp.net application?

510


Do I need to have the latest version of windows media player installed?

509


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

535


What is asp.net used for?

595


Do gac'ed assemblies have fulltrust?

641






Explain the difference between debug.write and trace.write? When should each be used?

552


List the events in page life cycle.

551


Explain what are the advantages of asp.net mvc framework? : asp.net mvc

513


Difference between singleton and singlecall.

567


To add a hyperlink column to the DataGrid which tag is used ?

577


How does session work in asp net?

552


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

524


How do I know asp.net mvc version? : Asp.Net MVC

491


Which is an advantage of application service providers?

487


What is cross page posting? How is it done?

551