User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,413 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,742 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 296 | Replies: 1 | Solved
Reply
Join Date: May 2008
Posts: 15
Reputation: menelaussa is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
menelaussa menelaussa is offline Offline
Newbie Poster

How to wite an if in asp

  #1  
Jun 2nd, 2008
Can some one help me to write this in asp? Is it possible?

  1. <asp:TemplateField HeaderText="Release">
  2. <ItemTemplate>
  3. <%# DataBinder.Eval(Container.DataItem, "Release" )%>
  4. </ItemTemplate>
  5. <EditItemTemplate>
  6. <asp:TextBox runat="server" id="txtRelease"
  7. Text= '<%# if (bdirty) then DataBinder.Eval(Container.DataItem, "Release" )
  8. else GetDefaultRelease()%>'/>
  9. </EditItemTemplate>
Last edited by peter_budo : Jun 4th, 2008 at 3:36 am. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 15
Reputation: menelaussa is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
menelaussa menelaussa is offline Offline
Newbie Poster

Re: How to wite an if in asp

  #2  
Jun 2nd, 2008
Text=' <%# bdirty? GetDefaultMaxStay(): DataBinder.Eval(Container.DataItem, "MaxStay" ) %>'
Last edited by peter_budo : Jun 4th, 2008 at 3:37 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 1:41 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC