473,466 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Publicly defining a variable in Page Class C#

20 New Member
Hello,
I have a variable that I get from:

<%
string mys=Request.ServerVariables["AUTH_USER"].ToString();
int n=mys.IndexOf("\\");
if (n!=-1)
{
mys=mys.Substring(n+1);
}
%>

and I want to use that variable to populate a textbox. I was told that I have to define it in the same code block or Publicly in the Page Class. I really have no idea what was meant by that, no examples were provided. Can someone point me in the right direction for doing this? Thanks!
Aug 17 '07 #1
8 1554
nateraaaa
663 Recognized Expert Contributor
Hello,
I have a variable that I get from:

<%
string mys=Request.ServerVariables["AUTH_USER"].ToString();
int n=mys.IndexOf("\\");
if (n!=-1)
{
mys=mys.Substring(n+1);
}
%>

and I want to use that variable to populate a textbox. I was told that I have to define it in the same code block or Publicly in the Page Class. I really have no idea what was meant by that, no examples were provided. Can someone point me in the right direction for doing this? Thanks!
Create a public string variable in the code behind of the page where the textbox is located.

public string mys = "";

TextBox1.Text = mys;

Nathan
Aug 17 '07 #2
stilmas
20 New Member
Create a public string variable in the code behind of the page where the textbox is located.

public string mys = "";

TextBox1.Text = mys;

Nathan
Hey Nathan,
Thanks for the reply. I'm using inline code if that changes anything. Can you give me a coded exapmle of how that would be done since I'm a rookie at this? Thanks!
Aug 17 '07 #3
nateraaaa
663 Recognized Expert Contributor
Create a public string variable in the code behind of the page where the textbox is located.

public string mys = "";

TextBox1.Text = mys;

Nathan
<%
public string mys = "";
mys=Request.ServerVariables["AUTH_USER"].ToString();
int n=mys.IndexOf("\\");
if (n!=-1)
{
mys=mys.Substring(n+1);
}
TextBox1.Text = mys;
%>
Aug 17 '07 #4
stilmas
20 New Member
<%
public string mys = "";
mys=Request.ServerVariables["AUTH_USER"].ToString();
int n=mys.IndexOf("\\");
if (n!=-1)
{
mys=mys.Substring(n+1);
}
TextBox1.Text = mys;
%>
Nathan,
I'm almost there, I understand what you wanted me to do know. Here's my page code with what you gave me added in there. I left out the form and asp textboxes. If you want that too let me know:

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" EnableSessionState="true" %>
<%@ Import Namespace="System.Web.Mail" %>
<%
public string mys = "";
mys=Request.ServerVariables["AUTH_USER"].ToString();
int n=mys.IndexOf("\\");
if (n!=-1)
{
mys=mys.Substring(n+1);
}
txtSubject.Text = mys;
%>
<script language="c#" runat="server">
private void btnSend_Click(object sender, System.EventArgs e)
{
MailMessage msg = new MailMessage();
msg.To = txtTo.Text;
msg.From = txtFrom.Text;
msg.Subject = txtSubject.Text;
lblStatus.Text = "Sending...";
SmtpMail.SmtpServer = "SMTPserver";
SmtpMail.Send(msg);
lblStatus.Text = "Sent email (" + txtSubject.Text + ") to " +txtTo.Text;
}
</script>

I get this error:

CS1513: } expected
Line 600: }
Line 601:
Line 602: private void __Render__control1(System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control parameterContainer) {
Line 603:
Line 604: #line 2 "D:\inetpub\websites\CompAssetTrack\email.aspx "

Thanks so much for your help, I can feel it's getting close!
Aug 17 '07 #5
nateraaaa
663 Recognized Expert Contributor
Nathan,
I'm almost there, I understand what you wanted me to do know. Here's my page code with what you gave me added in there. I left out the form and asp textboxes. If you want that too let me know:

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" EnableSessionState="true" %>
<%@ Import Namespace="System.Web.Mail" %>
<%
public string mys = "";
mys=Request.ServerVariables["AUTH_USER"].ToString();
int n=mys.IndexOf("\\");
if (n!=-1)
{
mys=mys.Substring(n+1);
}
txtSubject.Text = mys;
%>
<script language="c#" runat="server">
private void btnSend_Click(object sender, System.EventArgs e)
{
MailMessage msg = new MailMessage();
msg.To = txtTo.Text;
msg.From = txtFrom.Text;
msg.Subject = txtSubject.Text;
lblStatus.Text = "Sending...";
SmtpMail.SmtpServer = "SMTPserver";
SmtpMail.Send(msg);
lblStatus.Text = "Sent email (" + txtSubject.Text + ") to " +txtTo.Text;
}
</script>

I get this error:

CS1513: } expected
Line 600: }
Line 601:
Line 602: private void __Render__control1(System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control parameterContainer) {
Line 603:
Line 604: #line 2 "D:\inetpub\websites\CompAssetTrack\email.aspx "

Thanks so much for your help, I can feel it's getting close!
Without seeing the actual code I would not know how to solve this error. I assume you are missing a closing } somewhere in your code which is causing this error.

Nathan
Aug 17 '07 #6
stilmas
20 New Member
Without seeing the actual code I would not know how to solve this error. I assume you are missing a closing } somewhere in your code which is causing this error.

Nathan
What code would you need? That's all I have besides the form and text boxes. Please excuse my ignorance, I really am new to this. Thanks for your help!
Aug 17 '07 #7
stilmas
20 New Member
Without seeing the actual code I would not know how to solve this error. I assume you are missing a closing } somewhere in your code which is causing this error.

Nathan
I found the code you were talking about:

namespace ASP {
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Configuration;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Caching;
using System.Web.SessionState;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

#line 2 "D:\inetpub\websites\CompAssetTrack\email.aspx "
using System.Web.Mail;

#line default
#line hidden


[System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()]
public class Email_aspx : System.Web.UI.Page, System.Web.SessionState.IRequiresSessionState {

private static int __autoHandlers;


#line 42 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.WebControls.Label Label1;

#line default
#line hidden


#line 44 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.WebControls.TextBox txtFrom;

#line default
#line hidden


#line 46 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.WebControls.Label Label2;

#line default
#line hidden


#line 48 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.WebControls.TextBox txtTo;

#line default
#line hidden


#line 50 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.WebControls.TextBox txtSubject;

#line default
#line hidden


#line 52 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.WebControls.Label Label3;

#line default
#line hidden


#line 54 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.WebControls.Button btnSend;

#line default
#line hidden


#line 56 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.WebControls.Label lblStatus;

#line default
#line hidden


#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
protected System.Web.UI.HtmlControls.HtmlForm MailForm;

#line default
#line hidden

private static bool __initialized = false;

private static object __stringResource;

private static System.Collections.ArrayList __fileDependencies;


#line 13 "D:\inetpub\websites\CompAssetTrack\email.aspx "

private void btnSend_Click(object sender, System.EventArgs e)
{
MailMessage msg = new MailMessage();
msg.To = txtTo.Text;
msg.From = txtFrom.Text;
msg.Subject = txtSubject.Text;
lblStatus.Text = "Sending...";
SmtpMail.SmtpServer = "exchange.njdol.ad.dol";
SmtpMail.Send(msg);
lblStatus.Text = "Sent email (" + txtSubject.Text + ") to " +txtTo.Text;
}

#line default
#line hidden

public Email_aspx() {
System.Collections.ArrayList dependencies;
if ((ASP.Email_aspx.__initialized == false)) {
ASP.Email_aspx.__stringResource = System.Web.UI.TemplateControl.ReadStringResource(t ypeof(ASP.Email_aspx));
dependencies = new System.Collections.ArrayList();
dependencies.Add("D:\\inetpub\\websites\\CompAsset Track\\email.aspx");
ASP.Email_aspx.__fileDependencies = dependencies;
ASP.Email_aspx.__initialized = true;
}
this.Server.ScriptTimeout = 30000000;
}

protected override int AutoHandlers {
get {
return ASP.Email_aspx.__autoHandlers;
}
set {
ASP.Email_aspx.__autoHandlers = value;
}
}

protected System.Web.HttpApplication ApplicationInstance {
get {
return ((System.Web.HttpApplication)(this.Context.Applica tionInstance));
}
}

public override string TemplateSourceDirectory {
get {
return "/";
}
}

private System.Web.UI.Control __BuildControlLabel1() {
System.Web.UI.WebControls.Label __ctrl;

#line 42 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.WebControls.Label();

#line default
#line hidden
this.Label1 = __ctrl;

#line 42 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "Label1";

#line default
#line hidden

#line 42 "D:\inetpub\websites\CompAssetTrack\email.aspx "
((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAt tribute("Style", "left: 100px; position: absolute; top: 100px");

#line default
#line hidden
System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));

#line 42 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("From:\r\n "));

#line default
#line hidden
return __ctrl;
}

private System.Web.UI.Control __BuildControltxtFrom() {
System.Web.UI.WebControls.TextBox __ctrl;

#line 44 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.WebControls.TextBox();

#line default
#line hidden
this.txtFrom = __ctrl;

#line 44 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.CssClass = "ToLower";

#line default
#line hidden

#line 44 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "txtFrom";

#line default
#line hidden

#line 44 "D:\inetpub\websites\CompAssetTrack\email.aspx "
((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAt tribute("Style", "left: 200px; position: absolute; top: 100px");

#line default
#line hidden
return __ctrl;
}

private System.Web.UI.Control __BuildControlLabel2() {
System.Web.UI.WebControls.Label __ctrl;

#line 46 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.WebControls.Label();

#line default
#line hidden
this.Label2 = __ctrl;

#line 46 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "Label2";

#line default
#line hidden

#line 46 "D:\inetpub\websites\CompAssetTrack\email.aspx "
((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAt tribute("Style", "left: 100px; position: absolute; top: 125px");

#line default
#line hidden
System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));

#line 46 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("To:\r\n "));

#line default
#line hidden
return __ctrl;
}

private System.Web.UI.Control __BuildControltxtTo() {
System.Web.UI.WebControls.TextBox __ctrl;

#line 48 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.WebControls.TextBox();

#line default
#line hidden
this.txtTo = __ctrl;

#line 48 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.CssClass = "ToLower";

#line default
#line hidden

#line 48 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "txtTo";

#line default
#line hidden

#line 48 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ReadOnly = true;

#line default
#line hidden

#line 48 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.Text = "daniel.bibaud@dol.state.nj.us";

#line default
#line hidden

#line 48 "D:\inetpub\websites\CompAssetTrack\email.aspx "
((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAt tribute("Style", "left: 200px; position: absolute; top: 125px");

#line default
#line hidden
return __ctrl;
}

private System.Web.UI.Control __BuildControltxtSubject() {
System.Web.UI.WebControls.TextBox __ctrl;

#line 50 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.WebControls.TextBox();

#line default
#line hidden
this.txtSubject = __ctrl;

#line 50 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.AutoPostBack = true;

#line default
#line hidden

#line 50 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "txtSubject";

#line default
#line hidden

#line 50 "D:\inetpub\websites\CompAssetTrack\email.aspx "
((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAt tribute("style", "left: 200px; position: absolute; top: 150px");

#line default
#line hidden

#line 50 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ReadOnly = true;

#line default
#line hidden
return __ctrl;
}

private System.Web.UI.Control __BuildControlLabel3() {
System.Web.UI.WebControls.Label __ctrl;

#line 52 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.WebControls.Label();

#line default
#line hidden
this.Label3 = __ctrl;

#line 52 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "Label3";

#line default
#line hidden

#line 52 "D:\inetpub\websites\CompAssetTrack\email.aspx "
((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAt tribute("Style", "left: 100px; position: absolute; top: 150px");

#line default
#line hidden
System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));

#line 52 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("Subject"));

#line default
#line hidden
return __ctrl;
}

private System.Web.UI.Control __BuildControlbtnSend() {
System.Web.UI.WebControls.Button __ctrl;

#line 54 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.WebControls.Button();

#line default
#line hidden
this.btnSend = __ctrl;

#line 54 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "btnSend";

#line default
#line hidden

#line 54 "D:\inetpub\websites\CompAssetTrack\email.aspx "
((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAt tribute("Style", "left: 200px; position: absolute; top: 200px");

#line default
#line hidden

#line 54 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.Text = "Send";

#line default
#line hidden

#line 54 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.Width = System.Web.UI.WebControls.Unit.Parse("50px", System.Globalization.CultureInfo.InvariantCulture) ;

#line default
#line hidden

#line 54 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.Click += new System.EventHandler(this.btnSend_Click);

#line default
#line hidden
return __ctrl;
}

private System.Web.UI.Control __BuildControllblStatus() {
System.Web.UI.WebControls.Label __ctrl;

#line 56 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.WebControls.Label();

#line default
#line hidden
this.lblStatus = __ctrl;

#line 56 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "lblStatus";

#line default
#line hidden

#line 56 "D:\inetpub\websites\CompAssetTrack\email.aspx "
((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAt tribute("Style", "left: 250px; position: absolute; top: 200px");

#line default
#line hidden
return __ctrl;
}

private System.Web.UI.Control __BuildControlMailForm() {
System.Web.UI.HtmlControls.HtmlForm __ctrl;

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl = new System.Web.UI.HtmlControls.HtmlForm();

#line default
#line hidden
this.MailForm = __ctrl;

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.ID = "MailForm";

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__ctrl.Method = "post";

#line default
#line hidden
System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControlLabel1();

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.Label1);

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControltxtFrom();

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.txtFrom);

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControlLabel2();

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.Label2);

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControltxtTo();

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.txtTo);

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControltxtSubject();

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.txtSubject);

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControlLabel3();

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.Label3);

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControlbtnSend();

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.btnSend);

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControllblStatus();

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.lblStatus);

#line default
#line hidden

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));

#line default
#line hidden
return __ctrl;
}

private void __BuildControlTree(System.Web.UI.Control __ctrl) {

#line 1 "D:\inetpub\websites\CompAssetTrack\email.aspx "
this.__BuildControlMailForm();

#line default
#line hidden
System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));

#line 1 "D:\inetpub\websites\CompAssetTrack\email.aspx "
__parser.AddParsedSubObject(this.MailForm);

#line default
#line hidden
__ctrl.SetRenderMethodDelegate(new System.Web.UI.RenderMethod(this.__Render__control1 ));
}

private void __Render__control1(System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control parameterContainer) {

#line 3 "D:\inetpub\websites\CompAssetTrack\email.aspx "

public string mys="";
mys=Request.ServerVariables["AUTH_USER"].ToString();
int n=mys.IndexOf("\\");
if (n!=-1)
{
mys=mys.Substring(n+1);
}
txtSubject.Text = mys;


#line default
#line hidden
this.WriteUTF8ResourceString(__output, 0, 322, true);

#line 41 "D:\inetpub\websites\CompAssetTrack\email.aspx "
parameterContainer.Controls[0].RenderControl(__output);

#line default
#line hidden
__output.Write("\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n</bo" +
"dy>\r\n</html>");
}

protected override void FrameworkInitialize() {
SetStringResourcePointer(ASP.Email_aspx.__stringRe source, 322);
this.__BuildControlTree(this);
this.FileDependencies = ASP.Email_aspx.__fileDependencies;
this.ContentType = "text/html";
this.ResponseEncoding = "iso-8859-1";
this.EnableViewStateMac = true;
this.Request.ValidateInput();
}

public override int GetTypeHashCode() {
return -1402166329;
}
}
}
Aug 17 '07 #8
stilmas
20 New Member
If my problem is in that .cs file then I must have a compiler problem since that code is automatically generated by .NET?? I did read that there are various hotfixes for compiling issues, I'm going to check that out. The code on this page can't be changed because it will get regenerated with the same error. Anyone else run into this?
Aug 17 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dotnetified | last post by:
Reposting after about 2 weeks of no response ... thanks if you can help... ---------------------------------------------------------------------------- -------------- To anyone who thinks they...
8
by: hb | last post by:
Hi, I need to declare a variable who's value can be preserve through the same ASP.Net page. I tried the following code, only the static variable s2 keeps its value=22 after lnk1_Click followed...
9
by: Shapper | last post by:
Hello, I am declaring a variable in my aspx.vb code as follows: Public Class catalogue Public productid As String Private Sub Page_Load ... I have an image button where I call the...
2
by: Corey B | last post by:
Is there a way for an instance of a custom class to access an ASPX page level variable? I know that I can access a Session variable from within a class using the following code: myClassVar =...
1
by: Gary Wessle | last post by:
Hi can I declare an ofstream in a class declaration in .h file and define it inside a method in the .cpp file? if so, what does the syntax of defining it looks like. I tried .... ofstream...
5
by: Cmtk Software | last post by:
The following code: public __gc class MyClass { public: void MyFunc (int __gc* number); }; Generates the following metadata for C# when compiled in VC 2005 with the /clr:oldsyntax switch...
26
by: Cliff Williams | last post by:
Can someone explain the pros/cons of these different ways of creating a class? // 1 function myclass() { this.foo1 = function() {...} } // 2a
7
by: Max | last post by:
Please somebody can shed a light... How can I have a variable visible and modifiable, inside one and only webform? I mean , I d like to see that variable from all the Sub of that webform code,...
11
by: whirlwindkevin | last post by:
I saw a program source code in which a variable is defined in a header file and that header file is included in 2 different C files.When i compile and link the files no error is being thrown.How is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.