Showing posts with label created. Show all posts
Showing posts with label created. Show all posts

Thursday, March 29, 2012

Please correct my @ Page directive for codebehind asp.net

I have a vbproject called myvbproject, in that i created a class called class1.

I build the solution to it, and it created the class1.dll in its bin directory.

Now, i want to use that class1.dll in my asp.net projects web form.

I am writing the following in my asp.net webform1: It is not working: Can you please correct my @dotnet.itags.org.page directive code.

<%@dotnet.itags.org. Page language="VB" Codebehind="class1" AutoEventWireup="false" Inherits="myvbproject.class1" %

Thank you very much for the help.To use class1 from compiled assembly class1.ddl you should not alter your page directive. Add reference to class1.dll, declare variable and use it.

Monday, March 26, 2012

Please guys, help me out !

Guys,
I have a very very basic user control which is
txtEmail
txtPassword
btnLogIn
I'm working on flowlayout mode...i created a complete web page...it collects some data from the user...and finally added aSubmit button.. the page is working perfect...when u click Sumit...as we know..the page will be sumitted...then...i added my very very basic user control at the left of the page ( tables and cells and that stuff) ...run the page...click the Sumbit button (that was working one minute ago) and nothig happens...i tried EVERY THING...and nothing happened...i dont know why the button click event is not being fired !!!
everything is ok...the event handler exists...it is wired wiht on click event in intitalize component function...everything everything is Ok
I'm using VS.NET 2003 (ASP.NET 1.1)
Please guys help me asap
Thanks in advancecan you post some code please...
HTML and code behind
Thanks
Leketje
Please check whether you have handles the IsPostBack event.
The User Control
================
HTML
(%@. Control Language="c#" AutoEventWireup="false" Codebehind="Search.ascx.cs" Inherits="Controls.SearchbyName" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %)
(HTML)
(HEAD)
(LINK media="all" href="http://links.10026.com/?link=Controls\ControlsStyles.css" type="text/css" rel="stylesheet")
(/HEAD)
(body)
(form name="frmMain")
(table cellSpacing="0" cellPadding="0")
(tr)
(td)
(TABLE cellSpacing="0" cellPadding="0")
(TR)
(TD style="PADDING-LEFT: 4px" vAlign="top")
(asp:TextBox id="txtEmailAddress" Runat="server" Width="120px" CssClass="SRTextBox")(/asp:TextBox) (/TD)
(/TR)
(tr)
(TD style="PADDING-LEFT: 4px" vAlign="top" align="left")
(asp:TextBox id="txtPassword" Runat="server" Width="60px" CssClass="SRTextBox" TextMode="Password")(/asp:TextBox)
(/TD)
(/TR)
(TR)
(TD class="LeftPanelButton" style="PADDING-LEFT: 38px; PADDING-BOTTOM: 5px" align="right" colSpan="2")
(asp:Button id="btnLogin" Runat="server" Text="Login")(/asp:Button)
(/TD)
(/TR)
(/TABLE)
(/td)
(/tr)
(/table)
(/form)
(/body)
(/HTML)

Code Behind

namespaceMyNameSpace.Controls

{

using System;

using System.Data;

using System.Drawing;

using System.Web;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;

///<summary>

/// Summary description for SearchbyName.

///</summary>

publicclass SearchbyName : System.Web.UI.UserControl

{

protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;

protected System.Web.UI.WebControls.TextBox txtPassword;

protected System.Web.UI.WebControls.Button btnLogin;

protected System.Web.UI.WebControls.TextBox txtEmailAddress;

protected System.Web.UI.WebControls.TextBox txtName;

privatevoid Page_Load(object sender, System.EventArgs e)

{

if(!IsPostBack)

{

}

}

#region Web Form Designer generated code

overrideprotectedvoid OnInit(EventArgs e)

{

//

// CODEGEN: This call is required by the ASP.NET Web Form Designer.

//

InitializeComponent();

base.OnInit(e);

}

///<summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

///</summary>

privatevoid InitializeComponent()

{

this.btnLogin.Click +=new System.EventHandler(this.btnLogin_Click);

this.Load +=new System.EventHandler(this.Page_Load);

}

#endregion

privatevoid btnLogin_Click(object sender, System.EventArgs e)

{

Response.Write("Help me please");

}

}

}

The web page
===========
HTML
(%@. Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication2.WebForm1" %)
(%@. Register TagPrefix="uc1" TagName="Search" src="http://pics.10026.com/?src=Search.ascx" %)
(!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" )
(HTML)
(HEAD)
(title)WebForm1(/title)
(meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1")
(meta name="CODE_LANGUAGE" Content="C#")
(meta name="vs_defaultClientScript" content="JavaScript")
(meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5")
(/HEAD)
(body)
(form id="Form1" method="post" runat="server")
(table)
(tr)
(td)
(uc1:Search id="Search1" runat="server")(/uc1:Search)
(/td)
(/tr)
(tr)
(td)
(asp:Button id="Button1" runat="server" Text="Button")(/asp:Button)
(/td)
(/tr)
(/table)
(/form)
(/body)
(/HTML)

Code Behind

using System;

using System.Collections;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Web;

using System.Web.SessionState;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;

namespace WebApplication2

{

///<summary>

/// Summary description for WebForm1.

///</summary>

publicclass WebForm1 : System.Web.UI.Page

{

protected System.Web.UI.WebControls.Button Button1;

privatevoid Page_Load(object sender, System.EventArgs e)

{

// Put user code to initialize the page here

}

#region Web Form Designer generated code

overrideprotectedvoid OnInit(EventArgs e)

{

//

// CODEGEN: This call is required by the ASP.NET Web Form Designer.

//

InitializeComponent();

base.OnInit(e);

}

///<summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

///</summary>

privatevoid InitializeComponent()

{

this.Button1.Click +=new System.EventHandler(this.Button1_Click);

this.Load +=new System.EventHandler(this.Page_Load);

}

#endregion

privatevoid Button1_Click(object sender, System.EventArgs e)

{

}

}

}

================
I'm sorry for that HTML Crap...it seems i cant use the editor here !!!
Thanks in advance


Deepasmi, thanks...but the point is ...there is no post back !!!
i'm not waiting the button to do something and it didnt...no...the event is not fired at all !!
thanks

The reason why your button doesn't work is because you are including the <html> tags in your user control again...
The main idea of a user control is to create a HTML template with code behind to be included in the main page which already contains the <HTML><HEAD><BODY> and <FORM> tags.
Remove those tags in your user control and your button should work again.
Good Luck
Leketje


Thanks...thanks ...thanks :D:D:D...thaks Leketje...i passed more than 10 hours trying everything...again..thanks :)

Please help

Hello I have created a login page using the login page form. After a user logs in I re-direct the user to the protected page by using the following

FormsAuthentication.RedirectFromLoginPage(UserName.selecteditem.value, true). The user is then redirected to a new page default.aspx. On this page I want unique information related to this users username. How do I do this ? EG it should display only accounts related to this user from the accounts database. How do I pass the username from the Login page to this page? or should I get it from the cookies? If so how?Just need to know how to get the login name from Login.aspx to default.aspx

Thanks

GrantHave you treid giving
Response.Write(user.Identity.Name)?
Test.
Hi!

I would like to know where should one give the Response.Write(user.Identity.Name)?

in the login.aspx or default.aspx file. As it does not work for me both ways.

Thanks
Do you have

 <identity impersonate="true" />
line in your web.config
try giving this and check if you get user name
Hi Sushila,

Thanks for your quick response. I was unable to execute the program and get a runtime error. This stops me from doing anything.

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File --
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration
Your help will be appreciated.

Thanks

Sukumar
Are you enclosing this tag within


<system.web>
.....
<identity impersonate="true" />
</system.web>

Even without giving this tag <identity impersonate="true" /> User.Identity.Name works

SuKumar : can u paste the error that is shows when u give
Response.Write(User.Identity.Name)

Please Help

Hi,
I have created one webform1.aspx page on local server (c:\inetpub\wwwroot\mysite\prabodh). it executes without any error. when I upload prabodh folder on the main server in (E:\mysite\prabodh) and i have set the properties for this folder.
Now I am getting the following error when i am trying to access the file from my remote machine.
the error is :
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File --
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File --
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration
when i am trying to access same file from the main server then .
the error is :

Server Error in '/prabodh' Application.
------------------------

Server cannot access application directory 'E:\web\mysite\prabodh\'. The directory does not exist or is not accessible because of security settings.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access application directory 'E:\web\mysite\prabodh\'. The directory does not exist or is not accessible because of security settings.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Server cannot access application directory 'E:\web\mysite\prabodh\'. The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +965
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128

------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

dotnet framwork is installed on the server and web.config file
is also there in the root folder of the application.

And I Gave the local user ASPNET read/excecute permissions to your application directory (E:\web\mysite\prabodh\).

I also made sure that the directory is defined as an application in IIS

can any one tell me why i am getting this message.
Thnx in advance.
Jean PaulAre you sure that you're running with the ASPNET user?
no iam not sure

Saturday, March 24, 2012

Please HELP ! Compiler Error Message: BC30466: Namespace or type HelloWorldobj for the Imp

Hi, i have created a class called "HelloWorldobj.dll". Yes, i compiled it with VBC.exe. And, no compilation error shown.

I have read an article on teaching people to run custome namespace/classes. It said that we can just create a folder called "bin" inside the web application folder, and put all the classes / calss file inside this "bin" folder.

Then, inside our code, what we need to do is just :
<%@dotnet.itags.org. Import Namespace="HelloWorldobj" %>
...
...
But, it can't work here!!! why? Error msg :

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30466: Namespace or type 'HelloWorldobj' for the Imports 'HelloWorldobj' cannot be found.

Source Error:

Line 13:
Line 14: Imports ASP
Line 15: Imports HelloWorldobj
Line 16: Imports Microsoft.VisualBasic
Line 17: Imports System
Source File: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\hotelex\0fa6dfdb\85a29584\dehxro7g.0.vb Line: 15

I have tried it with another dll "Microsoft.Data.Odbc". it works!
<%@dotnet.itags.org. Import Namespace = "System.Data" %>
<%@dotnet.itags.org. Import Namespace = "Microsoft.Data.Odbc" %>
...
...

Really don't understand..

Can anyone teach me how to apply own class in ASP.NET?
What should i do or what should i set?Did you put the DLL in the application's root /bin folder?
Yes, i did. I have created a folder called "bin" inside my application folder.

Or, do u mind to tell me the step of start a new application? such as ,... what setting should do,.. where to configure,.. how,..
and especially those customer class file...

Or anyone can help?

Please help ?

Hi,

We have complete ASP.net application in our local web server which was created on vb.net.

Now we want to make this application work in different server , basically hand over this application to another company ?

I am planning to ZIP the folder where my application contains, which includes BIN folder also. And also WEB.CONFIG file.

So, my question is , what are the things i should ask them, whether they have all these ??

As of i know, they should have W2K / XP, IIS , .NET framework .

Please advice me !

Thanks,

NicolRather than thinking along the lines of a "hand over", you might be better considering this a "deployment" of your ASP.NET application.

With that in mind,this MSDN article walks through the deployment of an ASP.NET app to a new server.

This MSDN article talks about deploying and distributing an application.

From a business point of view, you might want to refrain from saying to either your client or the other development company, "This is what you need." If you are wrong (and there are LOTS of things to consider), then they might come back to you and argue, "Yousaid that this is all we need, but it's not!"

You might be better served listing how you developed your application (eg, framework version, language, IIS version and configuration, development environment, database, commercial or free components you used ... that sort of thing). You can tell them, quite honestly, that there is no single "right configuration or environment" they need. Just illustrate what setup *you* used and state, quite reasonably, that you cannot guarantee it will work automatically on any other setup.

As to what you put on the CD, give them everything except any components you purchased. Give them one folder called "WORKING" with all your .vb components before compilation and unflattened photoshop files and so on, and another folder called "AS DEPLOYED" that you simply copy from your Inetpub/wwwroot folder (or wherever the real directory is).

One thing to consider, and I wouldn't presume to advise you on this ... but what about the rights to use the code? If you developed, say, an email component, are you able to use the same code for your next application? Can you use code for "common components" that are not "application-specific"?

Some things to think about, anyway ...

Wednesday, March 21, 2012

Please Help me

I am getting the following error.
I Created a Web Project
then added upload.aspx
Then I got this error.
I keep aspx controls i am geeting this error.
I have xp pro with IIS Installed
then i installed .net
then i repaired IIS.
Again i installed FrameWork 1.1
I dont know what was the problem.
Please help me.
Thanks

Server Error in '/Inguva' Application.
-----------------------
--

Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'upload'.

Source Error:

Line 1: <%@dotnet.itags.org. Page Language="vb" AutoEventWireup="true"
Codebehind="upload.aspx.vb" Inherits="upload" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML
Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1

-----------------------
--

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573You need to upload the DLL that was compiled when you compiled your project.
Your codebehind gets compiled into a DLL.

"Murali Inguva" <minguva@.hotmail.com> wrote in message
news:uqOxcihSDHA.2152@.TK2MSFTNGP12.phx.gbl...
> I am getting the following error.
> I Created a Web Project
> then added upload.aspx
> Then I got this error.
> I keep aspx controls i am geeting this error.
> I have xp pro with IIS Installed
> then i installed .net
> then i repaired IIS.
> Again i installed FrameWork 1.1
> I dont know what was the problem.
> Please help me.
> Thanks
> Server Error in '/Inguva' Application.
> -----------------------
--
> --
> Parser Error
> Description: An error occurred during the parsing of a resource required
to
> service this request. Please review the following specific parse error
> details and modify your source file appropriately.
> Parser Error Message: Could not load type 'upload'.
> Source Error:
>
> Line 1: <%@. Page Language="vb" AutoEventWireup="true"
> Codebehind="upload.aspx.vb" Inherits="upload" %>
> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> Line 3: <HTML>
>
> Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1
>
> -----------------------
--
> --
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
> Version:1.1.4322.573
You need to upload the DLL that was compiled when you compiled your project.
Your codebehind gets compiled into a DLL.

"Murali Inguva" <minguva@.hotmail.com> wrote in message
news:uqOxcihSDHA.2152@.TK2MSFTNGP12.phx.gbl...
> I am getting the following error.
> I Created a Web Project
> then added upload.aspx
> Then I got this error.
> I keep aspx controls i am geeting this error.
> I have xp pro with IIS Installed
> then i installed .net
> then i repaired IIS.
> Again i installed FrameWork 1.1
> I dont know what was the problem.
> Please help me.
> Thanks
> Server Error in '/Inguva' Application.
> -----------------------
--
> --
> Parser Error
> Description: An error occurred during the parsing of a resource required
to
> service this request. Please review the following specific parse error
> details and modify your source file appropriately.
> Parser Error Message: Could not load type 'upload'.
> Source Error:
>
> Line 1: <%@. Page Language="vb" AutoEventWireup="true"
> Codebehind="upload.aspx.vb" Inherits="upload" %>
> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> Line 3: <HTML>
>
> Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1
>
> -----------------------
--
> --
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
> Version:1.1.4322.573
Where i have to upload?
Right now my code in default path

C:\Inetpub\wwwroot\Inguva
and my dlls are in
C:\Inetpub\wwwroot\Inguva\bin\debug

Is there any specified place i have to upload my dlls?

Thank you
for your response
"Marina" <zlatkinam@.nospam.hotmail.com> wrote in message
news:O8cfc4hSDHA.2248@.TK2MSFTNGP11.phx.gbl...
> You need to upload the DLL that was compiled when you compiled your
project.
> Your codebehind gets compiled into a DLL.
> "Murali Inguva" <minguva@.hotmail.com> wrote in message
> news:uqOxcihSDHA.2152@.TK2MSFTNGP12.phx.gbl...
> > I am getting the following error.
> > I Created a Web Project
> > then added upload.aspx
> > Then I got this error.
> > I keep aspx controls i am geeting this error.
> > I have xp pro with IIS Installed
> > then i installed .net
> > then i repaired IIS.
> > Again i installed FrameWork 1.1
> > I dont know what was the problem.
> > Please help me.
> > Thanks
> > Server Error in '/Inguva' Application.
> -----------------------
> --
> > --
> > Parser Error
> > Description: An error occurred during the parsing of a resource required
> to
> > service this request. Please review the following specific parse error
> > details and modify your source file appropriately.
> > Parser Error Message: Could not load type 'upload'.
> > Source Error:
> > Line 1: <%@. Page Language="vb" AutoEventWireup="true"
> > Codebehind="upload.aspx.vb" Inherits="upload" %>
> > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > Line 3: <HTML>
> > Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1
> -----------------------
> --
> > --
> > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> ASP.NET
> > Version:1.1.4322.573
Where i have to upload?
Right now my code in default path

C:\Inetpub\wwwroot\Inguva
and my dlls are in
C:\Inetpub\wwwroot\Inguva\bin\debug

Is there any specified place i have to upload my dlls?

Thank you
for your response
"Marina" <zlatkinam@.nospam.hotmail.com> wrote in message
news:O8cfc4hSDHA.2248@.TK2MSFTNGP11.phx.gbl...
> You need to upload the DLL that was compiled when you compiled your
project.
> Your codebehind gets compiled into a DLL.
> "Murali Inguva" <minguva@.hotmail.com> wrote in message
> news:uqOxcihSDHA.2152@.TK2MSFTNGP12.phx.gbl...
> > I am getting the following error.
> > I Created a Web Project
> > then added upload.aspx
> > Then I got this error.
> > I keep aspx controls i am geeting this error.
> > I have xp pro with IIS Installed
> > then i installed .net
> > then i repaired IIS.
> > Again i installed FrameWork 1.1
> > I dont know what was the problem.
> > Please help me.
> > Thanks
> > Server Error in '/Inguva' Application.
> -----------------------
> --
> > --
> > Parser Error
> > Description: An error occurred during the parsing of a resource required
> to
> > service this request. Please review the following specific parse error
> > details and modify your source file appropriately.
> > Parser Error Message: Could not load type 'upload'.
> > Source Error:
> > Line 1: <%@. Page Language="vb" AutoEventWireup="true"
> > Codebehind="upload.aspx.vb" Inherits="upload" %>
> > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > Line 3: <HTML>
> > Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1
> -----------------------
> --
> > --
> > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> ASP.NET
> > Version:1.1.4322.573
They should be in the bin directory, not the bin/debug directory.

"Murali Inguva" <minguva@.hotmail.com> wrote in message
news:OFd0v8hSDHA.2092@.TK2MSFTNGP10.phx.gbl...
> Where i have to upload?
> Right now my code in default path
> C:\Inetpub\wwwroot\Inguva
> and my dlls are in
> C:\Inetpub\wwwroot\Inguva\bin\debug
> Is there any specified place i have to upload my dlls?
> Thank you
> for your response
> "Marina" <zlatkinam@.nospam.hotmail.com> wrote in message
> news:O8cfc4hSDHA.2248@.TK2MSFTNGP11.phx.gbl...
> > You need to upload the DLL that was compiled when you compiled your
> project.
> > Your codebehind gets compiled into a DLL.
> > "Murali Inguva" <minguva@.hotmail.com> wrote in message
> > news:uqOxcihSDHA.2152@.TK2MSFTNGP12.phx.gbl...
> > > I am getting the following error.
> > > I Created a Web Project
> > > then added upload.aspx
> > > Then I got this error.
> > > I keep aspx controls i am geeting this error.
> > > I have xp pro with IIS Installed
> > > then i installed .net
> > > then i repaired IIS.
> > > Again i installed FrameWork 1.1
> > > I dont know what was the problem.
> > > Please help me.
> > > Thanks
> > > > Server Error in '/Inguva' Application.
> -----------------------
> > --
> > > --
> > > > Parser Error
> > > Description: An error occurred during the parsing of a resource
required
> > to
> > > service this request. Please review the following specific parse error
> > > details and modify your source file appropriately.
> > > > Parser Error Message: Could not load type 'upload'.
> > > > Source Error:
> > > > > Line 1: <%@. Page Language="vb" AutoEventWireup="true"
> > > Codebehind="upload.aspx.vb" Inherits="upload" %>
> > > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
> > > Line 3: <HTML>
> > > > > Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1
> > > > -----------------------
> > --
> > > --
> > > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> > ASP.NET
> > > Version:1.1.4322.573
> >
They should be in the bin directory, not the bin/debug directory.

"Murali Inguva" <minguva@.hotmail.com> wrote in message
news:OFd0v8hSDHA.2092@.TK2MSFTNGP10.phx.gbl...
> Where i have to upload?
> Right now my code in default path
> C:\Inetpub\wwwroot\Inguva
> and my dlls are in
> C:\Inetpub\wwwroot\Inguva\bin\debug
> Is there any specified place i have to upload my dlls?
> Thank you
> for your response
> "Marina" <zlatkinam@.nospam.hotmail.com> wrote in message
> news:O8cfc4hSDHA.2248@.TK2MSFTNGP11.phx.gbl...
> > You need to upload the DLL that was compiled when you compiled your
> project.
> > Your codebehind gets compiled into a DLL.
> > "Murali Inguva" <minguva@.hotmail.com> wrote in message
> > news:uqOxcihSDHA.2152@.TK2MSFTNGP12.phx.gbl...
> > > I am getting the following error.
> > > I Created a Web Project
> > > then added upload.aspx
> > > Then I got this error.
> > > I keep aspx controls i am geeting this error.
> > > I have xp pro with IIS Installed
> > > then i installed .net
> > > then i repaired IIS.
> > > Again i installed FrameWork 1.1
> > > I dont know what was the problem.
> > > Please help me.
> > > Thanks
> > > > Server Error in '/Inguva' Application.
> -----------------------
> > --
> > > --
> > > > Parser Error
> > > Description: An error occurred during the parsing of a resource
required
> > to
> > > service this request. Please review the following specific parse error
> > > details and modify your source file appropriately.
> > > > Parser Error Message: Could not load type 'upload'.
> > > > Source Error:
> > > > > Line 1: <%@. Page Language="vb" AutoEventWireup="true"
> > > Codebehind="upload.aspx.vb" Inherits="upload" %>
> > > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
> > > Line 3: <HTML>
> > > > > Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1
> > > > -----------------------
> > --
> > > --
> > > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> > ASP.NET
> > > Version:1.1.4322.573
> >
Perfect... It is working
Thank You very much for your help .
"Marina" <zlatkinam@.nospam.hotmail.com> wrote in message
news:uuH4j$hSDHA.2188@.TK2MSFTNGP10.phx.gbl...
> They should be in the bin directory, not the bin/debug directory.
> "Murali Inguva" <minguva@.hotmail.com> wrote in message
> news:OFd0v8hSDHA.2092@.TK2MSFTNGP10.phx.gbl...
> > Where i have to upload?
> > Right now my code in default path
> > C:\Inetpub\wwwroot\Inguva
> > and my dlls are in
> > C:\Inetpub\wwwroot\Inguva\bin\debug
> > Is there any specified place i have to upload my dlls?
> > Thank you
> > for your response
> > "Marina" <zlatkinam@.nospam.hotmail.com> wrote in message
> > news:O8cfc4hSDHA.2248@.TK2MSFTNGP11.phx.gbl...
> > > You need to upload the DLL that was compiled when you compiled your
> > project.
> > > Your codebehind gets compiled into a DLL.
> > > > "Murali Inguva" <minguva@.hotmail.com> wrote in message
> > > news:uqOxcihSDHA.2152@.TK2MSFTNGP12.phx.gbl...
> > > > I am getting the following error.
> > > > I Created a Web Project
> > > > then added upload.aspx
> > > > Then I got this error.
> > > > I keep aspx controls i am geeting this error.
> > > > I have xp pro with IIS Installed
> > > > then i installed .net
> > > > then i repaired IIS.
> > > > Again i installed FrameWork 1.1
> > > > I dont know what was the problem.
> > > > Please help me.
> > > > Thanks
> > > > > > Server Error in '/Inguva' Application.
> > -----------------------
> > > --
> > > > --
> > > > > > Parser Error
> > > > Description: An error occurred during the parsing of a resource
> required
> > > to
> > > > service this request. Please review the following specific parse
error
> > > > details and modify your source file appropriately.
> > > > > > Parser Error Message: Could not load type 'upload'.
> > > > > > Source Error:
> > > > > > > > Line 1: <%@. Page Language="vb" AutoEventWireup="true"
> > > > Codebehind="upload.aspx.vb" Inherits="upload" %>
> > > > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN">
> > > > Line 3: <HTML>
> > > > > > > > Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1
> > > > > > > > -----------------------
> > > --
> > > > --
> > > > > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> > > ASP.NET
> > > > Version:1.1.4322.573
> > > > > >
Perfect... It is working
Thank You very much for your help .
"Marina" <zlatkinam@.nospam.hotmail.com> wrote in message
news:uuH4j$hSDHA.2188@.TK2MSFTNGP10.phx.gbl...
> They should be in the bin directory, not the bin/debug directory.
> "Murali Inguva" <minguva@.hotmail.com> wrote in message
> news:OFd0v8hSDHA.2092@.TK2MSFTNGP10.phx.gbl...
> > Where i have to upload?
> > Right now my code in default path
> > C:\Inetpub\wwwroot\Inguva
> > and my dlls are in
> > C:\Inetpub\wwwroot\Inguva\bin\debug
> > Is there any specified place i have to upload my dlls?
> > Thank you
> > for your response
> > "Marina" <zlatkinam@.nospam.hotmail.com> wrote in message
> > news:O8cfc4hSDHA.2248@.TK2MSFTNGP11.phx.gbl...
> > > You need to upload the DLL that was compiled when you compiled your
> > project.
> > > Your codebehind gets compiled into a DLL.
> > > > "Murali Inguva" <minguva@.hotmail.com> wrote in message
> > > news:uqOxcihSDHA.2152@.TK2MSFTNGP12.phx.gbl...
> > > > I am getting the following error.
> > > > I Created a Web Project
> > > > then added upload.aspx
> > > > Then I got this error.
> > > > I keep aspx controls i am geeting this error.
> > > > I have xp pro with IIS Installed
> > > > then i installed .net
> > > > then i repaired IIS.
> > > > Again i installed FrameWork 1.1
> > > > I dont know what was the problem.
> > > > Please help me.
> > > > Thanks
> > > > > > Server Error in '/Inguva' Application.
> > -----------------------
> > > --
> > > > --
> > > > > > Parser Error
> > > > Description: An error occurred during the parsing of a resource
> required
> > > to
> > > > service this request. Please review the following specific parse
error
> > > > details and modify your source file appropriately.
> > > > > > Parser Error Message: Could not load type 'upload'.
> > > > > > Source Error:
> > > > > > > > Line 1: <%@. Page Language="vb" AutoEventWireup="true"
> > > > Codebehind="upload.aspx.vb" Inherits="upload" %>
> > > > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN">
> > > > Line 3: <HTML>
> > > > > > > > Source File: c:\inetpub\wwwroot\Inguva\upload.aspx Line: 1
> > > > > > > > -----------------------
> > > --
> > > > --
> > > > > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> > > ASP.NET
> > > > Version:1.1.4322.573
> > > > > >

Please help me create a simple page

Today i was creating my first page in asp.net and the very soon i realized that
microsoft products were not trustworthy i created a simple web form
with two text boxes and two labels/one label but when i created the solution
(build solution) see what is the IE displaying me in second screen shot

designed a simple login form

http://img171.imageshack.us/img171/6276/form1ts2.jpg

this is what it gave me as an output no web tools being displayed only one label i cant see the text box or any submit button i have seen the html code thats generated and its fine

http://img105.imageshack.us/img105/65/iepageid3.jpg

I am using Visual studio 2002 version and IIS v 5.1 no antivirus is running and
default website has been granted permission

can anyone please please help me out :) thankstry recompiling your project and then refreshing IE after you do so.

If there is still no change, then I suggest you uninstall zone alarm.

I had an issue with VS 2003 where zone alarm broke asp.net
Disabling it did't fix my issue, but when I fully uninstalled it, asp.net was working again.
thanks 4 the help buddy
no success now i need to reinstall zone alarm any more ideas do you think
i need to reinstall visual studio all over again because all other .aspx files i downloaded from net are running fine on IIS so IIS is problem free

ok its 1:09 night and i need a nap when i wake up I hope some good
person will surely help me out thanks

ASP.net took away this night :cry:
Well, the problem could be anything!!

Check in the HTML part that the <form> tag is present. Or check the visibility properties of the non-rendered controls.

Or just upload the project!!
you may also want to look into upgrading to using the 2.0 framework.

You can get a Visual Studio Web Developer Express for free here
http://msdn.microsoft.com/vstudio/express/vwd/

and this is very very similar to ASP.NET in VS 2002, except they improved a LOT of the things that were problems in the previous versions..

Visual Studio .NET 2002 was almost more of a beta for .NET than a full on programming language, most people moved quickly to 1.1 (2003) when that came out, and then to 2.0 (2005)

The fact that Microsoft gives you the express tools for free, makes it easier to upgrade to the newer version, because you don't have to shell out money for a good IDE.
thanks guys i think i need to reinstall the asp.net now but the problem with 2005 express version is that there is no

sqlconnection and oledbconnection object tool in the data tab of the toolbox
so i was not using it :wave:
http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx

Run the aspnet_regiis tool. Your files don't seem to have 'registered' properly.

aspnet_regiis /i