Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2008, 01:29 AM
Authorized User
 
Join Date: Jul 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav gupta
Default how to apply condition at session value

actually i am taking value from one page to other page using sessions .
but i want at secont page that if the value of session["s1"] ==2 to webcontrol should be generate two times.and it ==3 then usercontrols should be generate 3 times .so i have to apply condition :
if(session["s1"]==1)
{
}
if(1<session["s1"]<=2)<b>(error)</b>
{
}
<b>now i get error:
    Operator '|' cannot be applied to operands of type 'bool' and 'int'</b>
what should i do.
thanks







Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Apply Template vvenk XSLT 7 July 10th, 2008 12:21 PM
apply if condition at session gaurav gupta ASP.NET 2.0 Basics 0 July 9th, 2008 01:58 AM
CANNOT APPLY INDEXING WITH [] pallone .NET Framework 2.0 7 April 8th, 2008 06:40 AM
Apply changes to more than one file bcogney XML 11 March 6th, 2007 07:02 PM
Templates Won't Apply neilac333 XSLT 5 October 26th, 2006 01:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.