substrating(0, 4) and substrating(0, 3) run but (0,5) or (0,17) doesnt run.. length is 27.. what can problem be ?

hi 

substrating(0, 4) and substrating(0, 3) run but (0,5) or (0,17) doesnt run.. length is 27.. what can problem be ? (my min record length is 4)

my code is below and substrating have underline... error msg releated to lenght when it doesnt run

<asp:hyperlink id="HyperLink1" runat="server" Width="120px" Text='<%# IIF(Eval("ilanbasligi").ToString().Trim().Length< 19, Eval("ilanbasligi").ToString().Substring(0,Eval("ilanbasligi").ToString().Trim().Length), Eval("ilanbasligi").ToString().Substring(0,4)) %> ' navigateurl='<%# DataBinder.Eval(Container.DataItem,"resimpath",Request.ApplicationPath+"/detayliurun.aspx?PID={0}") %>'></asp:hyperlink>

cheers


Mark as me if my question or my answer can be helpful for you :)
0
oguzkaygun
6/26/2008 4:54:25 PM
asp.net.presentation-controls 72751 articles. 3 followers. Follow

4 Replies
772 Views

Similar Articles

[PageSpeed] 56

Substring(0,5)) or Substring(0,17)) will generate run time error for length 4 records.


Limno

0
limno
6/26/2008 6:51:35 PM

hi thank you for your reply:) 

yes i saw it..

but there is IIF.. why it read code that has Substrring (0,5) or Substring (0,17) ??

and what should i do display just 100 px this coulumname ? i tried to panel label and i put widht=100 px everyhere

but when lenght is so long, coulunmaname display so long than 100px.. it seems 140 px or 250 px etc...


Mark as me if my question or my answer can be helpful for you :)
0
oguzkaygun
6/26/2008 7:00:53 PM

Try this syntax to check NULL value:

<asp:Label ID="Label1" runat="server" Text='<%#IIF(CONVERT.ToString(Eval("col1"))="", "",Eval("col1").ToString().Substring(0,Math.Min(5,Eval("col1").ToString().Length))) %>'></asp:Label>


Limno

0
limno
6/26/2008 7:29:27 PM

hi thank you for your reply

but i want to two line

first line is 20 characther

second line is 20 character

what should i do ?

 


Mark as me if my question or my answer can be helpful for you :)
0
oguzkaygun
6/26/2008 7:42:41 PM
Reply:

Similar Artilces:

Running PB 3.0, 4.0, 5.0 and 6.0 on same PC
I am attempting to run PowerBuilder 3, 4, 5 (both 16 and 32 bit), and 6 on the same PC. I know that sounds crazy but all of those releases are still in use at my company. The only problem I am having is I can't get 6.0 to use its own pb.ini file. I am running NT 4.0 and have made the following entries in my WIN.INI in the [Powerbuilder] section: INITPATH=c:\...... statement for PB3, INITPATH040 for PB4, INITPATH050 for PB5, and INITPATH060 for PB6. This method works for PB3, 4, and 5 but not 6. PB6 seems to be using the INITPATH statement but ignores the INITPATH060 statement. M...

0.0.0.0
Can someone tell me the function of this scan? FWIN,2001/08/28,20:06:43 -6:00 GMT,0.0.0.0:800,255.255.255.255:800,UDP "Ben" <notben@home.com> wrote in message news:9mhion$2hf9$1@news.grc.com... > Can someone tell me the function of this scan? > FWIN,2001/08/28,20:06:43 -6:00 GMT,0.0.0.0:800,255.255.255.255:800,UDP Ben, I haven't a clue. 800 TCP mdbs_daemon 800 UDP mdbs_daemon http://www.robertgraham.com/pubs/firewall-seen.html http://www.robertgraham.com/pubs/firewall-seen.html#3.6 http://www.robertgraham.com/pubs/firewall-seen.html#3.2 -- ...

0.0.0.0 ????
Obviously a local IP, but what are its functions/purpose? Thanks for educating the uneducated. In article <MPG.18bf7ade16e851cb989680@news.grc.com>, shr@p.com says... > > > Obviously a local IP, but what are its functions/purpose? > > Thanks for educating the uneducated. > Any available adapter - i.e. not bound to specific IP address. -- Bloated Elvis In article <MPG.18bf7ade16e851cb989680@news.grc.com>, shr@p.com says... > > > Obviously a local IP, but what are its functions/purpose? > > Thanks for educating the une...

!27.0.0.1 vs. 0.0.0.0
I can use any number of tools to see what ports I have listening and/or connected. But among the *Listening* ports, some are 127.0.0.1 and some are 0.0.0.0. What is the difference between 127.0.0.1 and 0.0.0.0 ? Since I've got both - there MUST be a difference. Thanks, Alan 0.0.0.0 stands for all interfaces (example: yourIPaddress,127.0.0.1-127.254.254.254) 127.0.0.1 stands for local interface only (127.0.0.1) > 0.0.0.0 stands for all interfaces > (example: yourIPaddress,127.0.0.1-127.254.254.254) > > 127.0.0.1 stands for local interface only (127....

1.5.0.0.3 vs 1.5.0.0.4
I have had numerous difficulties with FF 1.5.0.0.4, in particular, some sites often just hang when I click on links. A particularly bad site is Dell http://www.dell.com/, which - when I try to configure a computer - gets all kinds of "waiting for dell" status bar messages. I tried it with a clean profile, to no avail. It works flawlessly with IE. I downloaded fresh copies of 1.5.0.3 and 1.5.0.4 with the intent of uninstalling the latter and then trying the former. *The uninstall process hung*. So I installed 1.5.0.3 on top of 1.5.0.4. The Dell site now works fl...

63.0.0.0.0/255..0.0.0
Has anyone ever heard of this or know where it goes to.It was asking permission to act as a server? Thanks in advance for any help. "pb" <nothing@nomail.com> wrote in message news:9pa1u4$38b$1@news.grc.com... > Has anyone ever heard of this or know where it goes to.It was asking > permission to act as a server? Thanks in advance for any help. If it shows in your firewall log, can you post a copy of it? -- � -- Robert grc.com forum FAQ - http://grc.com/discussions.htm grc.com forum quick reference - http://grc.com/nntpquickref.htm grc.com forum disclaim...

[ 0.0.3465.0 ] and a problem with /run
Gang... I've just posted a new release that fixes a few more loose ends. I discovered a problem with the new "too patient" scheme that waits for *all* characterization to compete before proceeding. The trouble is, DNSB is extremely patient and insistent about trying to get a reply from a dead (red color) nameserver, trying to flip it into use. In /auto mode, this is probably what we want. But in /run mode we're currently waiting a LONG time before the benchmark starts automatically. I have enabled the "Run Benchmark" button in this release w...

Sending proxy ID type 4 0.0.0.0/0.0.0.0 --How can I populate these BM3.8
I have narrowed a previous issue to this problem. My IPsec compliant firewall (PIX) expects these to have values (I'm assuming that they should contain the IP and subnets of the BM38 server and the other firewall) populated. The IKE screen on the BM3.8 server reports "Sending proxy ID type 4 0.0.0.0/0.0.0.0". The PIX reports "testpix(config)# IPSEC(validate_proposal_request): proposal part #1, (key eng. msg.) dest= 192.168.1.1, src= 192.168.1.2, dest_proxy= 0.0.0.0/0.0.0.0/0/0 (type=4), src_proxy= 0.0.0.0/0.0.0.0/0/0 (type=4), protocol= ESP, t...

How to change .Net framework from Version=3.5.0.0 back to Version=2.0.0.0 ?
Hello, Can anyone tell me how to change .Net framework from Version=3.5.0.0 back to Version=2.0.0.0 ? I have 2 different versions of Visual Studio: VS2005 and VS2008. One is running in .NET framework 2.0.0.0 and the other one is running in framework version 3.5.0.0.  When run the web application that is in framework Version 2.0.0.0 in VS2005, I get the error below.  In the web.config of the project, there is no 'System.Core....' assembly listed in the Assemblies section and all other system assemblies are in framework version 2.0.0.0. Also I checked the Mic...

upgrade problem 12.0.0.4 to 12.5.0.3
I have the following problem during upgrade, when I load the DB dump from 12.0.0.4 to 12.5.0.3, the following problem occurs and the isql session is quit Object 'FinCorpFwdPnL' in database 'Kustom' is owned by login '' who does not exist in this server. Object 'FinCorpFxsPnL' in database 'Kustom' is owned by login '' who does not exist in this server. Object 'SP_ImportSpotQuotes' in database 'Kustom' is owned by login '' who does not exist in this server. Object 'SP_SalesCaptCtrl' in database 'Kustom...

Firefox 2.0.0.3
hi; my site is http://www.nedir.net. it's frame based. any user login to this site and server create a session. user click any subject from left frame and show content to main frame, session ok! but users when jump to other page (1-2-3 .. ) at content page, session cannot load. this problem for only some firefox users, not ie, opera etc.. math wrote: > hi; > my site is http://www.nedir.net. it's frame based. any user login to > this site and server create a session. user click any subject from > left frame and show content to main frame, session ok! but users w...

Application created in new version of .NET (3.0 or 3.5) can use the library created in older version of .NET(i.e.-1.0 or 2.0)?
Hi All, I am using Visual Studio .NET compiler for compiling my application . We have plugins (as library) which the user can write by their own in .NET . We are building our code in Visual Studio 2005 but we have already some plug-ins which are written in previous versions of Visual Studio (i.e. 2002 and 2003). Is these plug-ins will work with the new build of the application or I need to build these plug-ins as well in Visual Studio .NET 2005. These plugins are created as library. Is their any differences between .NET 1.0, 2.0 and 3.0 because of which the old libraries (created in o...

New versions after 1.5.0.12 2.0.0.3 and 2.0.0.4 do not work properly
Name: Jelle van Buuren Email: jelleatvan-buurendotnet Product: Firefox Summary: New versions after 1.5.0.12 2.0.0.3 and 2.0.0.4 do not work properly Comments: Helleo, I'm sorry to say I am not a webdeveloper expert at all, just a loyal and up till now satisfied daily user. I got lost in your official bug-reports-system, so had to do it this way. I don't even know if my problem can be called a bug, but please take a look to f.i. www.nbrecords.com or www.ns.nl through the new browser FF 2.0 etc. and then do so through FF 1.5.0.12 or IExplorer and you will notice immedi...

IP Address 0.0.0.0.0
Some Agent which crosses proxy (MS ISA proxy) are register to the database with 0.0.0.0. When the agent send a request to the server for register, the field ContactAddress has 0.0.0.0 .0 The same PC - Agent without passing a proxy (another location) send a good ContactAdress IP when it register to the server. (Proxy or not) how agent defined addresses IP before to send for registration ? (Locally, with a service network, patchlink network) christian Astinx, can you post the agent update log? -- Shaun Pond PatchLink Update Agent.log 2006/10/23 10:45:14.033...

Web resources about - substrating(0, 4) and substrating(0, 3) run but (0,5) or (0,17) doesnt run.. length is 27.. what can problem be ? - asp.net.presentation-controls

Resources last updated: 1/15/2016 11:40:35 AM