Click here to Skip to main content
15,900,475 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: CSS 101 Pin
martin_hughes5-Nov-07 11:46
martin_hughes5-Nov-07 11:46 
QuestionXML Web Service Error Pin
-BoBo5-Nov-07 9:54
-BoBo5-Nov-07 9:54 
QuestionASP Error:(0x8004020F).The event class for this subscription is in an invalid partition Pin
Ramya.G5-Nov-07 7:28
Ramya.G5-Nov-07 7:28 
QuestionBinding XML to Menu Control Pin
RobStan5-Nov-07 7:27
RobStan5-Nov-07 7:27 
QuestionSending HTTP Soap messages Pin
AssemblySoft5-Nov-07 6:19
AssemblySoft5-Nov-07 6:19 
AnswerCross post. Please ignore this thread. Pin
Pete O'Hanlon5-Nov-07 10:16
mvePete O'Hanlon5-Nov-07 10:16 
QuestionHow to access a cookie added by javascript from codebehind in c# Pin
Shaimmaa5-Nov-07 1:46
Shaimmaa5-Nov-07 1:46 
AnswerRe: How to access a cookie added by javascript from codebehind in c# Pin
Michael Sync5-Nov-07 15:30
Michael Sync5-Nov-07 15:30 
I have tested with two sample pages (Default.aspx and Default2.aspx). It is working fine.. the following is my code..

Default.aspx (HTML View)
------------------------

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function addCookie(){
var date = new Date();
date.setHours(date.getHours() + 1);
var x = date.getUTCDate(); document.cookie = "us=5555; expires=" + x.ToString + "; path=/";

}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="d" type="button" onclick="addCookie();" />
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default2.aspx">HyperLink</asp:HyperLink>
</div>
</form>
</body>
</html>

Default.aspx (Code View)
------------------------

Partial Class _Default
Inherits System.Web.UI.Page


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Request.Cookies("us") IsNot Nothing Then
Response.Write(Request.Cookies("us").Value)
End If

End Sub
End Class


Default2.aspx (Code View)
------------------------

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">HyperLink</asp:HyperLink></div>
</form>
</body>
</html>


Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

QuestionModify and update multiple rows Pin
idsanjeevjha4-Nov-07 17:43
idsanjeevjha4-Nov-07 17:43 
AnswerRe: Modify and update multiple rows Pin
Guffa5-Nov-07 12:40
Guffa5-Nov-07 12:40 
GeneralRe: Modify and update multiple rows Pin
idsanjeevjha5-Nov-07 15:43
idsanjeevjha5-Nov-07 15:43 
AnswerRe: Modify and update multiple rows Pin
idsanjeevjha6-Nov-07 0:34
idsanjeevjha6-Nov-07 0:34 
Questionwindows short cut icon creation Pin
new2pgrmg4-Nov-07 17:42
new2pgrmg4-Nov-07 17:42 
QuestionCalling FileUpload browse button, How ? Pin
hifiger20044-Nov-07 2:40
hifiger20044-Nov-07 2:40 
QuestionRe: Calling FileUpload browse button, How ? Pin
Shog94-Nov-07 6:28
sitebuilderShog94-Nov-07 6:28 
AnswerRe: Calling FileUpload browse button, How ? Pin
hifiger20045-Nov-07 3:42
hifiger20045-Nov-07 3:42 
GeneralRe: Calling FileUpload browse button, How ? Pin
Shog95-Nov-07 7:13
sitebuilderShog95-Nov-07 7:13 
GeneralRe: Calling FileUpload browse button, How ? Pin
hifiger20046-Nov-07 1:19
hifiger20046-Nov-07 1:19 
AnswerRe: Calling FileUpload browse button, How ? Pin
Michael Sync4-Nov-07 19:30
Michael Sync4-Nov-07 19:30 
QuestionPerformance Issue Pin
militiaware3-Nov-07 23:23
militiaware3-Nov-07 23:23 
AnswerRe: Performance Issue Pin
Christian Graus3-Nov-07 23:46
protectorChristian Graus3-Nov-07 23:46 
Questiondotnet nuke Pin
sandipchandra17@gmail.com2-Nov-07 19:58
sandipchandra17@gmail.com2-Nov-07 19:58 
AnswerRe: dotnet nuke Pin
Paul Conrad3-Nov-07 5:31
professionalPaul Conrad3-Nov-07 5:31 
AnswerRe: dotnet nuke Pin
Mircea Grelus3-Nov-07 5:44
Mircea Grelus3-Nov-07 5:44 
QuestionDotNet Nuke Pin
sandipchandra17@gmail.com2-Nov-07 19:57
sandipchandra17@gmail.com2-Nov-07 19:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.