Cannot Fully Control Pages With HTML
Sep 16, 2010I have heard that you can not fully control your pages with HTML in ASP.NET as in PHP. Is that right?
View 6 RepliesI have heard that you can not fully control your pages with HTML in ASP.NET as in PHP. Is that right?
View 6 RepliesI am struggling a little creating a basic redirect page in ASP.Net but ensure the HTML is loaded first.I tried putting Response.Redirect in the page load event but that fires before the HTML is fully loaded. Been trying to use a timer but just not doing anything.I need the HTML to load before the redirect occurs is I have a statcounter script installed to log the visit before it redirects of my site.
View 4 RepliesHow do I have 404 for .htm and .html pages.
I cannot use ".htaccess" file because I am on a shared windows server.
Currently I have a 404.aspx page and configure the web.config page as so:
[code]....
I have researched this for many hours but haven't managed to find a solution just yet.
I am realizing a table with multiple rows for a Sharepoint webpart.
In this project, I would like to have a new html control which contain a LinkHtml in one column and another label in another column.
Essentially this html control would be a row used for my html table.
At the moment i am doing a row like this in the main class :
[Code]....
I use shared hosting. I have set my page to be cached indefinitely. The page gets cached after the first request. However on the next day when I visit my site it is no longer in the cache and has to be regenerated.
What is happening? Is the hosting removing my pages from the cache? Or something else?
i m facing problem in converting .html pages to .aspx using c#secnario isi got one index.html pagei have to convert index.html into .aspx pages and that to in four pastop part as a.aspxmiddle part as b.aspxbottom part as c.aspxand then in d.aspx i have to combine all the three parts and call them in d.aspx...
View 7 RepliesI had an ASP.NET 1.1 application that I converted to 2.0. I deployed the application under IIS 7 on Windows 2008 Server. I can browse images and static html pages but I can't browse .aspx pages. When I try to run any .aspx page, my browser says "Internet Explorer cannot display the webpage". My application pool is set to .NET framework 2.0 with Integraded in Managed Pipeline mode.
View 1 RepliesI am using forms authentication in IIS7 to password-protect a dev site, but the authentication seems to get by-passed when the site contains only static HTML files + login.aspx + web.config.
When I renamed the files to .aspx, I am prompted with the login form I am not doing anything fancy. I have a very simple login script and it should just redirect to index.html afterward.
To summarize, the entire site is using HTML (for now) and needs to be password protected.
<authentication mode="Forms">
<forms name="appNameAuth" path="/" loginUrl="~/login.aspx" defaultUrl="index.html" protection="All" timeout="525600">
<credentials passwordFormat="Clear">
<user name="<user>" password="<password>" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
Asp.net, php, jsp What other popular (used alot in production) languages for HTML pages generation are there?
View 4 RepliesI have been working on a new website for a few weeks with no speed issues at all.
[Code]....
This morning I was running / debugging new code and everything was running fine.
As soon as I dropped an AJAX HTML editor on my page it is taking about 30 seconds for my page to load when it was taking about 2 - 3 seconds. The only properties I changed was the Height and Width of the editor control.
Here is the code for that control:
<cc1:Editor ID="editorDetails" runat="server" Width="420" Height="300" />
I even turned off debugging just to see if that would help but it didnt.
I have the latest version which is 11-2009 BETA.
Could it be the beta version just has some debugging stuff that will go away with the final release version?
I have a large set (over 300) of C# ASP.NET pages *.aspx and controls *.ascx, which are littered with inline CSS styles. My task is to extract those style into a CSS file.
So I'm looking for a tool to simplify the task of manually extracting this inline styles and replacing them with class="" statements.
Now I know this is not the ideal solution of doing things
I have this proxy code taken from this article and created as an HttpHandler
public void ProcessRequest(HttpContext context)
{
string url = context.Request["url"];
[code]...
I get the error message The system cannot find the path specified for a .html file that doesn't exist on the server.
1. Is it possible to set up an error page for .html pages that doens't exist without having access to IIS.
2. If you need to do it in IIS, can you do this for .html files, and then set up custom error pages for .aspx files in the web.config so that these rules co-exist.
want to send muliple html pages in a email in vb.net
View 1 RepliesI read that with IIS 7, ASP.NET has become an intrinsic part of IIS instead of an external ISAPI DLL. They say that the main reason for this change is that it's now possible to secure files that previously have not been handled by ASP.NET.
I want to check this out, so I have created a Forms authentication web site and added the following files to it:
Default.aspxLogin.aspxHtmlPage.html
Moreover, I have set the web.config to deny anonymous users and I have enabled Forms authentication in IIS.
Here's my problem:
While the ASPX page perfectly requires me to log in, the HTML page does not. It just yields error 401.2.
So my question is:
What did I do wrong? What is necessary to have HTML files (or images) secured using Forms authentication?
I am having menus on the left side of the master page.I am also having the html pages related to the menu link. Based on the menu selection i would like to show the corresponding html pages as a content to the right side of the master page.
The html pages shoud need to be shown just like the other webforms are shown on the right side of the master page pased on the menu selection.
I have a DIV element...
<div id="loginBox"> ... some other HTML elements inside here ... </div>
I use CSS to style this DIV and its contents....
#loginBox { ... }
#loginBox input[type="text"] { ... }
#loginBox button { ... }
... and so on ...
Now, I use a master page and the #loginBox DIV is inside the .master file.
At one point, I have the need to access the #loginBox at the server-side, so I add add runat="server" attribute. But as a result, ASP.net will change the ID of the DIV to #ct100_loginBox, and all the CSS code mentioned above.
I am creating a pdf document with fields from sql database using iTextsharp,after a client inputs information, the next button is pressed each page is saved in new row with page01,page02 etc as a column within that database. I would like iTextsharp to loop and create a new page based on this page number and have one pdf doc. my code is as below.
protected void GenerateReport(object sender, EventArgs e)
{
DataRow dr = GetData("SELECT * FROM OnSiteWorkTx where DocID = " + DropDownListPdf.SelectedItem.Value).Rows[0]; ;
[Code].....
I have a website which has both html and aspx pages. for aspx pages i have added code in customerror section in web.config and is working fine, but only in case of aspx pages. I want if somebody looks for html page which does not exist should also be taken to error page.[URL]( What about html pages section) will only work if the site is hosted at my servers, but in my case the website is hosted somewhere else.
View 2 RepliesI have a HTML IMG tag on my master page and there are aspx pages in the same folder which access this master page and it works fine.but if i have aspx pages in sub folder(inside root) which access the master page,the IMG doesnt work,the master page is in root folder.
View 6 RepliesI am running Aprelium Abyss Web Server from my home computer and I have a plain old normal website. You know how you can have separate PHP files, and then call the functions inside of then within the HTML page using the onclick="" of a button? Well, I have a C# and C++ program on my computer (where the server is located), and would like to know if I can somehow send a command from my html page to my C# or C++ program which will then execute a function, and return a result. Here's a scenario: User visits [URL] User clicks the 'Create some files' button on the webpage Webpage sends command to C# application on my computer/webserver C# application creates a bunch of empty files C# application sends back filenames of the generated files to the webpage the webpage then displays a list of the filenames that were generated byb the C# application. Can somebody please guide me in the right direction?
View 1 RepliesI'm building an HTML5 application (with ASP.NET back-end) and i want to develop it in such a way that i can run it locally with all my resources (such js and css) not minified (so i can debug it easily). However when i build the final version i want merge and minify the resources. At the same time i want to create several versions of the app targeting different platforms (iPhone, iPad, desktop, etc) by adding appropriate css.
I thought that the final output should be a set of html files (so the get cached nicely). I could use ASPX and just control the output by a query string parameter, but i don't really want to have the form tag on my page.
So the questions are:
What are the pros and cons of using static html pages generated from a template versus a dynamic ASPX page? (apart from being able to run on any web server)
If ASPX approach good enough then how can i get rid of the form tag that's required by ASP.NET?
UDPATE
Another factor in favor of static html pages is the fact that the files are served instantly, whereas ASPX may take awhile to load if the app has recycled.
The back-end is ASP.NET 2.0.
If I want to retrieve part of an HTML from pages that is located in other domain using AJAX, how do i do it securely ?
View 1 RepliesI have a code to get the list of OUs within a domain. Now this just lists all the OUs and does not give any way to distinguish between an OU and a sub OU.
DirectoryEntry entry = new DirectoryEntry("LDAP://" + domain);
DirectorySearcher mySearcher = new DirectorySearcher(entry);
mySearcher.Filter = ("(objectClass=organizationalUnit)");
foreach (SearchResult temp in mySearcher.FindAll())
{
OU_DownList.Items.Add(temp.Properties["name"][0].ToString());
}
Is there a way i can get the fully qualified name of an OU? Something like this for a sub OU:
CN=Computer1,OU=Department 101,OU=Business Unit #1,DC=us,DC=xyz,DC=com
i want to get the fully qualified url to a resource in ASP.NET.
e.g.:
<LINK rel="shortcut icon" href="<%=GetFaviconPath()%>">
with the code-behind file right now containing:
private String GetFaviconPath()
{
String url = System.Web.VirtualPathUtility.ToAbsolute("~/Images/clock.ico");
return url;
}
Unfortunately this doesn't work because it doesn't return the fully qualified path, only the path relative to the server:
/Employement/Images/clock.ico
Internet Explorer requires a fully qualified url, e.g.:
[URL]
How can i get the fully qualified path to a file? i've tried VirtualPathUtility and i'm all out of ideas.