Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: c # webbrowser Windows Media Player Pin
BillWoodruff31-Oct-15 21:20
professionalBillWoodruff31-Oct-15 21:20 
GeneralRe: c # webbrowser Windows Media Player Pin
OriginalGriff31-Oct-15 21:39
mveOriginalGriff31-Oct-15 21:39 
GeneralRe: c # webbrowser Windows Media Player Pin
BillWoodruff31-Oct-15 22:03
professionalBillWoodruff31-Oct-15 22:03 
GeneralRe: c # webbrowser Windows Media Player Pin
OriginalGriff31-Oct-15 22:08
mveOriginalGriff31-Oct-15 22:08 
Questionocr experts Pin
iqballll31-Oct-15 2:47
iqballll31-Oct-15 2:47 
AnswerRe: ocr experts Pin
OriginalGriff31-Oct-15 2:49
mveOriginalGriff31-Oct-15 2:49 
GeneralRe: ocr experts Pin
iqballll31-Oct-15 2:51
iqballll31-Oct-15 2:51 
QuestionLooking for a solution for combine WebService and jQuery (web app) Pin
goldsoft30-Oct-15 23:29
goldsoft30-Oct-15 23:29 
hi,

i have this code for reading xml file into my list.
var zfullname, zphone_M, zphone_F,  zMail, zFname,zLname;
       var ALL;
       var  Fname, Lname, Phone_M, Phone_F,  Mail;

       function XX() {
           if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
               xmlhttp = new XMLHttpRequest();
           }
           else {// code for IE6, IE5
               xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
           }
           xmlhttp.open("GET", "Phone.xml", false);
           xmlhttp.send();
           xmlDoc = xmlhttp.responseXML;

           $("#ZIZI").empty();

           var x = xmlDoc.getElementsByTagName("MEN");
           for (i = 0; i < x.length; i++) {

               try { Fname = x[i].getElementsByTagName("Fname")[0].childNodes[0].nodeValue; }
               catch (err) { Fname = "0"; }
               try { Lname = x[i].getElementsByTagName("Lname")[0].childNodes[0].nodeValue; }
               catch (err) { Lname = "0"; }
               try { Phone_M = x[i].getElementsByTagName("Phone_M")[0].childNodes[0].nodeValue; }
               catch (err) { Phone_M = "0"; }
               try { Phone_F = x[i].getElementsByTagName("Phone_F")[0].childNodes[0].nodeValue; }
               catch (err) { Phone_F = "0"; }
               try { Mail = x[i].getElementsByTagName("Mail")[0].childNodes[0].nodeValue; }
               catch (err) { Mail = "0"; }

               if (Mail == "0") Mail = "&nbsp;";
               if (Phone_M == "0") Phone_M = "&nbsp;";
               if (Phone_F == "0") Phone_F = "&nbsp;";

               ALL =
                     '<li >' +

                     '<a href="men.html" data-transition="flip">' +
                        '<div class="ui-grid-a" id="restau_infos"> ' +
                               '<p style="font-size:22px; margin:0px;padding:0px;" class="nam"><b>' + Fname + " " + Lname +  '</b></p>' +
                               '<p style="font-size:16px; margin:0px;padding:0px;" class="phn">' + Phone_M + '</p>' +
                               '<p style="font-size:16px; margin:0px;padding:0px;" class="phn2">' + Phone_F + '</p>' +
                               '<p style="font-size:14px; margin:1px;padding:1px;" class="crr">' + Mail + '</p>' +
                        ' </div>' +
                     '</a>' +
                     '<a href="tel:' + Phone_M + '  data-icon="location" ></a>' +
                     '</li>'

               $("#ZIZI").append(ALL);
               $("#ZIZI").listview("refresh");
           }
       }

this work excellent.

i have WebService that return DataSet.
string SQL;
       DataSet dsView;

       [WebMethod]
       [ScriptMethod(ResponseFormat = ResponseFormat.Xml)]
       public DataSet GetData( string sel)
       {

           dsView = new DataSet();
           MyParam.OpenConnection();
           SQL = "select Fname,Lname,S_phone from MEN where sel = '" + sel + "'";
           dsView = new DataSet();
           MyParam.adp = new SqlDataAdapter(SQL, MyParam.Conn);
           MyParam.adp.Fill(dsView, "MEN");
           MyParam.adp.Dispose();
           if (dsView.Tables["MEN"].Rows.Count >= 1)
           {
               return dsView;
           }
           else
           {
               return null;
           }
       }

How to combine both that i can read from the WebService ?

(the WebService in 127.0.0.1/WS_TEST/Service1.asmx for example)

thanks
Answer[REPOST] Looking for a solution for combine WebService and jQuery (web app) Pin
Richard Deeming2-Nov-15 1:57
mveRichard Deeming2-Nov-15 1:57 
Questionwhy I can't install SQL Server Compact Database for SQL Server Management Studio ? Pin
Member 245846730-Oct-15 18:17
Member 245846730-Oct-15 18:17 
AnswerRe: why I can't install SQL Server Compact Database for SQL Server Management Studio ? Pin
John Torjo31-Oct-15 0:30
professionalJohn Torjo31-Oct-15 0:30 
AnswerRe: why I can't install SQL Server Compact Database for SQL Server Management Studio ? Pin
Eddy Vluggen31-Oct-15 1:21
professionalEddy Vluggen31-Oct-15 1:21 
QuestionTrying to design thread safe class Pin
Member 1206160030-Oct-15 10:18
Member 1206160030-Oct-15 10:18 
AnswerRe: Trying to design thread safe class Pin
BillWoodruff30-Oct-15 10:29
professionalBillWoodruff30-Oct-15 10:29 
GeneralRe: Trying to design thread safe class Pin
Member 1206160030-Oct-15 10:33
Member 1206160030-Oct-15 10:33 
GeneralRe: Trying to design thread safe class Pin
John Torjo31-Oct-15 0:29
professionalJohn Torjo31-Oct-15 0:29 
GeneralRe: Trying to design thread safe class Pin
Member 1206160031-Oct-15 0:43
Member 1206160031-Oct-15 0:43 
GeneralRe: Trying to design thread safe class Pin
John Torjo31-Oct-15 7:40
professionalJohn Torjo31-Oct-15 7:40 
GeneralRe: Trying to design thread safe class Pin
Member 1206160031-Oct-15 7:56
Member 1206160031-Oct-15 7:56 
GeneralRe: Trying to design thread safe class Pin
John Torjo31-Oct-15 7:57
professionalJohn Torjo31-Oct-15 7:57 
GeneralRe: Trying to design thread safe class Pin
Member 1206160031-Oct-15 7:58
Member 1206160031-Oct-15 7:58 
GeneralRe: Trying to design thread safe class Pin
John Torjo31-Oct-15 9:40
professionalJohn Torjo31-Oct-15 9:40 
GeneralRe: Trying to design thread safe class Pin
Member 1206160031-Oct-15 9:47
Member 1206160031-Oct-15 9:47 
GeneralRe: Trying to design thread safe class Pin
John Torjo31-Oct-15 9:51
professionalJohn Torjo31-Oct-15 9:51 
GeneralRe: Trying to design thread safe class Pin
Member 1206160031-Oct-15 10:24
Member 1206160031-Oct-15 10:24 

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.