invoice.aspx:
<asp:DropDownList ID="lstCountryy" runat="server" Width="216px" Height="27px" AutoPostback="false">
</asp:DropDownList>
dtInquiry is my Inquiry table in which country field is there and i am fetching the value from inquiry form to invoice form. i am not getting the selected value. It shows blank(""). I dont know what wrong with that.Any help will be highly appreciated.
private void loadinvoicedetails()
{
string queryStrLoadInq = "SELECT COMPANY,COUNTRY,EMAIL,CONTACT_NAME FROM CRM_INQUIRY_PERTICIPANT WHERE INQUIRY_ID=" + currInquiryId + " ";
ClassDtBaseConnect clsDtResult = new ClassDtBaseConnect();
DataTable dtInquiry = clsDtResult.GetDataTable(queryStrLoadInq);
txtCompanyName.Text = dtInquiry.Rows[0]["company"].ToString();//Fipkart company
txtEmail.Text = dtInquiry.Rows[0]["email"].ToString();//abc@gmail.com
txtContactPerson.Text = dtInquiry.Rows[0]["contact_name"].ToString(); //rahul
lstCountryy.SelectedValue = dtInquiry.Rows[0]["country"].ToString();//Here selected value shows blank
}