Click here to Skip to main content
15,891,905 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Change "File Field's" Button Color Pin
Anonymous18-Mar-04 4:02
Anonymous18-Mar-04 4:02 
GeneralRe: Change "File Field's" Button Color Pin
Paul Watson18-Mar-04 7:58
sitebuilderPaul Watson18-Mar-04 7:58 
GeneralRe: Change "File Field's" Button Color Pin
UB18-Mar-04 18:50
UB18-Mar-04 18:50 
QuestionHow to use that ”?” in a URL? Pin
anderslundsgard17-Mar-04 21:22
anderslundsgard17-Mar-04 21:22 
AnswerRe: How to use that ”?” in a URL? Pin
Ian Darling17-Mar-04 21:38
Ian Darling17-Mar-04 21:38 
GeneralRe: How to use that ”?” in a URL? Pin
anderslundsgard17-Mar-04 21:42
anderslundsgard17-Mar-04 21:42 
GeneralASP project in VS.Net Pin
Aggtaa17-Mar-04 7:13
Aggtaa17-Mar-04 7:13 
GeneralASP hellp !!! Pin
Guidingstar16-Mar-04 23:11
Guidingstar16-Mar-04 23:11 
Cry | :(( PLs help me !! Below is full code of my project.The problem is I got 14pages(I set 1 page 20 recordset.)And User will click on the checkbox and when he submit then I will send two value to other asp page.In the first page,everything ok.user can check the checkbox n click submit.But the problem is user click one checkbox at 1st page then he go to second or third or last page and check other checkbox and click submit ,I can only get the last checkbox value(which means if user check the checkbox at page 3 and click submit ..I can only get the page 3 checkbox vale and lost all other checkox value !) SO,how can I get all the checkbox value that user click and checked all over the pages !Thanks !!

<%
dim intpage
dim set_status
dim i
dim icount
dim sCompany
dim company_name
dim chg_status

set conn = server.createobject("adodb.connection")
conn.connectionstring = session("connect_SID")
conn.open
set rs = Server.CreateObject("ADODB.Recordset")
'set rs2 = Server.CreateObject("ADODB.Recordset")
rs.CursorLocation = 3
inv_state=request.QueryString("inv_sstate")
'sCompany=Request.form("list")
'company_name=Split(sCompany, ",")
'set_status=Request.form("inv_back")

'rs.open "select * from dbo.vw_NoFaxCompanies Order by COM_NAME ",conn

if inv_state="Y" then
'SQLStmt = "select * from dbo.vw_NoFaxCompanies WHERE INV_SSTATE='Y' Order by COM_NAME "
rs.open "select * from vw_NoFaxCompanies WHERE INV_SSTATE='Y' Order by COM_NAME ",conn
'set rs2 = conn.Execute(SQLStmt)
else 'set_status = "N" And sCompany ="" then
'SQLStmt = "select * from dbo.vw_NoFaxCompanies WHERE INV_SSTATE='N' Order by COM_NAME "
rs.open "select * from vw_NoFaxCompanies WHERE INV_SSTATE='N' Order by COM_NAME ",conn
'set rs2 = conn.Execute(SQLStmt)
'elseif sCompany<>"" then
'Do Until k<ubound(company_name)
'for k="0" to="" ubound(company_name)
'if="" set_status="Y" then=""
'chg_status="N"
'else="" chg_status="Y"
'end="" if
'sqlstmt3="UPDATE NoFaxCompanies SET INV_SSTATE='" &chg_status&"'="" where="" inv_cono=""&company_name(k)&"" "
'set="" rs2="conn.Execute(SQLStmt3)
'Response.write" "updated="" '"&chg_status&"'="" from="" inv_sstate=""&set_status&"" "
'if="" x="Ubound(company_name)" response.redirect="" "legalwarningtest.asp?inv_sstate="&set_status&" "=""
'next
'loop

'else
'response.write="" error="" !!"
end="" if=""


rs.pagesize="20
intPageCount" =="" rs.pagecount

if="" (rs.bof="" and="" rs.eof)="" then
="" "invalid.htm"
="" response.end
="" end="" if
if="" intpagecount="" <="rs.PageCount" then
rs.absolutepage="intPageCount
End" if

intpage="Request("intpage")
Select" case="" request("action")
="" "first"
="" intpage="1
" "previous"
="" 1="" "next"
=""> intPageCount then intpage = IntPageCount
Case "Last"
intpage = intPageCount
case else
intpage = 1
end select
%>









function checkAll(field)
{
for (x = 0; x < field.length; x++)
field[x].checked = true ;
}

function uncheckAll(field)
{
for (x = 0; x < field.length; x++)
field[x].checked = false ;
}


function newWindow(file,window) {
msgWindow=open(file,window,'resizable=no,width=750,height=250');
if (msgWindow.opener == null) msgWindow.opener = self;
}




STATEMENT OF ACCOUNT (<%=request.QueryString("inv_sstate")%>)

<%

Response.Write "'"&inv_state&"'"
Response.Write "

"
Response.Write "
"
Response.Write "
"
Response.Write "
"
Response.Write "
"
Response.Write "
"
Response.Write ""
Response.Write ""
%>


<%
'Response.Write ""
rs.AbsolutePage = intpage
i= (intpage * rs.PageSize)-20
For intRecord = 1 To rs.PageSize
i=i+1
%>
<%
rs.MoveNext

If rs.EOF Then Exit For
Next
Response.Write" "
Response.Write" "
Response.Write" "
Response.Write" >"
Response.Write" "
Response.Write"
"
Response.Write" "
Response.Write"
"
Response.Write "
SERIAL NO"
Response.Write "
COMPANY NO"
Response.Write "
COMPANY NAME"
Response.Write "
"
Response.Write "
<%=i%>" > <%=i%><%=rs("INV_CONO")%><%=rs("COM_NAME")%><%=rs("INV_SSTATE")%>
"


rs.close
set rs = nothing
'rs2.close
'set rs2 = nothing
conn.close
set conn = nothing
%>










Page: <%=intpage & " of " & intpagecount%>




GeneralRe: ASP hellp !!! Pin
Sarvesvara (BVKS) Dasa17-Mar-04 17:50
Sarvesvara (BVKS) Dasa17-Mar-04 17:50 
GeneralRe: ASP hellp !!! Pin
henningbenk17-Mar-04 23:43
professionalhenningbenk17-Mar-04 23:43 
GeneralCapture mouse in HTML Pin
Member 61706716-Mar-04 12:49
Member 61706716-Mar-04 12:49 
GeneralRe: Capture mouse in HTML Pin
l a u r e n16-Mar-04 15:56
l a u r e n16-Mar-04 15:56 
GeneralRe: Capture mouse in HTML Pin
Sarvesvara (BVKS) Dasa16-Mar-04 18:46
Sarvesvara (BVKS) Dasa16-Mar-04 18:46 
GeneralRe: Capture mouse in HTML Pin
alex.barylski17-Mar-04 10:56
alex.barylski17-Mar-04 10:56 
GeneralZ-index for combo box Pin
Member 61706716-Mar-04 12:46
Member 61706716-Mar-04 12:46 
GeneralRe: Z-index for combo box Pin
l a u r e n16-Mar-04 15:57
l a u r e n16-Mar-04 15:57 
GeneralRe: Z-index for combo box Pin
Member 61706719-Mar-04 12:41
Member 61706719-Mar-04 12:41 
Questionhow to control IE auto fill options from java script Pin
harinath16-Mar-04 3:26
professionalharinath16-Mar-04 3:26 
AnswerRe: how to control IE auto fill options from java script Pin
hxxbin16-Mar-04 4:48
hxxbin16-Mar-04 4:48 
GeneralRe: how to control IE auto fill options from java script Pin
harinath16-Mar-04 6:45
professionalharinath16-Mar-04 6:45 
GeneralCreate internet shortcut on desktop Pin
Migration15-Mar-04 22:18
Migration15-Mar-04 22:18 
GeneralRe: Create internet shortcut on desktop Pin
alex.barylski15-Mar-04 22:31
alex.barylski15-Mar-04 22:31 
GeneralRe: Create internet shortcut on desktop Pin
hxxbin16-Mar-04 4:52
hxxbin16-Mar-04 4:52 
GeneralRe: Create internet shortcut on desktop Pin
alex.barylski16-Mar-04 9:18
alex.barylski16-Mar-04 9:18 
GeneralRe: Create internet shortcut on desktop Pin
Ian Darling16-Mar-04 13:34
Ian Darling16-Mar-04 13:34 

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.