重用.ASP中的变量 [英] Reusing a variable in .ASP

查看:48
本文介绍了重用.ASP中的变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,嗨大家都是.asp的新手,我正在尝试自我教导。我想知道我到底做错了什么,或者我认为我能做什么,我真的不能。


想法。

--- ----------------


在我们的网站上,我们输入了几段代码,以便在您点击时类别部分和雕刻部分被选中后,它会加载一个包含文件并显示我们的雕刻选项等等。我想,我们可以使用相同的代码,添加一些其他语句,当他们点击关注意识时可以拥有它。那么同样的事情会发生,包括一个不同的包含文件,并显示新的内容。我可能不会很好地措辞我的话,所以很难向你展示代码片段,或许可以启发我做错的事情。


还有其他的dims,但这是我提到的那个。这是变量代码的第一部分。 (我没有对此进行编码,因为它是由一名前员工完成的。)我发布了先完成的工作,然后发布了我认为可以这样做的更改。

First off, Hi everyone new to .asp and am trying to self teach myself. Im trying to figure out what exactly im doing wrong, or maybe what I think I can do, I really cant.

The Idea.
-------------------

On our website, we have several pieces of code we entered in so in the event that when you click on the category section, and "Engraving" was selected, it would load an include file and show our engraving options, etc. Well, I figured, we could use that same code, add some else statements we could have it when they clicked on "About Awareness" then the same thing would happen and include a different include file and have the new content show up. I might not be wording my words very well so ill show you the pieces of code and perhaps enlighten me on what im doing wrong.

There is other dims, but this is the one i am mentioning to the above. This is the first portion of the variable code. (I didnt code this, as it was done by an ex employee.) Im posting what was done first, and then posting what changes i made thinking it would work that way.

展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号

推荐答案

删除if if,

删除第一部分,


将第二个替换为:
remove the "if if",
remove the first portion ,

replace the second one with:
展开 | 选择 | Wrap | 行号



删除if if,

删除第一部分,


用以下代码替换第二个:
remove the "if if",
remove the first portion ,

replace the second one with:
展开 | 选择 | Wrap | 行号



我想知道你所说的if if是什么意思我要删除的第一部分。
I am wondering about what you meant by the "if if" statment and which first portion do I remove.



这是第二个固定的你给的代码摘录,也许只是一个错字。无论如何,原始代码有点傻。说

This was in the second "fixed" code excerpt you gave, maybe just a typo. regardless, the original code was a bit silly. Saying

展开 | 选择 | Wrap | 行号


这篇关于重用.ASP中的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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