Dropdownlist in formview edit template




















You'd need to show some of your code so we can see exactly what your doing, but I'm pretty sure that we don't call SelectedIndex changed on every dropdown.. I will try to create the smallest possible code snipet preserving behaviour described as my respective project is too complex to serve as an example.

As many times, also in this case, blind belief in difficulty of solution makes us completely reckless of trivial details. Setting this attribute to 'false' indeed leeded to symptomps described. And removing it fixed things up.

Having a cup of tea or a nap and then reviewing basic features of the code - this is what would have helped the best :. The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Thanks for the reply. Is there a way to do this without using code behind? Ah ok, thanks. How do I get the DB value?

I just want the current strategyId that was displayed in the ItemTemplate before the Edit button was clicked. I'm quite new to ASP. NET - appreciate any help. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. HTML Markup. Net GridView control. Net DropDownList control. You will need to import the following namespaces. Imports System. Populating the GridView. BindGrid ;. ConnectionStrings[ "conString" ]. Fill dt ;. DataBind ;. If Not Me. IsPostBack Then. End If. End Sub. Private Sub BindGrid. ConnectionStrings "conString". Fill dt. End Using. Answered by:.

Archived Forums. Web Forms Data Controls. Sign in to vote. User posted Visual Studio Express. NET framework 4.



0コメント

  • 1000 / 1000