473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Server.HtmlEncode DataBinder

Can anyone help with Server.HtmlEncode encoding this?

'<%# DataBinder.Eval(Container.DataItem, "CAT_ID",
"pageview.aspx?tab=1&catid={0}") %>

I've tried using similar to this:
<%# Server.HtmlEncode(DataBinder.Eval(Container,
"DataItem.Field1").ToString()) %>

but get error message BC30455: Argument not specified for parameter '

Many thanks

May 20 '06 #1
4 4942
'<%#"/admin/managenews.aspx?action=2&id="+DataBinder.Eval(Cont ainer.DataItem,"NID")%>'
this may help u
"Fossie" <gi*****@ihug.co.nz> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
Can anyone help with Server.HtmlEncode encoding this?

'<%# DataBinder.Eval(Container.DataItem, "CAT_ID",
"pageview.aspx?tab=1&catid={0}") %>

I've tried using similar to this:
<%# Server.HtmlEncode(DataBinder.Eval(Container,
"DataItem.Field1").ToString()) %>

but get error message BC30455: Argument not specified for parameter '

Many thanks

May 20 '06 #2
Thanks - I tried the + and got this error message:

Conversion from string "pageview.aspx?tab=1&catid=1" to type 'Double'
is not valid.

May 20 '06 #3
'<%#"/pageview.aspx?tab=1&catid="+DataBinder.Eval(Contai ner.DataItem,"CAT_ID")%>'
"Fossie" <gi*****@ihug.co.nz> wrote in message
news:11*********************@j73g2000cwa.googlegro ups.com...
Thanks - I tried the + and got this error message:

Conversion from string "pageview.aspx?tab=1&catid=1" to type 'Double'
is not valid.

May 20 '06 #4
<asp:HyperLink id="hyperlinkk1" Runat="server"
NavigateUrl='<%#"/pageview.aspx?tab=1&catid="+DataBinder.Eval(Contai ner.DataItem,"CAT_ID")%>'</asp:HyperLink>
"Fossie" <gi*****@ihug.co.nz> wrote in message
news:11*********************@j73g2000cwa.googlegro ups.com...
Thanks - I tried the + and got this error message:

Conversion from string "pageview.aspx?tab=1&catid=1" to type 'Double'
is not valid.

May 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: abcd | last post by:
Simple but not working at this moment I have to fill the HTML select control.... my values could be for example "test number 1" sample code, dim x Data = "test ...
3
by: seeni | last post by:
I have tried retrieving the image data from NorthWind database and print in the asp page using Repeater control. But instead of showing picture, the browser is showing "System.Byte" My code is...
4
by: Andrea Williams | last post by:
I have a class that imports System.Web.UI.Page. The code below works: public string JScriptEncode(string strValue) { strValue = strValue.Replace(@"'", "\x27"); //' JScript encode...
3
by: Michael Gaillez | last post by:
Hi, I'm dynamically loading an assembly into an ASP.NET application. In the control that I load from that dynamic assembly I've tried to use Server.HTMLEncode but this results in a serious...
3
by: Mark Rae | last post by:
Hi, The following is lifted straight from the MSDN help topic for HttpServerUtility.HtmlEncode Method --------------------------------------------------------------- The following example...
3
by: | last post by:
I have been researching articles on google on how to create a simple RSS feed that sucks <title><blurb><link><date> out of a sql server 2000 database via an aspx page. I know it has to be pushed...
3
by: TCB | last post by:
Hi, There are a couple of things that are bothering me, any help on these is greatly appreciated. This is using ASP.NET 2.0 1. I am sending email in my web app, using a simple form here is the...
1
by: Marco Miltenburg | last post by:
While working on some multilingual code I found a rather strange thing happening with Server.HTMLEncode. While loading different languages I change the Codepage and Charset in ASP to reflect the...
6
by: teddysnips | last post by:
In my application I need to allow users to cut 'n' paste stuff from various sources, some of which might include dodgy characters such as "<". Natch, IE interprets these as potentially dangerous...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.