Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Displaying GridView on Index change event of dropdownlist
Harsh Jani
Dec 11 2014 3:21 AM
926
Reply
Hi,
I want to display GridView on SelectedIndexChanged event of DropDownList. I have set the AutoPostBack property of DropDownList to true. Now, the problem is every time a user changes the value in DropDownList, the GridView does not appear because the page gets posted back to the server and the index is lost. So, I have taken the value of Index into View State and the problem is solved. But, I have not placed the code inside if(!IsPostBack).
Now the problem is, every time the user clicks on Edit button inside GridView, the GridView disappears and the user has to select the value inside the DropDownList again to make GridView appear. Another, issue is that the GridView does not fire any event after he clicks update button.
Kindly help me rectify this issue.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Entity Framework ?
want help to print string looping in c#