Ask It!
Home > Ask It! > Trade > Laws & Policies

[How does ASP] do a many to choose the td form of one with If Else statement? _3G uses an issue

Use occasionally! - - #includefile= " Head2.inc "- - ! - - #includefile= " Body2.inc "- - ! - - #includefile= " Foot2.inc "- - the Asp webpage that did a piece to be able to show much page, but like discovering color Red and Green can be chosen only, but should accomplish each page to show different color occasionally, how should be that done? Used Ifelse here but gave some of issue, the page of different color shows in same piece on the webpage. . . It is OK to have a method each page can show limit only a kind of color, but can different page show different color respectively again? Response.Write(" tr " ) Response.Write(" Ifpagename= " 04 " Then " ) Response.Write(" tdcolspan= " 6 " Class= " Red " Align= " Center " Width= " 1300 " Height= " 500 " " ) Response.Write(" Else " ) Response.Write(" Ifpagename= " 03 " Then " ) )

Posted on 2013-05-31 00:30:45

All Answers


Response.Write (" tr " ) If Pagename= " 04 " ThenResponse.Write (" td Colspan= " 6 " Class= " Red " Align= " Center " Width= " 1300 " Height= " 500 " " ) Else If Pagename= " 03 " ThenResponse.Write (" td Colspan= " 6 " Class= " Green " Align= " Center " Width= )

2013-05-31 00:30:45
<<Previous
1
Next>>