页面不断刷新 [英] Page continuously refreshs

查看:62
本文介绍了页面不断刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的一个ASP'很长一段时间都工作正常。现在它已经开始

不断刷新自己。每次我运行它我只得到页面的第一部分

,然后它刷新自己,页面的其余部分没有得到

显示,这就行了持续不断。


主要的sympton是每次填充的选择框获得一个

不同数量的行。

加载的最后一行总是被截断。它几乎像是有些尺寸

限制它遇到的。我不认为选择

盒子有限制。


ASP是index.asp,我有一个表单提交给它本周。


非常感谢任何帮助。


我正在使用WinXP Pro SP2,IIS,Access db。


这里是代码段...


< form method =" GET" action =" index.asp">

< input type =" submit"值= QUOT确定]; style =" width:

<%= Session(" SystemButtonWidth")%> ;;高度:

<%=会话(" SystemButtonheight")%>;">

Q-TAGS SELECTION LIST(红线表示备注)

< br>

< SELECT name =" lbESCI" size =" 7"

style =" font-size:10; color:BLACK; font-family:ARIAL">

<%

Do while not rs1.EOF

if len(rs1(" NOTES"))0则

myOptionText =" class = red"

else

myOptionText ="如果mySearchString<""然后

如果rs1(ESCI)= mySearchString那么

response.write"< option selected" &安培; myOptionText& ">"

else

response.write"< option" &安培; myOptionText& ">"

结束如果

elseif rs1(" ESCI")= left(myQueryString,6)则

响应。写< option selected &安培; myOptionText& ">"

else

response.write"< option" &安培; myOptionText& ">"

结束如果


myOption = rs1(" ESCI")& " | " &安培; rs1(ESCN)

response.write myOption

response.write"< / option>"

rs1.MoveNext

循环

%>

< / select>

< / form>


One of my ASP''s was working fine for a long time. Now it has started
constantly refreshing itself. Everytime I run it I just get the first part
of the page, then it refreshes itself, the rest of the page doesn''t get
displatyed, and this goes on continuously.

The main sympton is that the select box thats being populated gets a
different number of rows loaded into it each time. And the last row that
gets loaded is always truncated. Its almost like theres some size
limitation its encountering. I didn''t think there was a limit on select
boxes.

The ASP is index.asp, and I have a form that submits it to itself.

Any help is greatly appreciated.

I''m using WinXP Pro SP2, IIS, Access db.

Here''s the code segment ...

<form method="GET" action="index.asp">
<input type="submit" value="Ok" style="width:
<%=Session("SystemButtonWidth")%>; height:
<%=Session("SystemButtonheight")%>;">
Q-TAGS SELECTION LIST (red lines indicate notes are attached)
<br>
<SELECT name="lbESCI" size="7"
style="font-size:10;color:BLACK;font-family:ARIAL">
<%
Do While Not rs1.EOF
if len(rs1("NOTES")) 0 then
myOptionText = " class=red "
else
myOptionText = " class=black "
end if

if mySearchString <"" then
if rs1("ESCI") = mySearchString then
response.write "<option selected " & myOptionText & ">"
else
response.write "<option " & myOptionText & ">"
end if
elseif rs1("ESCI") = left(myQueryString,6) then
response.write "<option selected " & myOptionText & ">"
else
response.write "<option " & myOptionText & ">"
end if

myOption = rs1("ESCI") & " | " & rs1("ESCN")
response.write myOption
response.write "</option>"
rs1.MoveNext
Loop
%>
</select>
</form>

推荐答案



这是我刚刚发现的一些新信息。


我改变了一行代码...


myOption = rs1(" ESCI")& " | " &安培; rs1(ESCN)

to

myOption = rs1(" ESCI")& " | " &安培;左(rs1(ESCN),20)


并且它可以在大约10次尝试中导航,然后它又回到了原来的
行为。


当然看起来某种限制被击中了。


Heres some new info I just discovered.

I changed one line of code ...

myOption = rs1("ESCI") & " | " & rs1("ESCN")
to
myOption = rs1("ESCI") & " | " & left(rs1("ESCN"),20)

and it worked for about 10 tries of navigating around, then it went back to
its old behavior.

Sure seems like some kind of limit is being hit.


凝视我的水晶球我观察到的PW < pw *** @ SPAMbigpond.net.au>

写新闻:eX ************** @ TK2MSFTNGP04.phx.gbl:
Gazing into my crystal ball I observed "PW" <pw***@SPAMbigpond.net.au>
writing in news:eX**************@TK2MSFTNGP04.phx.gbl:

>

我的一个ASP已经很好地工作了很长时间。现在它已经开始

不断刷新自己。每次我运行它我只得到页面的第一个

部分,然后它刷新自己,页面的其余部分

不会被置换,这就行了持续不断。


主要的sympton是每次填充的选择框获得一个

不同数量的行。加载的最后一行

总是被截断。它几乎就像它遇到的一些

尺寸限制。我不认为

选择框有限制。
>
One of my ASP''s was working fine for a long time. Now it has started
constantly refreshing itself. Everytime I run it I just get the first
part of the page, then it refreshes itself, the rest of the page
doesn''t get displatyed, and this goes on continuously.

The main sympton is that the select box thats being populated gets a
different number of rows loaded into it each time. And the last row
that gets loaded is always truncated. Its almost like theres some
size limitation its encountering. I didn''t think there was a limit on
select boxes.



视图来源说什么?标记是否有效?很多

次,虽然它是客户端,验证标记会显示一个

服务器端问题。

What does the view source say? Does the markup validate? A lot of
times, although it is client side, validating markup will show me a
server side problem.


>

ASP是index.asp,我有一个表单提交给自己。


非常感谢任何帮助。


我正在使用WinXP Pro SP2,IIS,Access db。


这里是代码段...

< form method =" GET" action =" index.asp">

< input type =" submit"值= QUOT确定]; style =" width:
<%= Session(" SystemButtonWidth")%> ;; height:
<%= Session(" SystemButtonheight")%>;">
>
The ASP is index.asp, and I have a form that submits it to itself.

Any help is greatly appreciated.

I''m using WinXP Pro SP2, IIS, Access db.

Here''s the code segment ...

<form method="GET" action="index.asp">
<input type="submit" value="Ok" style="width:
<%=Session("SystemButtonWidth")%>; height:
<%=Session("SystemButtonheight")%>;">



你是否包括一个单位?它是什么? 10em,10px,10toater?

你最好把它放在外部样式表中,并且

使用< input type =" submit"类= [提交" value =" Ok"然后你可以

定义样式表中的样式。

Are you including a unit with that? What is it? 10em, 10px, 10toaters?
You would be better off putting this in an external stylesheet, and
using <input type="submit" class="submit" value="Ok"then you can
define the styling in the stylesheet.


Q-TAGS SELECTION LIST(红线表示备注附上)

< br>

< SELECT name =" lbESCI" size =" 7"

style =" font-size:10; color:BLACK; font-family:ARIAL">
Q-TAGS SELECTION LIST (red lines indicate notes are attached)
<br>
<SELECT name="lbESCI" size="7"
style="font-size:10;color:BLACK;font-family:ARIAL">



10什么?汽车?烤面包机?再次,你最好将它放在

外部样式表中,例如:

select {font-size:90%;颜色:#000; background-color:transparent}将

使所有选择元素相同。好的嗯?

10 what? cars? toasters? Again, you are better off putting this in an
external stylesheet, eg:
select {font-size:90%; color:#000; background-color: transparent} will
make ALL select elements the same. Nice eh?


<%

请不要rs1.EOF

如果len (rs1(NOTES))0然后

myOptionText =" class = red"

else

myOptionText ="如果mySearchString<""然后

如果rs1(ESCI)= mySearchString那么

response.write"< option selected" &安培; myOptionText& ">"

else

response.write"< option" &安培; myOptionText& ">"

结束如果

elseif rs1(" ESCI")= left(myQueryString,6)则

响应。写< option selected &安培; myOptionText& ">"

else

response.write"< option" &安培; myOptionText& ">"

如果
结束
<%
Do While Not rs1.EOF
if len(rs1("NOTES")) 0 then
myOptionText = " class=red "
else
myOptionText = " class=black "
end if

if mySearchString <"" then
if rs1("ESCI") = mySearchString then
response.write "<option selected " & myOptionText & ">"
else
response.write "<option " & myOptionText & ">"
end if
elseif rs1("ESCI") = left(myQueryString,6) then
response.write "<option selected " & myOptionText & ">"
else
response.write "<option " & myOptionText & ">"
end if



必须引用属性中的字符值,例如。 class =" red"

Character values in attributes must be quoted, eg. class="red"


>

myOption = rs1(" ESCI")& " | " &安培; rs1(ESCN)

response.write myOption

response.write"< / option>"

rs1.MoveNext

循环

%>

< / select>
< / form>
>
myOption = rs1("ESCI") & " | " & rs1("ESCN")
response.write myOption
response.write "</option>"
rs1.MoveNext
Loop
%>
</select>
</form>



你也可以更好地使用getrows()而不是循环遍历

记录集。


你有一个URL吗?看看?


-

Adrienne Boswell在家

Arbpen网站设计服务
http://www.cavalcade-of-coding.info

请回复小组,以便其他人可以分享

You would also do better to use getrows() instead of looping through the
recordset.

Do you have a URL to look at?

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


凝视我的水晶球我观察到PW < pw *** @ SPAMbigpond.net.au>

写新闻:ei ************** @ TK2MSFTNGP03.phx.gbl:
Gazing into my crystal ball I observed "PW" <pw***@SPAMbigpond.net.au>
writing in news:ei**************@TK2MSFTNGP03.phx.gbl:

>

以下是我刚刚发现的一些新信息。


我更改了一行代码。 ..


myOption = rs1(" ESCI")& " | " &安培; rs1(ESCN)

to

myOption = rs1(" ESCI")& " | " &安培;左(rs1(ESCN),20)


并且它可以在大约10次尝试中导航,然后它又回到它的旧b / b
行为。


当然看起来某种限制正在受到打击。
>
Heres some new info I just discovered.

I changed one line of code ...

myOption = rs1("ESCI") & " | " & rs1("ESCN")
to
myOption = rs1("ESCI") & " | " & left(rs1("ESCN"),20)

and it worked for about 10 tries of navigating around, then it went
back to its old behavior.

Sure seems like some kind of limit is being hit.



你有一个展示这种行为的网址吗? ?


-

Adrienne Boswell在家

Arbpen网站设计服务
http://www.cavalcade-of-coding.info

请回应小组,以便其他人分享

Do you have a URL that exhibits this behavior?

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


这篇关于页面不断刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆