Empfohlen: So implementieren Sie die Verarbeitung mehrerer Domänennamen im selben Bereich Nehmen Sie diese beiden Domainnamen als Beispiel: http://www.knowsky.com/http://code.knowsky.com/the Die beiden Domain -Namen sind an denselben Raum gebunden, ha, aber sie werden in verschiedene Verzeichnisse springen. Sie werden nicht in IIS -Einstellungen implementiert, sondern nur ein kleines Stück ASP -Code.
Ein Anforderungsformular kann N -Elemente enthalten, und beim Hinzufügen des Anforderungsformulars müssen Sie den Code dynamisch hinzufügen.
Dynamische Tabelle
| Das Folgende ist der zitierte Inhalt: <table border = 0 width = 98% id = tabzx name = tabzx align = center class = table_list> <tr> <td class = th_list width = 10%> Spalte a </td> <td class = th_list width = 10% align = center> Spalte B </td> <td class = th_list width = 10% align = center> Spalte c </td> <td class = th_list width = 5% align = center> Spalte d </td> <td class = th_list width = 5% align = center> Spalte e </td> <td class = th_list width = 5% align = center> Spalte f </td> <%- <td class = th_list width = 7% align = center> Spalte g </td> -%> <td class = th_list width = 13%> [ <a href = javaScript: doselekt (450.400, 'formedit.supplyid')> <font color = ff0000> Gerät auswählen </font> </a>]] </td> </tr> </table> Der JS -Code lautet wie folgt (die Geräteliste wird gemäß den Bedingungen angezeigt und dann das vorhandene Gerät auswählen) Funktionsdoselekt (Breite, Höhe, Strobj) { var k; var s = new Object (); k = showmodaldialog (/applications_add_addssearch.jsp,s,dialogwidth:320px;status:no;scroll:No;dialogHeight:280px); if (k! = null) { var url = /applicationsAction.do?method=InsertAddsach&stid=k -0] & sbid = k [1] & ggid = k [2]; window.open (URL, 'NewWindow', 'Höhe = 600, Breite = 800, Symbolleiste = nein, Menubar = nein, ScrollBars = Ja, resizierbar = nein, locum = nein, Status = nein'); } } ====================================== Dynamisch Datencode gemäß der Auswahl hinzufügen <script Language = vbScript> Dim lcountmx lcountmx = 0 Funktion Badd (STID, STNAME, VCID, VCNAME, GGID, GGNAME, DWEI, SLIANG, DJIA) LCOUNTMX = LCOUNTMX 1 Dim Orow, Ocell, ii Setzen Sie Orow = tabzx.insertrow Orow.id = trzx & lcountmx Setzen Sie ocell = orrow.insertcell Dim SSS SSS = <Eingabe type = Hidden name = cgdjmx & lcountmx & value => SSS = SSS & <Eingabe type = Hidden name = stid & lcountmx & value = & stid &> SSS = SSS & <Eingabe type = Hidden name = stname & lcountMX & value = & stname &> SSS = SSS & <Eingabe type = Hidden name = vcid & lcountMX & value = & vcid &> SSS = SSS & <Eingabetyp = Hidden Name = GGID & LCOUNTMX & VALUE = & GGID &> SSS = SSS & STNAME ocell.innerhtml = ss OCELL.CLASSNAME = LISTCELLROW Setzen Sie ocell = orrow.insertcell OCELL.CLASSNAME = LISTCELLROW ocell.Align = center ocell.width = 60 ocell.innerhtml = <Eingabe type = Hidden name = vcname & lcountmx & value = & vcname &> & vcname Setzen Sie ocell = orrow.insertcell OCELL.CLASSNAME = LISTCELLROW ocell.Align = center ocell.width = 60 ocell.innerhtml = <Eingabe type = Hidden name = ggname & lcountmx & value = & ggname &> & ggname Setzen Sie ocell = orrow.insertcell OCELL.CLASSNAME = LISTCELLROW ocell.Align = center ocell.width = 60 ocell.innerhtml = <Eingabetyp = Textgröße = 10 name = thao & lcountmx & value = ''> Setzen Sie ocell = orrow.insertcell OCELL.CLASSNAME = LISTCELLROW ocell.Align = center ocell.width = 60 ocell.innerhtml = <Eingabe type = Hidden name = dwei & lcountmx & value = & dwei &> & Dwei Setzen Sie ocell = orrow.insertcell OCELL.CLASSNAME = LISTCELLROW ocell.Align = center ocell.width = 60 ocell.innerhtml = <Eingabetyp = Textgröße = 3 Name = Sliang & LCountMX & Onchange = 'ChangeFun (& LCountMX &)' Value = ''> <%- Setzen Sie ocell = orrow.insertcell OCELL.CLASSNAME = LISTCELLROW ocell.Align = center ocell.width = 60 ocell.innerhtml = <Eingabetyp = Textgröße = 3 Name = DJIA & LCOUNTMX & ONCHANGE = 'ChangeFun1 (& lcountMX &)' Value = ''> -%> Setzen Sie ocell = orrow.insertcell OCELL.CLASSNAME = LISTCELLROW ocell.innerhtml = <Eingabe type = 'button' value = 'delete' onclick = 'vbscript: bdel (& lcountmx &)' id = button7 name = button7> ocell.Align = center document.applicationsForm.ypsl.value = lcountmx Endfunktion Funktion Bdel (l) tabzx.deleterow document.getElementById (TRZX & L) .RowIndex Endfunktion Funktion ChangeFun (OBJ1) ändern OBJ1 Endfunktion Funktion ChangeFun1 (OBJ1) wechseln1 obj1 Endfunktion </script> ================================ |
Teilen: Analysieren Sie den SRC -Pfad, Bilder in HTML aus ASP zu extrahieren Was ist Regexp in ASP? Name Zeichenprüfung ist der referenzierte Inhalt: öffentliche Funktion Checkname (STR) checkName = True Dim Rep, Pass set rep = new RE
2 Seiten in der vorherigen Seite der vorherigen Seite 12 nächste Seite