Click here to Skip to main content
15,887,319 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionIFrame name Pin
Ali Al Omairi(Abu AlHassan)22-Jan-12 2:20
professionalAli Al Omairi(Abu AlHassan)22-Jan-12 2:20 
AnswerRe: IFrame name Pin
Not Active22-Jan-12 4:00
mentorNot Active22-Jan-12 4:00 
GeneralRe: IFrame name Pin
Ali Al Omairi(Abu AlHassan)22-Jan-12 4:49
professionalAli Al Omairi(Abu AlHassan)22-Jan-12 4:49 
AnswerRe: IFrame name Pin
Ali Al Omairi(Abu AlHassan)24-Jan-12 20:34
professionalAli Al Omairi(Abu AlHassan)24-Jan-12 20:34 
Questionconfirmation box in between code-behind instructions Pin
Vijay Bhojwani20-Jan-12 5:25
Vijay Bhojwani20-Jan-12 5:25 
AnswerRe: confirmation box in between code-behind instructions Pin
Ali Al Omairi(Abu AlHassan)22-Jan-12 1:58
professionalAli Al Omairi(Abu AlHassan)22-Jan-12 1:58 
QuestionDynamic Ajax controls not visible on button click event Pin
byka20-Jan-12 4:18
byka20-Jan-12 4:18 
QuestionProblem in AutocompleteExtender Pin
Member 831109520-Jan-12 2:19
Member 831109520-Jan-12 2:19 
Dear All,
Please go through with my code. I do not understand why this is not working.I have searched alot and make this code.When i am checking my asms file in browser data is reflecting correctly in XML but when i am running in ASPX page nothing is happening.There is no error also

************.aspx page

my code here
webservice

XML
[WebMethod]

    public List<string> getAdmissionNo(string prefixText)
    {

        SqlConnection sqlConnection = new SqlConnection(ConfigurationManager.AppSettings["MyCon"].ToString());
        sqlConnection.Open();

        SqlCommand sqlCommand = new SqlCommand("select Convert(varchar,AdmissionNo) As AdmissionNo from OA_ADM_tblAdmission_AdmissionDetails  where AdmissionNo like @Name+'%'", sqlConnection);
        sqlCommand.Parameters.AddWithValue("@Name", prefixText);
        SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(sqlCommand);
        DataTable dt = new DataTable();
        sqlDataAdapter.Fill(dt);
        List<string> AdmissionNos=new List<string>();


        for (int i = 0; i < dt.Rows.Count; i++)
        {

            string s =Convert.ToString(dt.Rows[i]["AdmissionNo"].ToString());


C#
AdmissionNos.Add(s);


      }

      return AdmissionNos;

  }


And aspx
XML
<asp:ScriptManager runat="server" ID="sm"></asp:ScriptManager>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtAdmisssionNo" runat="server"  MaxLength="15"></asp:TextBox>
                                                    <asp:AutoCompleteExtender ID="autoCompleteExtender" runat="server" TargetControlID="txtAdmisssionNo"
                                                        MinimumPrefixLength="1" ServiceMethod="getAdmissionNo" ServicePath="~/Service.asmx" >
                                                    </asp:AutoCompleteExtender>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>



correct records

121010001/002
121020001/003
121020002/002
121010002/001
111020002/001
111020001/003
111010001/001


but our Autocomplete result displays this format

60505000.5
40340000.333333336
60510001
121010002
111020002
37006667
111010001
it was wrong.i want 121010001/002 this format records help me.
AnswerRe: Problem in AutocompleteExtender Pin
Member 831109520-Jan-12 21:11
Member 831109520-Jan-12 21:11 
QuestionWebControl - call method from markup Pin
Hanzaplast20-Jan-12 0:59
Hanzaplast20-Jan-12 0:59 
QuestionNeed of Profession CSS for Gridview in ASP.NET Pin
ssnsol20-Jan-12 0:43
ssnsol20-Jan-12 0:43 
QuestionAccessing ASP.NET application through virtual directory. Pin
ssnsol20-Jan-12 0:13
ssnsol20-Jan-12 0:13 
QuestionAsp.net c# list<string> Pin
Member 831109519-Jan-12 21:16
Member 831109519-Jan-12 21:16 
AnswerRe: Asp.net c# list Pin
ssnsol20-Jan-12 0:22
ssnsol20-Jan-12 0:22 
Questionmaintain scroll in master page Pin
buffering8319-Jan-12 20:00
buffering8319-Jan-12 20:00 
QuestionAutocomplete textbox problem Pin
Member 831109518-Jan-12 23:25
Member 831109518-Jan-12 23:25 
AnswerRe: Autocomplete textbox problem Pin
sri08018818-Jan-12 23:57
sri08018818-Jan-12 23:57 
GeneralRe: Autocomplete textbox problem Pin
Member 831109519-Jan-12 3:13
Member 831109519-Jan-12 3:13 
AnswerRe: Autocomplete textbox problem Pin
ssnsol20-Jan-12 0:28
ssnsol20-Jan-12 0:28 
QuestionBlog Software for ASP.NET Pin
G458I18-Jan-12 22:58
G458I18-Jan-12 22:58 
AnswerRe: Blog Software for ASP.NET Pin
sri08018818-Jan-12 23:59
sri08018818-Jan-12 23:59 
AnswerRe: Blog Software for ASP.NET Pin
uspatel19-Jan-12 1:48
professionaluspatel19-Jan-12 1:48 
QuestionAjax PopupControlExtender in GridView Pin
klaydze18-Jan-12 14:31
klaydze18-Jan-12 14:31 
AnswerRe: Ajax PopupControlExtender in GridView Pin
Ali Al Omairi(Abu AlHassan)18-Jan-12 21:32
professionalAli Al Omairi(Abu AlHassan)18-Jan-12 21:32 
GeneralRe: Ajax PopupControlExtender in GridView Pin
klaydze19-Jan-12 1:12
klaydze19-Jan-12 1:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.