|
I'd say there is an unexpected token, which is 'NAME'. I'm not sure what else you'd like us to tell you. You haven't posted code or anything, so you can't want to know how to fix the error ?
Have you looked at the XML that causes this error ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Anand,
the line numbers mentioned in the error message might not be exact, but check if there are elements in the xml file having multiple attributes but without space between each attribute & value pair i.e. some spacing error.
|
|
|
|
|
Thanks Christian & Rajeesh,
Thanks for answering. Part of my xml is like this:
<termsAndConditions>Can not be sold to or used by residents of Europe, the Russian Federation and Turkey.<br />
Travel on the national rail networks of 20 European countries (Austria, Belgium, Croatia, Denmark, Finland, France, Germany, Greece, Hungary, Italy, Luxembourg, the Netherlands, Norway, Portugal, Republic of Ireland, Romania, Slovenia, Spain, Sweden and Switzerland).<br />
<br />
VALIDITIES<br />
Eurail Global Pass available for 15 days, 21 days, 1 month, 2 months or 3 months of consecutive travel.<br />
Flexipass available for 10 or 15 daysof travel in a 2 month period.<br />
<br />
AGE / SAVER DISCOUNT<br />
Saver pass available for 2 or more passengers travelling together.<br />
Youth discount: for passengers under 26 (available in 2nd Class only)<br />
Children 4-11: half-adult fare<br />
Children under 4: free (except ifa reservation for a separate seat/bed is required).<br />
<br />
OTHER RULES<br />
7:00 p.m. rule applies<br />
Free map and timetable must be delivered to customer with purchase<br />
Pass must be validated within 6 months of issue.<br />
<br />
REFUND POLICY<br />
A 15% cancellation penalty appliesto completely unused and unvalidated passes returned within 1 year of issue date.<br />
Partially used, lost or stolen passes are non-refundable except as covered by the Rail Protection Plan (for North America only).<br />
Please refer to general conditions of use for more information</termsAndConditions><br />
<countriesCovered><br />
<country><br />
<name>AUSTRIA</name><br />
<code>AT</code><br />
</country><br />
<country><br />
<name>SPAIN</name><br />
<code>ES</code><br />
</country><br />
<country><br />
<name>SWEDEN</name><br />
<code>SE</code><br />
</country><br />
<country><br />
<name>SWITZERLAND</name><br />
<code>CH</code><br />
</country><br />
<country><br />
<name>BELGIUM</name><br />
<code>BE</code><br />
</country><br />
<country><br />
<name>LUXEMBOURG</name><br />
<code>LU</code><br />
</country><br />
<country><br />
<name>NETHERLANDS</name><br />
<code>NL</code><br />
</country><br />
<country><br />
<name>REPUBLIC OF IRELAND</name><br />
</country><br />
<country><br />
<name>ROMANIA</name><br />
<code>RO</code><br />
</country><br />
<country><br />
<name>DENMARK</name><br />
<code>DK</code><br />
</country><br />
<country><br />
<name>FINLAND</name><br />
<code>FI</code><br />
</country><br />
<country><br />
<name>FRANCE</name><br />
<code>FR</code><br />
</country><br />
<country><br />
<name>GERMANY</name><br />
<code>DE</code><br />
</country><br />
<country><br />
<name>GREECE</name><br />
<code>GR</code><br />
</country><br />
<country><br />
<name>HUNGARY</name><br />
<code>HU</code><br />
</country><br />
<country><br />
<name>ITALY</name><br />
<code>IT</code><br />
</country><br />
<country><br />
<name>NORWAY</name><br />
<code>NO</code><br />
</country><br />
<country><br />
<name>PORTUGAL</name><br />
<code>PT</code><br />
</country><br />
</countriesCovered>
I think this "terms and conditions" have some fishy '\n's and '\r's.
What u suggess??
Anand
|
|
|
|
|
To,
Christian, Rajeesh and all,
Regarding to the current thread, I am currently working on this problem and found 1 intresting point.
The point is I am getting this error only when my code is uploaded on the server. The same code, I have uploaded, is working smoothly on my local IIS.
I think this is related to seme XML version problem?????? please help me.
Thanks.
Anand
|
|
|
|
|
hi,
i am using this code in my asp.net with c# code behind..
Page.RegisterStartupScript("as", " alert('Your Profile Was Updated')");
while running this aspx.page i am getting Meaasage with Exclamation symbol..
what i need is i dont want the Exclamation symbol in my popup message box.. tell me the answer...
regards,
vidhya.s
|
|
|
|
|
Thats why it is called alert. It is going to show Exclamation symbol.
I don't think you can change that symbol it is inbuild.
Whats the problem in exclamation mark ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
The alert is not configurable, like the message box in client apps. These popups are nasty, it's generated by a postback, why not set a label on the page ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi all
I want create Key for my web. everyone computer only one key.
|
|
|
|
|
You want to create a license key for the server, or for every user of your web site ? If the latter, you can't, a web app can't find out stuff like the processor Id.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am trying to build a Web Service proxy using WSDL. When running WSDL from the command line I receive the following error:
There was an error downloading 'http://localhost:61968/WebSite1/Service.asmx?WSDL
Unable to connect to the remote server
Note: I am running Windows Server 2003.
Please help.
Thanks!
|
|
|
|
|
These are the messages I am receiving from the command prompt:
C:\Temp\WebService>WSDL http://localhost:3236/WebService/Service.asmx?WSDL
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: There was an error processing 'http://localhost:3236/WebService/Service.a
smx?WSDL'.
- There was an error downloading 'http://localhost:3236/WebService/Service.asm
x?WSDL'.
- Unable to connect to the remote server
- No connection could be made because the target machine actively refused it 1
27.0.0.1:3236
Thanks,
|
|
|
|
|
I am handing a GridView fully in client-side(am using callbacks to avoid page refresh). that is, i am having a certain No. of records in a GridView each bound with a check box, and while checking each of the checkboxes, i am doing some operation internally.
When press F5 or refresh the page, the selected records are cleared.
(To avoid this problem, i used ViewState to maintain the each record's status. But was helpless. But Session did well.)
The concern is, i shouldn't use any Session Variables, and even after F5 the records must be without modifications.
Or else, is it possible to avoid such page refreshing?
Thanks in advance.
Muthu.G
|
|
|
|
|
I think we should not capture any browser events except for the worst case.
Your application is behaving as it should,User clicks refresh button/F5 to get last/latest/reset content.
I don't understand why you want to restrict user not to click F5. If any data is getting lost then it totally beacuse of user unknowingness.
Any way take a look at this article, Not so easy to avoid page refresh
http://msdn2.microsoft.com/en-us/library/ms379557(VS.80).aspx#bedrockas_topic2[^]
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for the article sandeep.
The reason why i wanted to avoid is, i am selecting a No of records from a gridview that is in my page, where i use callback mechanism, to avoid page postback. The thing is, i don't render gridview to client side.
So, obviously when F5 is pressed, the checked values will be lost..!!
Muthu.G
|
|
|
|
|
Hello Friends,
I have a problem in redirect a page.i m using C#.net 2005 .i hv a dropdown list which is bind data from database Like State when i m selecting an item in dropdownlist then the corrospondin District should be come in the second dropdownlist. butit never comes.. there is a problem comes"The specified URL can not be found" I m writing the code below for beter understand.
I m also set the Autopostback property =true in dropdownlist.
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
con.Open();
SqlCommand com = new SqlCommand("select State from StateInfo order by StateName asc", con);
dr = com.ExecuteReader();
while (dr.Read() == true)
{
drp_regionname.Items.Add(dr[0].ToString());
}
dr.Close();
}
}
protected void drp_regionname_SelectedIndexChanged(object sender, EventArgs e)
{
string RegionName = drp_regionname.SelectedValue.ToString();
SqlCommand com1 = new SqlCommand("select district from DistrictInfo where StateName ='" + RegionName + "'", con);
con.Open();
dr = com1.ExecuteReader();
while (dr.Read())
{
drp_unitname.Items.Add(dr[0].ToString());
}
dr.Close();
con.Close();
}
This code is running fine in local server but not running in Remote server..
Plz help me.......
Thanks ...
|
|
|
|
|
Could explain where is the problem ?
Where are you redirecting to another page ?
drp_unitname drop down list is not getting populated with items ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
from ur code it seems u r not redirecting ur page anywhere. the same page is posted back.
As far as the URL not found error , check the "REDIRECT" code u have written and see whether the target page u r specifying exists in ur website. could u post the conn string info as well as the redirect section of ur code.
Regards,
Rajeesh
Did u know-Maths Illiteracy affects 9 out of 7 people
|
|
|
|
|
Your code is filling drop down from database on PageLoad, if region name selection changes, it inserts additional data from the db (not clearing previous data from the drop down!, is it what you want?)
I don't see any redirection at all!
However, few tips:
1. in sqlcommand, always use Parameters instead of concatenated strings as a query, to prevent sql injection (security flaw):
SqlCommand com1 = new SqlCommand("select district from DistrictInfo where StateName = @RegionName", con);
com1.Parameters.Add(new SqlParameter("@RegionName", RegionName));
2. be sure you are closing connection to database when you don't need it anymore
3. use 'using' clause when possible, to ensure your IDisposible objects are going to be disposed in all cases (no need to call dr.Close(), as it is going to be called in Dispose() method:
using (dr = com1.ExecuteReader())
{
while (dr.Read())
{
drp_unitname.Items.Add(dr[0].ToString());
}
}
4. use exception handling, try {...} catch {...} blocks, at least in event handlers
|
|
|
|
|
Hi masters!
I've a table in Access that has 4 columns.
How can I add records to it without having to bind any control(s) (Text Box, Dropdown List, ...).
|
|
|
|
|
|
I am using a gridview where I have a lable bound column to keep unique ids. During DataRowBound event i hide the label column.
int labelColumn = 0;
e.Row.Cells[labelColumn].Visible = false;
I keep the above code snippet in DataRowBound of GridView1.
When try to use the label column value at client side, I am Unable to access the value. If i don't hide the column I am able to access label value.
Now i want to hide the label Column. How could i do?
I even tried by making the lable column width as 0px.
Thanks in advance.
Muthu.G
|
|
|
|
|
pretty simple solution dear
use direct <%# Eval("columnname") % > as argument in javascript function or wherever you need to call the value of that label..... do not use any label or column in specific
cheers !
Ashish Sehajpal
|
|
|
|
|
Thanks for the reply dear.
i thing u mean to say, in DataBinding of label (that's in design mode),
for label just use Eval("columnname").
But will that solve the problem of hiding the label field at run time?
Plz be brief in ur ans.
Also how to use it as an arg of js function?
Muthu.G
|
|
|
|
|
using an HTML control is not the solution as per architecture...if there are 1000 records, there will be 1000 html control and every time you will be finding that control via javascript....
passing argument to javascript is very easy
onclick='functionname(<%# Eval("arg1")%>,<%# Eval("arg2")%> ) ;'
you can use any event i.e. onchange , onblur , ondoubleclick etc.....
it will outperform in terms of performance
Ashish Sehajpal
|
|
|
|
|
Thanks Ashish. got it...
Muthu.G
|
|
|
|