can some one implement this coding

manju

New Member
Messages
1
Reaction score
0
Points
0
can any one solve this problem I have problem in this coding can some suggest me about this

try
{

AdminContent admcnt = AdminContent.GetContents(8);

//StrContactUS = admcnt.PageText;
tdText.InnerHtml = Server.HtmlDecode(admcnt.PageText);
}
catch (Exception ex)
{
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
looks like javascript? I can't tell if you've got your brackets turned around or if you'r just missing a bracket, but you've only got 3 there and there should always be an even number of brackets in your code.
 

polpoly

New Member
Messages
9
Reaction score
0
Points
0
ya please enlighten a bit further... language... what error message you actually get?
and i'll assume you've just left out the rest of the code for the catch statement.
 

ejweb

New Member
Messages
64
Reaction score
0
Points
0
It also looks like "ASP" when using the "Server..." method.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
your close. ;)

It's Java.

Never coded exceptions into any of my programs, never needed them. Clean coding does that to you. :)
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
ok. I know nothing about java, so I guess I'm out. :biggrin:
 

lair360

New Member
Messages
200
Reaction score
0
Points
0
can any one solve this problem I have problem in this coding can some suggest me about this

try
{

AdminContent admcnt = AdminContent.GetContents(8);

//StrContactUS = admcnt.PageText;
tdText.InnerHtml = Server.HtmlDecode(admcnt.PageText);
}
catch (Exception ex)
{

Hi, there is one problem...

This might solve it and I think you're missing a bracket!
-------------------------

Code:
try {
 
AdminContent admcnt = AdminContent.GetContents(8);
 
//StrContactUS = admcnt.PageText;
tdText.InnerHtml = Server.HtmlDecode(admcnt.PageText);
}
catch (Exception ex) {
}
 

tittat

Active Member
Messages
2,478
Reaction score
1
Points
38
*****Thread Moved to Programming Help*****
 

polpoly

New Member
Messages
9
Reaction score
0
Points
0
lair, did u actually change anything in the code, other than adding a bracket?
i really don't think the problem is the missing bracket.
if it is the problem... sigh.
 
Top