Click here to Skip to main content
15,913,758 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Controls are not wraping on resizing IE. Pin
jbracken197314-May-09 4:53
jbracken197314-May-09 4:53 
GeneralRe: Controls are not wraping on resizing IE. Pin
SRKSHOME14-May-09 18:34
SRKSHOME14-May-09 18:34 
GeneralRe: Controls are not wraping on resizing IE. Pin
jbracken197315-May-09 1:14
jbracken197315-May-09 1:14 
QuestionError using session variable in vbscript with code behind file Pin
dptalt14-May-09 3:45
dptalt14-May-09 3:45 
AnswerRe: Error using session variable in vbscript with code behind file Pin
Ramesh Swaminathan14-May-09 4:13
Ramesh Swaminathan14-May-09 4:13 
GeneralRe: Error using session variable in vbscript with code behind file Pin
dptalt14-May-09 4:36
dptalt14-May-09 4:36 
AnswerRe: Error using session variable in vbscript with code behind file Pin
AlexeiXX314-May-09 8:33
AlexeiXX314-May-09 8:33 
GeneralRe: Error using session variable in vbscript with code behind file Pin
dptalt14-May-09 9:20
dptalt14-May-09 9:20 
Below is the html and code behind I'm working on.
The error I get is "The Session does not exists in the current context."

The error is referring to this session variable in the code: Session("DocumentFile")
If I remove this line the error goes away but I need my code behind file.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>




<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>







<title>Office Viewer Component Demo - EdrawSoft


#OA1
{
height: 750px;
width: 1000px;
}






Sub OpenFromServer()
On Error Resume Next
OA1.Open <% =Session("DocumentFile") %>

End Sub

Sub NotifyCtrlReadyEvent()

End Sub




NotifyCtrlReadyEvent()
OpenFromServer()







<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Button">


 

<object classid="clsid:6BA21C22-53A5-463F-BBE8-5CF7FFA0132B" id="OA1"
="" codebase="http://www.ocxt.com/download/officeviewer.cab#5,6,578,1">
<param name="BorderColor" value="-2147483632" />
<param name="BackColor" value="-2147483643" />
<param name="ForeColor" value="-2147483640" />
<param name="TitlebarColor" value="-2147483635" />
<param name="TitlebarTextColor" value="-2147483634" />
<param name="BorderStyle" value="1" />
<param name="Titlebar" value="0" />
<param name="Toolbars" value="1" />
<param name="LicenseName" value="<Company Name>" />
<param name="LicenseKey" value="<Product License Key>" />
<param name="Menubar" value="1" />
<param name="ActivationPolicy" value="1" />
<param name="FrameHookPolicy" value="1" />
<param name="MenuAccelerators" value="1" />


 
 
 









Code behind:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}

}
GeneralRe: Error using session variable in vbscript with code behind file Pin
dptalt14-May-09 10:03
dptalt14-May-09 10:03 
GeneralRe: Error using session variable in vbscript with code behind file Pin
AlexeiXX314-May-09 10:11
AlexeiXX314-May-09 10:11 
Questionrepeater control Pin
kanadoss14-May-09 2:48
kanadoss14-May-09 2:48 
AnswerRe: repeater control Pin
Christian Graus14-May-09 2:50
protectorChristian Graus14-May-09 2:50 
Questiononly first row from datareader gets affected Pin
svknair14-May-09 1:38
svknair14-May-09 1:38 
AnswerRe: only first row from datareader gets affected Pin
Christian Graus14-May-09 2:51
protectorChristian Graus14-May-09 2:51 
AnswerRe: only first row from datareader gets affected Pin
Ramesh Swaminathan14-May-09 2:52
Ramesh Swaminathan14-May-09 2:52 
GeneralRe: only first row from datareader gets affected Pin
Christian Graus14-May-09 3:01
protectorChristian Graus14-May-09 3:01 
GeneralBasic Photography Web Site (PLZ H3LP IRGint!!!) Pin
Brady Kelly14-May-09 0:59
Brady Kelly14-May-09 0:59 
GeneralRe: Basic Photography Web Site (PLZ H3LP IRGint!!!) Pin
Christian Graus14-May-09 1:09
protectorChristian Graus14-May-09 1:09 
GeneralCheckout XARA Pin
David Mujica14-May-09 3:31
David Mujica14-May-09 3:31 
Questiontable inside a href=".." Question? Pin
mrcooll14-May-09 0:59
mrcooll14-May-09 0:59 
AnswerRe: table inside a href=".." Question? Pin
jbracken197314-May-09 2:05
jbracken197314-May-09 2:05 
AnswerRe: table inside a href=".." Question? Pin
Samer Aburabie14-May-09 2:10
Samer Aburabie14-May-09 2:10 
QuestionProblem while binding data to a DropDownList in GridView's EditItemTemplate column Pin
YazhiniP14-May-09 0:32
YazhiniP14-May-09 0:32 
AnswerRe: Problem while binding data to a DropDownList in GridView's EditItemTemplate column Pin
Samer Aburabie14-May-09 2:23
Samer Aburabie14-May-09 2:23 
GeneralRe: Problem while binding data to a DropDownList in GridView's EditItemTemplate column Pin
YazhiniP15-May-09 0:02
YazhiniP15-May-09 0:02 

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.