Link to home
Start Free TrialLog in
Avatar of 1jaws
1jawsFlag for United States of America

asked on

formview combobox problem

here the thing happening on my formview.. I have a country field that I have a code for the Item template this
<td >
                                                        Country:<br />
                                                        <asp:TextBox runat="server" ID="txtCountry" ReadOnly="true"
                                                            Text='<%#Bind("countryName") %>' />
                                                    </td>

and for the editTemplate same thing gets combo box for users to select from countries
 <td >
                                                        Country:<br />
                                                        <telerik:RadComboBox ID="cbCountry" runat="server"  
                                                           
                                                             DataSourceID="dsCountry" DataTextField="Country"
                                                            DataValueField="CountryCode">
                                                        </telerik:RadComboBox>                                                      
                                                    </td>

and update parameters I have this as a  for the update sp..
 <asp:Parameter Name="countryCode" Type="String" />

what happens is formview first loads gives me country name as United State on textbox.. Then  on edit form, it shows my combobox and shows United States as a country, but than if I go back to textbox mode I see nothing under the country textbox.. why this happening dont know? any idea?
ASKER CERTIFIED SOLUTION
Avatar of Easwaran Paramasivam
Easwaran Paramasivam
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1jaws

ASKER

this didnt work because it gives me what I want when page first loads but than after update that happens, thinking something to do with update..
Avatar of 1jaws

ASKER

it is not a solution just the thank you both for effort