|
Put the XML in an XMLDocument and set the property that makes the output formatted ( forget what it is ). Then I think there's a server control to display XML. If there isn't, use a literal and HTML encode the XML string first.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
That was very non-specific and not helpful at all. 1)I do not know how to do the first thing (that was my question - how to output to a xml file and 2)there is no xml server control that I know of and 3)I don't know how to do the third thing.
|
|
|
|
|
hi friends,
I want to give the details for custom control in asp.net 2.0.
example :
Am using repeater control and link button,and then stored in 100 records(address),and paging and sorting process is doing there.
Note ;
I want coding for custom control in depending upon the example in asp.net 2.0 with c#.
with regards,
Thirumurugan.D
|
|
|
|
|
Murugan.nett wrote: I want coding
I want, doesn't get. Didn't your mother teach you this?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i don't understand your answer.give me the way for custom control using repeater and link button.
|
|
|
|
|
Murugan.nett wrote: i don't understand your answer.
I was being sarcastic. It isn't polite to demand code, especially when it appears you have made no attempt to solve the problem yourself.
Murugan.nett wrote: give me the way for custom control using repeater and link button.
How much progress have you made through your own efforts? The obvious thing to do is to add the controls you want to repeat to the Item Template for your Repeater control. There are plenty of examples of how to use the Repeater control on the web - search for them.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I receive the following error when I try to open a .aspx file that I have created in Visual Studio 2005:
XML Parsing Error: not well-formed
Location: file:///G:/Kristian/ASP/WebSite2/Default.aspx
Line Number 1, Column 2:<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-^
Why is that? I can open sites on the internet that are .aspx!!!
I have tried to unistall .NET framework 2.0 and then installed IIS 6.0. I have then once again installed .NET framework 2.0. I have also run aspnet_regiis.exe.
Nothing helps. Any ideas of how to solve this???
Thanks!
/K
|
|
|
|
|
Is the project in ur wwwroot folder? If so, go to manage my computer and internet infomation severes, web sites. Find your website's folder and right click on it. You will need to from the properties page make it a virtual direction. Then you can go to http://localhost/ProjectFolder/Page.aspx.
|
|
|
|
|
I am working on a project where we are keeping track of tasks for other Software Projects. The program will automatically calculate estimated hours based upon what's being added, changed or whatnot. Is it possible if someone does not do that and enters what hours they think it will take based off of experience to have the hours in those rows show up in a red font or something to make it stand out?
|
|
|
|
|
I don't really understand the question. But if you just want to change the font color or background color then in RowDataBound function check your criteria and change the cssclass property of the row or just the fontcolor or backcolor.
-----
|
|
|
|
|
Thanks for the info. I will give it a shot.
|
|
|
|
|
Hi,
I have a web application that inserts data, and I am looking at capturing the created and updated date. Is there a way of determining/capturing a date and time from a specific country? What I mean is if I go to the details page of a product then I must be able to see the product was inserted with a European time, etc. etc. etc.
Please can someone advise me what to do?
Regards
Brendan
|
|
|
|
|
The JavaScript Date class has a getTimezoneOffset[^] method. When a user inserts a product, you could set the value of a server-side hidden field to the value returned from this method for the date/time the user has entered before the postback occurs. On the server-side, you should then be able to work out from this value which timezone the user is based in.
Hope this helps.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I would like to know if there is a way to access the whole web page DOM like you can for the primary Form (this.Form.Controls[])? I would like to be able to access the the head element and the body element in a similar fashion. This way I could walk the whole page structure.
Thanks,
Leo T. Smith
|
|
|
|
|
this.Page to access the whole page. if header has the runat=server tag then you can access it two ways
this.Page.Header
and
this.Header
-----
|
|
|
|
|
Thanks. This was what I was missing. From here I can get all the rest.
Leo T. Smith
|
|
|
|
|
I have a scenario where I have no influence or choice on how I call a popup from a list page, to show a details page. The list pages lists users, and the admin clicks an edit button that opens a popup to edit a user's details. I would like to cause the list page to refresh when the details popup closes. Can I even do this, and how?
Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.
|
|
|
|
|
in the popup page do this on window.close();
opener.window.location.reload();
-----
|
|
|
|
|
Hello,
I want to store some users in an XML file. A user has a username, a display name and a password.
Do I need a separate XML file or can I use web.config?
I need to list the users by username to populate a drop-down list and I also need to authenticate users by checking their passwords.
Here is my sample users XML file:
<?xml version="1.0" encoding="utf-8" ?>
<users>
<user>
<userid>bj</userid>
<displayname>Bob Jones</displayname>
<password>aaaa</password>
</user>
<user>
<userid>jd</userid>
<displayname>John Doe</displayname>
<password>bbbb</password>
</user>
</users>
So I need to write two methods:
1. List each userid
2. Return the password for a named userid
And is there any way of using the web.config for this so my system administrator can just use that rather than the separate users.xml file?
|
|
|
|
|
Have a look at this article[^] on creating custom configuration sections in web.config.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I don't know about web.config, but from separate xml file yes.
1. List each userid
DataSet xmlDS = new DataSet();
xmlDS.ReadXml(xmlfilewithpath, XmlReadMode.Auto);
gv.DataSource = xmlDS; // gv is a gridview control on the page
gv.DataBind();
2. Return the password for a named userid
// new xml document
XmlDocument xmlDoc = new XmlDocument();
// load the current file as XML document
xmlDoc.Load(xmlfilewithpath)
// get the password
XmlNode curNode = xmlDoc.DocumentElement.SelectSingleNode("users/user[userid='jd']");
string pwd;
if(curNode != null)
pwd=curNode.SelectSingleNode("password").innerText;
-----
|
|
|
|
|
Thanks for the answers
|
|
|
|
|
hi,
i want call a .asp file in html source of dotnet 1.1
i hv done the followings
> place the .asp file in application folder
> within html source i place a frameset and call the asp page there.
but it gives the error message like file not found and page cannot be displayed.
so please give me some code to solve this problem
thanks in advance
bikash
|
|
|
|
|
It sounds like you have specified the link to the asp page incorrectly. View the source for the page and check if the URL is correct.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
We have sql server replication snapshot index script file (db.idx and db.dat). We want to read data from idx file using c# or vb. Any help will be highly appreciate.
-----
|
|
|
|