Click here to Skip to main content
15,881,882 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Multiple selection values..., Pin
abdulquddusa1-Jul-08 23:27
abdulquddusa1-Jul-08 23:27 
Questionsession problem in asp.net 2.0 Pin
vijaylumar1-Jul-08 20:12
vijaylumar1-Jul-08 20:12 
AnswerRe: session problem in asp.net 2.0 Pin
N a v a n e e t h1-Jul-08 20:24
N a v a n e e t h1-Jul-08 20:24 
GeneralRe: session problem in asp.net 2.0 Pin
vijaylumar1-Jul-08 21:07
vijaylumar1-Jul-08 21:07 
GeneralRe: session problem in asp.net 2.0 Pin
N a v a n e e t h1-Jul-08 21:10
N a v a n e e t h1-Jul-08 21:10 
AnswerRe: session problem in asp.net 2.0 Pin
Abhijit Jana1-Jul-08 21:11
professionalAbhijit Jana1-Jul-08 21:11 
AnswerRe: session problem in asp.net 2.0 Pin
Gayani Devapriya1-Jul-08 21:54
Gayani Devapriya1-Jul-08 21:54 
QuestionHow to resolve my problem? Pin
hoang hoa tham1-Jul-08 20:11
hoang hoa tham1-Jul-08 20:11 
I have to write a classic ASP page.I have a page which has a html table with some row , each row has some controls with several textboxes and 3 select controls(dropdownlist). At table's below, there is a Add button to add new row. When click on Add button, the new row will be added(with full of textboxes and select controls as same to other rows, and they have the same ID, too). What I wanna do is after selected an item from the first dropdownlist, data will be loaded from server and filled in the second dropdownlist on the same row, and after selected an item from the second one, data will be loaded form server to fill in the third one. I wonder after select an item from the first dropdownlist, I need to reload page to load data and fill the second one, and if I have some rows already has been filled data in textbox control etc will be lost. To resolve it, I've tried to use AJAX technology but It didn't work with IE though that worked with Firefox. Please help me to resolve this problem? If you can show me code better.

<![CDATA[<%@ LANGUAGE="VBSCRIPT"%>]]>
<![CDATA[<%

%>]]>
<![CDATA[<%
      Set conn = server.CreateObject("ADODB.Connection")
     
      strConnection="Driver={SQL Native Client};DSN=ASP;Server=51-00027\SQLEXPRESS;Trusted_Connection=yes;"
     
      conn.Open strConnection
     
      set rs = server.CreateObject("ADODB.Recordset")
     
      strSql = "SELECT * FROM tblUser ORDER BY USER_NAME"
    
     rs.Open strSql, conn
    
     dim rs1, strSql1
    
     set rs1 = server.CreateObject("ADODB.Recordset")
    
%>]]>
<html>
<head>
<title>Add a row in table</title>
</head>
<script language="javascript">
            function InsertRow()
     {
          count++;
          var table = document.getElementById("tblAddRow");
          if (!table) throw "Table not found";
          var row = table.insertRow(0); //append at the begin
          var cell1 = row.insertCell(0);
          var cell2 = row.insertCell(1);
          var cell3 = row.insertCell(2);
          var cell4 = row.insertCell(3);
          cell1.innerHTML = 'Test' + count;
         
          cell2.innerHTML = '<input type="text" id="txtDate">';         
         
          cell3.innerHTML = '<select id="cboCompany" name="cboCompany" onchange="javascript:ShowPermission(this, this.value);">' +                                
                                     '<option value="0">????</option>' +
                                 '<%   Do while Not rs.EOF     %>' +
                                 '<option value="<%=rs(0)%>"><![CDATA[<%=rs(1)%>]]></option>' +
                                 '<% rs.MoveNext() %>' +
                                 '<% Loop %>' +
                                     '</select>';                                
          cell4.innerHTML = '<select id="cboPermission" name="cboPermission">' +
                                 '<option>????</option>' +
                                 '</select>';
     }
         
</input></script>
<body>
     <form name="frmAddRow" action="" method="post">
          <table id="tblAddRow" border="1">
             <tr>
               <td>Colum1</td>
               <td>Colum2</td>
               <td>Colum3</td>
               <td>Colum4</td>
             </tr>
          </table>         
          <input type="button" name="btnAddRow" onclick="javascript:InsertRow();" value="AddRow" />         
     </form>
</body>
</html>
<![CDATA[<%
     rs.close
     set rs = nothing
     conn.close
     set conn = nothing
%>]]>


modified on Tuesday, July 1, 2008 3:10 AM

modified on Tuesday, July 1, 2008 3:13 AM

QuestionError Pin
rockram1-Jul-08 19:52
rockram1-Jul-08 19:52 
AnswerRe: Error Pin
Leyu1-Jul-08 20:08
Leyu1-Jul-08 20:08 
QuestionStore Data in Hindi Language Pin
vishalrastogi111-Jul-08 18:51
vishalrastogi111-Jul-08 18:51 
AnswerRe: Store Data in Hindi Language Pin
N a v a n e e t h1-Jul-08 19:26
N a v a n e e t h1-Jul-08 19:26 
AnswerRe: Store Data in Hindi Language Pin
dan!sh 1-Jul-08 19:31
professional dan!sh 1-Jul-08 19:31 
GeneralRe: Store Data in Hindi Language Pin
N a v a n e e t h1-Jul-08 19:35
N a v a n e e t h1-Jul-08 19:35 
GeneralRe: Store Data in Hindi Language Pin
dan!sh 1-Jul-08 19:39
professional dan!sh 1-Jul-08 19:39 
GeneralRe: Store Data in Hindi Language Pin
N a v a n e e t h1-Jul-08 20:20
N a v a n e e t h1-Jul-08 20:20 
GeneralRe: Store Data in Hindi Language Pin
chnikhil2-Jul-08 21:02
chnikhil2-Jul-08 21:02 
QuestionActive Directory Pin
Socheat.Net1-Jul-08 18:05
Socheat.Net1-Jul-08 18:05 
AnswerRe: Active Directory Pin
Abhijit Jana1-Jul-08 19:10
professionalAbhijit Jana1-Jul-08 19:10 
GeneralRe: Active Directory Pin
Socheat.Net1-Jul-08 19:52
Socheat.Net1-Jul-08 19:52 
GeneralRe: Active Directory Pin
Abhijit Jana1-Jul-08 20:42
professionalAbhijit Jana1-Jul-08 20:42 
GeneralRe: Active Directory Pin
Socheat.Net1-Jul-08 22:16
Socheat.Net1-Jul-08 22:16 
QuestionTo avoid post back? Pin
BalasubramanianK1-Jul-08 17:39
BalasubramanianK1-Jul-08 17:39 
AnswerRe: To avoid post back? Pin
Parwej Ahamad1-Jul-08 17:44
professionalParwej Ahamad1-Jul-08 17:44 
GeneralRe: To avoid post back? Pin
BalasubramanianK1-Jul-08 18:00
BalasubramanianK1-Jul-08 18:00 

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.