i have created an asp.net application which is hosted on a web server running Win 2003. This application generates an html file which is sent as an attachment to a third party who in turn sends a fax to our client.
The problem is that the html file generated on the above mentioned web server is received by the third party in a incorrect format or rather jumbled up.
But when i run the same application from my localhost it runs perfectly fine. My machine is running Win 2000 server.
I have checked the code of generating the HTML file and all the syntaxes are perfect. I also downloaded an HTML validator to cross check.No errors were found.
Please help me solve this problem.
>> Is this an issue with Win 2003 web server.
>> Do i need to install any Service Packs..
Ok, I confess. Sometimes ASP.NET throws a curve ball at me and I can do nothing about it. Like today.
I'm trying to refer to a spreadsheet in the root of a website from a page nested deep within (note, this could be any page in the site).
Previously, I had simply coded the root of the site in the Web.Config and then concatenated it with /style.css to get the stylesheet name. However, I keep screwing up when I deploy and forgetting to change the setting for the website root, resulting in a missing stylesheet.
Now, I've heard about using "~/" and "../" but I can't seem to get either one to work. I've even tried the following code:
I was trying to be all fancy and make my new webpage entirely out of div's as opposed to tables, then i came into a problem. The .net framework has a class for tables, so you can control then etc in your aspx.cs page, however, I can't find a class that represents divs.
How am I supposed to manipulate my divs in my code?
a div tag is a generichtml control in .net. You can still modify it, it just doesn't have the same functionality as a table. One trick would be to use nested div tags and give each one an ID and don't forget runat="server"
"People who never make mistakes, never do anything." My Blog
You basically don't need to add an additional invisible column to keep the ID values, instead you simply specify the id field in the DataKeyField property of the datalist control when you bind the datasource to the control, and you can access the id values from the DataKeys collection. For more information, you can see DataList Members[^]