|
I would suggest before they pop up your web site or right after they do to add this meta tag:
<meta http-equiv="Refresh" content="n;url">
n is the number of seconds to wait before loading the specified URL.
url is an absolute URL to be loaded.
This causes they page to auto refresh which should keep the session alive. Then the only problem is removing the meta tag once you know the user is using your site again.
Hope that helps.
Ben
|
|
|
|
|
Wouldn't a periodic XMLHTTP GET Request of a test page hosted in thier webserver address your requirement?
|
|
|
|
|
Hi Guys,
I wonder if how can I trigger the onclick event. It won't trigger the ShowPart procedure, why? Please see the asp.net code below with code behind vb coding.
Default.aspx:
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<img src="beaumontpic1.jpg" width="463" height="476" border="0" alt="" usemap="#id203_480_Map" id="IMG1" runat="server"/>
</ContentTemplate>
</asp:UpdatePanel>
<div>
</div>
<map name="id203_480_Map">
<area shape="rect" alt="" coords="398,270,441,292" href="" onclick="showpart(300)"/>
<area shape="rect" alt="" coords="398,147,433,169" href="" onclick="showpart(200)"/>
<area shape="rect" alt="" coords="398,26,455,57" href="" onclick="showpart(100)"/>
</map>
</form>
</body>
</html>
-----------------------------------------
VB Coding:
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections
Partial Class _Default
Inherits System.Web.UI.Page
Sub ShowPart(ByVal stmp As String)
MsgBox(stmp)
End Sub
End Class
hifiger2004
|
|
|
|
|
The onclick event handler u are using is client side. Your "showpart(string)" function is server side. Add the following to your page:
function showpart(val)
{
alert(val)
}
|
|
|
|
|
Aside from javascript, can it be possibly place the code behind using vb type of coding?
hifiger2004
|
|
|
|
|
|
the built-in imagemap in asp.net is fine, but what I really need is the html way of coding using the usemap tags. The reason for not using the built-in imagemap of asp.net is because of the existing website in html code before, and will be converted to asp.net. And all I need is to dynamically copy everything from usemap and add it in asp.net. Because it we can save more time if doing this way than configuring all the images one by one. I have to save more time
hifiger2004
|
|
|
|
|
hmm well I suspect you will either have to use the imagemap control, or else use some ajax callbacks in the client-side onclick event to execute your server-side code...
|
|
|
|
|
I have a CSS Menu (code below) which works on IE7 browsers but does not work on IE6 browsers. Please Help!
-- modified at 12:18 Wednesday 18th July, 2007
<~li><asp:hyperlink id="hpExecs" runat="server" navigateurl="~/Staff.aspx?id=1" width="154px">Corporate Officers<~/li>
<~li><asp:hyperlink id="hpMM" runat="server" navigateurl="~/Staff.aspx?id=2" width="154px">Executive Team<~/li>
<~li><asp:hyperlink id="hpCC" runat="server" navigateurl="~/CustomerCare.aspx" width="154px">Customer Care<~/li>
<~li><asp:hyperlink id="hpUHP" runat="server" navigateurl="~/UHP.aspx" width="154px">UHP<~/li>
<~li><asp:hyperlink id="hpPatriot" runat="server" navigateurl="~/Patriot.aspx" width="154px">Patriot<~/li>
<~li><asp:hyperlink id="hpOCG" runat="server" navigateurl="~/OCG.aspx" width="154px">OCG<~/li>
<~/ul>
<~/li>
<~li id="menu-CT"><asp:hyperlink id="hpClientTestimonial" runat="server" navigateurl="javascript:void(0);" width="150px" style="display: none" height="19px">Client Testimonial<~/li>
<~li id="menu-NR"><asp:hyperlink id="hpNR" runat="server" navigateurl="javascript:void(0);" width="150px" style="display: none" height="19px">News Room<~/li>
<~li id="menu-CU"><asp:hyperlink id="hpCU" runat="server" navigateurl="~/ContactUs.aspx" width="150px" style="border-right-style: none" height="19px">Contact Us
<~/li>
<~/ul>
|
|
|
|
|
.menu
{
padding: 0px;
margin: 0px;
background-image: url(../images/home/nav.gif);
text-align: center;
background-position: left top;
background-repeat: repeat-x;
vertical-align: top;
}
A.menu:hover, A.menu:active
{
background-color: #d09734;
}
.menu li
{
float: left;
margin: 0px;
padding: 0px;
background-repeat: no-repeat;
list-style-type: none;
}
.menu li a
{
background-repeat:no-repeat;
overflow:hidden;
}
/** Menu Link attributes**/
#menu li
{
position: relative;
text-align: center;
padding-left: 5px;
}
ul#menu li a
{
display: block;
overflow: hidden;
margin: 0px;
padding: 0px;
color: #ffffff;
text-align: center;
border-right: #e4c288 1px solid;
text-decoration: none;
font-style: italic;
font-family: Garamond;
}
/**Menu attributes**/
#menu li a:hover, #menu li a:active
{
color: #964b26;
}
/**Subitem attributes **/
#menu li ul a:link, #menu li ul a:visited
{
color: #996600;
font-style: normal;
font-size: 10pt;
font-family: Garamond;
text-align: left;
border-right-style: none;
}
/**End subitem Attributes**/
#menu li ul a:hover, #menu li ul a:active
{
color: #000000;
}
/** Makes subitem visible**/
#menu li:hover ul
{
margin: 0px;
padding: 0px;
display: block;
visibility: visible;
}
/** Makes subitem invisible**/
#menu li ul
{
border-left: #e4c288 1px solid;
border-bottom: #e4c288 1px solid;
border-right: #e4c288 1px solid;
display: none;
z-index: 3;
width: auto;
font-weight: normal;
margin: 0px;
padding: 0px;
color: #ffffff;
background-color: #ffedb7;
filter: alpha(opacity=80);
position: absolute;
left: 0;
border-right-width: 1px;
border-right-color: #e4c288;
top: 19px;
}
#menu li ul li
{
display:block;
}
#menu li ul li a
{
display:block;
}
|
|
|
|
|
<~ul class="menu" id="menu">
<~li id="menu-Home" >Home<~/li>
<~li id="menu-CP">Company Profile
<~ul style="width: 154px; removed: absolute;" >
<~li>About Us<~/li>
<~li>Corporate Officers<~/li>
<~li>Executive Team<~/li>
<~li>Customer Care<~/li>
<~li>UHP<~/li>
<~li>Patriot<~/li>
<~li>OCG<~/li>
<~/ul>
<~/li>
<~li id="menu-CT">Client Testimonial<~/li>
<~li id="menu-NR">News Room<~/li>
<~li id="menu-CU">Contact Us
<~/li>
<~/ul>
|
|
|
|
|
Standard question #1:
What do you mean by "not working"?
---
single minded; short sighted; long gone;
|
|
|
|
|
Idea - grab something off the web that does work.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi Guys,
I have an ASP.Net code below that will display the image map on the page. But I don't know if how to trigger the click button of the hotspots.
I dont' know if what's wrong with my source code.
Please refer to my ASP.Net code below. Thanks in advance
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script language="vbscript" type="text/vbscript">
<!--
sub passvalue(stmp as string)
textbox1.text = stmp
end sub
// -->
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<div>
<asp:ImageMap ID="ImageMap1" runat="server" BorderStyle="Solid"
GenerateEmptyAlternateText="True" HotSpotMode="Navigate" ImageAlign="Left" ImageUrl="~/beaumontpic1.JPG" DescriptionUrl="~/Default.aspx">
<asp:CircleHotSpot HotSpotMode="PostBack" PostBackValue="1" X="170" Y="180" NavigateUrl="~/Default.aspx" Radius="5" />
<asp:CircleHotSpot HotSpotMode="PostBack" PostBackValue="2" Radius="5" X="253" Y="49" />
</asp:ImageMap>
</div>
<img src="images/203-480.jpg" width="463" height="476" border="0" alt="" usemap="#id203_480_Map" id="IMG1" />
<map name="id203_480_Map">
<area shape="rect" alt="" coords="398,270,441,292" href="" onclick="passvalue('100')"/>
<area shape="rect" alt="" coords="398,147,433,169" href="" onclick="passvalue('110')"/>
<area shape="rect" alt="" coords="398,26,455,57" href="" onclick="passvalue('120')"/>
</map>
</form>
</body>
</html>
hifiger2004
|
|
|
|
|
Guys,
Where on Earth can I find IE settings in the registry.
I'm talking about the security settings for each zone (Internet, Intranet, Trustes sites, ...)
You can set most options to disable/enable/prompt.
I've tried HKEY_LOCAL_MACHINE/Software/Microsoft/Internet Explorer/ but they're not in there... so where are they?
Thanks for your help!
|
|
|
|
|
Look at:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet settings\Zones
Wout Louwers
|
|
|
|
|
thanks man,
I found it myself finally by setting the settings one way and the other and doing an export of the registry. Winmerge did the rest .
|
|
|
|
|
It wold have been easier to just do a search in the registry on 'Zone', as I did.
Wout Louwers
|
|
|
|
|
lol, If I would have known it would actually be under zone .
|
|
|
|
|
Hi all
I have to create a web accessible search select and update page in asp/vbscript.The technologies i will be using are:-
jboss/iis-for web page hosting,
asp/vbscript-for web page logic
html/xsl-for static page elements(lables,text,field properties etc),
xml-dynamic page elements(dropdown list,default values etc),
database client-mercury open test achitecture(databse communication with database will be done using mercury open test architecture API)...
I have to create a web page on the server side to host the page which will get the data from the quality center database and serve to the client.
Can anyone please help me out in doing this.
BDas___
-- modified at 7:11 Thursday 19th July, 2007
|
|
|
|
|
|
HI sathesh thanx for the informations.
But it still doesnt slove my problem..
Can you please help me out in getting a code which will help me out in doing my work.
my job is to create a web page in asp/vbscript(on the server side) which will take care of the databse and can create dynamic xml page for storing the data and displaying them.
do u understand the problem now??
|
|
|
|
|
Hi to all
Can anyone help me with some info on how to look at the contents of a directory on my website and adding the filenames, to a listbox ?
Thank you
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Look at the System.IO.Directory.GetFiles and System.IO.DirectoryInfo.GetFiles methods.
They return an array of strings or an array of FileInfo objects. Just loop through the array and create a listbox items for each file name.
---
single minded; short sighted; long gone;
|
|
|
|
|
DirectoryInfo diYourDir = new DirectoryInfo("c:\Path\To\Dir");<br />
foreach (FileInfo fi in diYourDir.GetFiles("*"))<br />
{<br />
Console.WriteLine(fi.Name);<br />
} <br />
<br />
|
|
|
|