|
That is a server default, if you are using something other than regular HTML you must have the correct server running on the host machine in order to interperet the requests etc...
Cleako
|
|
|
|
|
To make this job simpler, I recommend that you get Dreamweaver 8.
This program is fabulous and easily aids in the development of web pages.
About the index.html thing, it is necessary to have it as that for the server to display that page when someone accesses your domain.
|
|
|
|
|
just Add your php file as default in IIS manager.
The following steps can be used if you are using IIS locally.
- Virtual Directory -> Properties -> Documents
- Click "Add" button.
- Type your php file.
- Click "OK"
but if you are using online IIS manager then you hav to ask ur hosting service.
nothing required to load PHP file from HTML file
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
Hi all,
I used DefaultButtons in .net 1.1 to handle "pressing enter" and it works but when i used it in .net 2.0 it didn't work. if anyone has any idea??
|
|
|
|
|
|
Hi there HTML Masters!
I´ll try to figure out my actual enviroment.
I have a html file with 2 iframes (A & B lets say).
The point is that A is a login/pass page, when i submit the form in A, something should loads in B as well as in A a second page with "login Succesful" is loaded. I dont have problem with that.
Now the problem. iFrame A should ignore that "login Succesful" response page and load other page of my choice. I think i need to handle that response page but i dont know how...
any suggestion?
thanks in advance;P
Marcos
|
|
|
|
|
hi!
whenever an click event of any control occurs in my C# asp.net web application(visual studio.net 2003), form load is called again and all controls are initialized. Like i m using check box in my grid and want to capture my check state against any button click. But when i click button then form is again loaded and all check boxex became converted in their default state(which is unchecked).
therefore the following condition in my button click event alwayx bacame false coz at that time no check box is in checked state.
the condition is
if(checkbox.checked)
i have many other problems also due to this from loading against any event. Therefore can u tell me how to stop this loading every time.
|
|
|
|
|
you have to check whether the page is postbacked or not. then only you can fix this.
if (!ispostback)
{
}
And check the autopostback property of the checkboxes.
Sathesh Pandian
|
|
|
|
|
plz can u tell me how can i check whether the page is postbacked or not. then how can i fix this.
if (!ispostback)
{
}
actually i know how to check the auto post back property of checkbox but not form.
thanx
|
|
|
|
|
if the page get postbacked then all the variables are reinitialized.
So the values are become null otherwise not selected.
So try to use if(page.ispostback= false)
{
code is here..............
}
try this
Sathesh Pandian
|
|
|
|
|
Hi All,
I am designing an application using HTML.And Frames are used for that.
In my main window there are 3 rows.I need to use title bar(including minimize,
maximize and close buttons in each source in this Frameset.Means to close each frame from a frameset.
Is it possible?
Thanks In advance,
Jeeva
|
|
|
|
|
try this in a aspx page.
create every forms(html files ) in the code behind file and give the elements name properly.
for example
reponse.write("")
reponse.write("")
reponse.write("
|
|
|
|
|
Hai Satheesh,
Thanks for the reply.Can u plz specify what the JavaScript contents will be.I wrote this in a button click of .aspx page.But the code is written in the frame where the event generated.
Jeeva
|
|
|
|
|
you have to set the clicked events for a function .
sample code is like the below.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<title>Untitled Page
function buttonClick()
{
....
}
Sathesh Pandian
|
|
|
|
|
if you are going to close the frame then you can use
document.close
Its better to use div elements instead of frames.
Sathesh Pandian
|
|
|
|
|
Why on earth would you put that in the code? or even in an aspx page? it can go in a plain old HTML page, the framesets will still get parsed by the server!
|
|
|
|
|
he only needs it. see the question.
All The Best
Sathesh Pandian
|
|
|
|
|
Hello!
How can I command browser (IE 6) to wait until the page gets loaded fully? My web pages uses asp, html, javascript and dhtml. I don't want the specific page gets loaded partially by the browser but gets displayed fully when the loading is done. Is there any statement in coding what enables or disables such feature?
Thanks
Journey
|
|
|
|
|
Maybe you can set the display of the body to none:
<body style="display:none">
and clear it via javascript when your page is fully loaded.
Wout Louwers
|
|
|
|
|
I am working on a simple page (first one), intention is to allow operator to select several file names from a list and download them. My files are listed in lstLogFiles. Without the loop a selected log file can be downloaded, with this code the first selected log file can be downloaded, but only the first. I may be not understanding something (obviously) any idea why or what I need to do?
Private Sub btnDownLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDownLoad.Click<br />
Dim fullpath As String<br />
Dim i As Integer<br />
<br />
For i = 0 To lstLogFiles.Items.Count<br />
If lstLogFiles.Items.Item(i).Selected Then<br />
fullpath = lblCurrentPath.Text & lstLogFiles.SelectedItem.Text<br />
DownloadFile(fullpath, True)<br />
End If<br />
Next<br />
End Sub
Thanks in advance
|
|
|
|
|
I haven't tested this or played with it...but just looking at the code you supplied it seems like this line:
fullpath = lblCurrentPath.Text & lstLogFiles.SelectedItem.Text
should be something more like this
fullpath = lblCurrentPath.Text & lstLogFiles.Items.Item(i).ToString
|
|
|
|
|
Interesting, did not know about ToString, but it does not seem to make a difference
any other ideas? It seems like after file is downloaded the procedure exits...
|
|
|
|
|
Hmmm. I don't do a lot with List objects, so I'm not sure what is going on. You said "It seems like after file is downloaded the procedure exits"...did you debug and actually see this happen?
If that is the case then perhaps the For statement is off somehow. What does the list.count show when you debug?
You could try doing a
For Each str as String In lst.SelectedItems If the List object has that option...Other than that, perhaps there is something within the DownloadFile method that is causing a problem. Can you supply us with that code?
-- modified at 14:45 Tuesday 20th February, 2007
|
|
|
|
|
Not sure the loop is getting messed up, I jsut verified that. I call the download function below, when the .Writefile is called the user is presented with a dialogue box to save the file, as soon as "OK" is clicked the file is saved and the debugger does not allow any stepping, step out of procedure or anything.
I just placed a break point on the "Page Load" event and found that it is called as soon as I click the button, but it does not appear that impacts the selections.
Private Sub DownloadFile(ByVal fname As String, ByVal forceDownload As Boolean)<br />
Dim path As Path<br />
Dim fullpath = path.GetFullPath(fname)<br />
Dim name = path.GetFileName(fullpath)<br />
Dim ext = path.GetExtension(fullpath)<br />
Dim type As String = ""<br />
<br />
If Not IsDBNull(ext) Then<br />
ext = LCase(ext)<br />
End If<br />
<br />
Select Case ext<br />
Case ".htm", ".html"<br />
type = "text/HTML"<br />
Case ".txt"<br />
type = "text/plain"<br />
Case ".doc", ".rtf"<br />
type = "Application/msword"<br />
Case ".csv", ".xls"<br />
type = "Application/x-msexcel"<br />
Case Else<br />
type = "text/plain"<br />
End Select<br />
<br />
If (forceDownload) Then<br />
Response.AppendHeader("content-disposition", _<br />
"attachment; filename=" + name)<br />
End If<br />
If type <> "" Then<br />
Response.ContentType = type<br />
End If<br />
<br />
Response.WriteFile(fullpath)<br />
Response.End()<br />
<br />
End Sub
|
|
|
|
|
Okay. I think your problem is the Response.End statement. That statement is going to finish all processing and push the page out with whatever information it currently has. I haven't done a file download exactly like this, so I'm not sure if just removing the statement will work or if you need to replace it with something else, but you can give it a shot and see what happens.
Hope this helps.
|
|
|
|