Showing posts with label controls. Show all posts
Showing posts with label controls. Show all posts

Saturday, March 24, 2012

please help .. with Microsoft webcontrols ..

I downloaded the IE Web controls package and as instructed ran the Build file which does create the build folder with a subfolder called runtime but I do not see any Microsoft.Web.UI.WebControls.dll being created anywhere in this folder. What is going on ?Open up your build.bat with notepad and make sure the path to
csc.exe is valid. see below example.

c:\windows\microsoft.net\framework\v1.1.4322\csc.exe

Also run build.bat from the DOS shell not the Run menu so you can see what is happening.
I downloaded the IE Web controls package

For the love of our lord Jesus Christ, why?

and as instructed ran the Build file which does create the build folder with a subfolder called runtime but I do not see any Microsoft.Web.UI.WebControls.dll being created anywhere in this folder. What is going on ?

Are you building through commandline, and when building, did you resolve the first 'error'? (THis might be entirely based on experience, but there is usually one error to resolve when you try to build it the first time
hey what do you have against the iewebcontrols... the tabstrip + multipage works ok. Do you know of any other tabbing control that's free that's better. It would make my life a lot easier.
Free? No.

Better? All of them.

The IE Web Controls are the equivalent of Windows Millennium. It works, but it really isn't that good. If I had been a little more dishonest, I could have given you my version of the same controls I wrote for my previous company... those controls are probably on sale somewhere right now. :(

PLEASE HELP = odd TextChanged behavior

I have 2 TextBox controls on a webform. Both perform a procedure when the
TextChanged event is fired. The page should reload and display a new value
in another textbox. Both are WebControls.

The first Textbox performs the appropriate action.

The SECOND does not fire TextChanged until AFTER I click the Submit button.
It does not fire when I change the text and lose the control focus. Both
code blocks for the event handlers are IDENTICAL.

Anyone know why?Just to make sure:

have you set the autopostback flag to true?

Seb.
Just to make sure:

have you set the autopostback flag to true?

Seb.
heh... *sheepish grin*

"Seb" <anonymous@.discussions.microsoft.com> wrote in message
news:073501c39869$48c82490$a501280a@.phx.gbl...
> Just to make sure:
> have you set the autopostback flag to true?
> Seb.
heh... *sheepish grin*

"Seb" <anonymous@.discussions.microsoft.com> wrote in message
news:073501c39869$48c82490$a501280a@.phx.gbl...
> Just to make sure:
> have you set the autopostback flag to true?
> Seb.

Please help about Javascript for Asp.net Button

I have to validate so many controls at a time.I dont know what to Write in ControltoValidateProperty property in this case.So I went for writing Javascript function.

I wrote a function in javascript called "validateform" which checks all controls and validates the form.

Now when User clicks Submit Button I want to use this function.
The Problem is When i included that code in Button.attributes.add(...),Its giving me errormessages but also executing the server side code for button.

please help me

thxHow are you calling the Javascript function, from an OnClick event in the submit button or from an onSubmit call from the form. In either case you need to return false from the javascript function if a field does not validated. This will prevent the form from posting back and executing the server side code. If you could provide a code example, it would be easier for me to determine what is going wrong.
this is sample code

javascript :


function va()
{
if(document.all.p_title1.value=="")
{
alert("Team Name required");
return false;
}
else
return true;
}

Page Load :

ContinueButton.Attributes.Add("onclick","va();");

Button Server Event :


private void ContinueButton_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
Response.Redirect("SelectMaterial.aspx");

}

thx
I noticed the other day that if you don't specify that you want a value returned in the onclick event as well as returning the value from the function that the form postsback to the server regardless of the Javascript function return value, with that said, all you need to do is change you attributes.add statement like so.


ContinueButton.Attributes.Add("onclick","return va();");

That should solve the postback problem.
thank you very much.
It worked

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
> > > > > >

Friday, March 16, 2012

Please Help me understand how this works......

Hi. I have this code below and wondering what file I need to import to get the pageContentsCell.Controls.Add(control) line to work.

Private Sub Page_Load(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles MyBase.Load,Me.Load' Save DepartmentID from the query string to a variableDim departmentIdAs String = Request.QueryString("departmentID")' Save the search string from the query string to a variableDim searchStringAs String = Request.QueryString("Search")' We need to find out if the ViewCart parameter has been suppliedDim viewCartAs String = Request.QueryString("ViewCart")' Load page contentsIf Not viewCartIs Nothing Then' we display the shopping cartDim controlAs Control control = Page.LoadControl("UserControls/ShoppingCart.ascx") pageContentsCell.Controls.Add(control)ElseIf Not searchStringIs Nothing Then' you're searching the catalogDim controlAs Controlcontrol = Page.LoadControl("UserControls/SearchResults.ascx") pageContentsCell.Controls.Add(control)ElseIf Not departmentIdIs Nothing Then' you're visiting a department or categoryDim controlAs Controlcontrol = Page.LoadControl("UserControls/Catalog.ascx") pageContentsCell.Controls.Add(control)Else' you're on the main pageDim controlAs Controlcontrol = Page.LoadControl("UserControls/FirstPage.ascx") pageContentsCell.Controls.Add(control)End If End Sub Private Sub viewCartButton_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles viewCartButton.Click' Get the query string as a NameValueCollection objectIf Request.QueryString("ViewCart")Is Nothing Then Response.Redirect("default.aspx?ViewCart=1&" & _ Request.QueryString.ToString())End If End Sub
What's the error message you got for the linepageContentsCell.Controls.Add(control)? You may take a look atCreating Custom Web Controls with ASP.NET 2.0