Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Saturday, March 31, 2012

Straight ASP in VS.NET Question

All,
I have to set up a web server to handle
the following call:
<server URL>/Submit.asp?parm1={1}&parm2={2}&parm3={3}
I'm pretty lightweight in ASP.NET and a pure noob
in straight ASP. What's the easiest way to set
up a simple server page to grab these three parms
and invoke a method in my managed assembly?
Thank you,
~swoozin the page_load just add some Request.QueryString() calls, maybe a simple
switch() statement.
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111071784.152396.227780@.o13g2000cwo.googlegroups.com...
> All,
> I have to set up a web server to handle
> the following call:
> <server URL>/Submit.asp?parm1={1}&parm2={2}&parm3={3}
> I'm pretty lightweight in ASP.NET and a pure noob
> in straight ASP. What's the easiest way to set
> up a simple server page to grab these three parms
> and invoke a method in my managed assembly?
> Thank you,
> ~swooz
>
Curt_C [MVP] wrote:
> in the page_load just add some Request.QueryString() calls, maybe a
simple
> switch() statement.
> --
> Curt Christianson
> Site & Scripts: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
Curt, thanks for the reply. I am still unsure
how to handle the "Submit.asp" in the URL. Do
I need to create a straight ASP page to handle
this? And there's the issue with ending up
in managed code with the parm values.
Thanks a lot!
~swooz
It's all yours now, Curt. -)
Kevin Spencer
Microsoft MVP
.Net Developer
What You S Is What You Get.
"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111076028.221406.316920@.f14g2000cwb.googlegroups.com...
> Curt_C [MVP] wrote:
> simple
> Curt, thanks for the reply. I am still unsure
> how to handle the "Submit.asp" in the URL. Do
> I need to create a straight ASP page to handle
> this? And there's the issue with ending up
> in managed code with the parm values.
> Thanks a lot!
> ~swooz
>
huh? that makes little sense to me.....
Is this .ASP or .ASPX where you are trying to read the querystring values?
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111076028.221406.316920@.f14g2000cwb.googlegroups.com...
> Curt_C [MVP] wrote:
> simple
> Curt, thanks for the reply. I am still unsure
> how to handle the "Submit.asp" in the URL. Do
> I need to create a straight ASP page to handle
> this? And there's the issue with ending up
> in managed code with the parm values.
> Thanks a lot!
> ~swooz
>
I got the feeling I missed something, but thanks for the warning :}
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> wrote in message
news:eKvNk0wKFHA.2648@.TK2MSFTNGP14.phx.gbl...
> It's all yours now, Curt. -)
> --
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> What You S Is What You Get.
> "swoozie" <swooziep@.yahoo.com> wrote in message
> news:1111076028.221406.316920@.f14g2000cwb.googlegroups.com...
>
I'm sorry if I wasn't clear. The HTTP GET is from a 3rd-party
client, so I have to handle the URL with ".asp" in it (see above).
If I can handle that with ASP.NET, great! Can I set up a redirect
to an ASPX? Either way, I need to end up with the parms
in a managed assembly, be it web tier or middle. I'm fairly new
to this, so apologies in advance. And thanks so much for the help.
~swooz
One more post to further clarify! ;-)
I am assuming since they're throwing ".asp" at me
that I need to have a classic ASP page on the web
server.
you mean that THEY are pointing to YOUR site like this:
http://www.yoursite.com/submit.asp?parm1={1}&parm2={2}&parm3={3}
If so, few things...
1) wrong group, this is a .NET group.
2) you will need a page on your server called "submit.asp"
3) in that page you will need:
- myValue1 = Request.QueryString("param1")
- myValue2 = Request.QueryString("param2")
- myValue3 = Request.QueryString("param3")
that clarify it for ya?
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111079290.380858.246130@.f14g2000cwb.googlegroups.com...
> One more post to further clarify! ;-)
> I am assuming since they're throwing ".asp" at me
> that I need to have a classic ASP page on the web
> server.
>
Yes, it does clarify, thanks. I did the .NET
newsgroup b/c [so far] I've written a pure .NET
app, but it appears I'm gonna have to have
an unmanaged piece in there.
ty

Straight ASP in VS.NET Question

All,

I have to set up a web server to handle
the following call:

<server URL>/Submit.asp?parm1={1}&parm2={2}&parm3={3}

I'm pretty lightweight in ASP.NET and a pure noob
in straight ASP. What's the easiest way to set
up a simple server page to grab these three parms
and invoke a method in my managed assembly?

Thank you,
~swoozin the page_load just add some Request.QueryString() calls, maybe a simple
switch() statement.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111071784.152396.227780@.o13g2000cwo.googlegr oups.com...
> All,
> I have to set up a web server to handle
> the following call:
> <server URL>/Submit.asp?parm1={1}&parm2={2}&parm3={3}
> I'm pretty lightweight in ASP.NET and a pure noob
> in straight ASP. What's the easiest way to set
> up a simple server page to grab these three parms
> and invoke a method in my managed assembly?
> Thank you,
> ~swooz
Curt_C [MVP] wrote:
> in the page_load just add some Request.QueryString() calls, maybe a
simple
> switch() statement.
> --
> Curt Christianson
> Site & Scripts: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com

Curt, thanks for the reply. I am still unsure
how to handle the "Submit.asp" in the URL. Do
I need to create a straight ASP page to handle
this? And there's the issue with ending up
in managed code with the parm values.

Thanks a lot!
~swooz
It's all yours now, Curt. -)

--

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111076028.221406.316920@.f14g2000cwb.googlegr oups.com...
> Curt_C [MVP] wrote:
>> in the page_load just add some Request.QueryString() calls, maybe a
> simple
>> switch() statement.
>>
>> --
>> Curt Christianson
>> Site & Scripts: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
> Curt, thanks for the reply. I am still unsure
> how to handle the "Submit.asp" in the URL. Do
> I need to create a straight ASP page to handle
> this? And there's the issue with ending up
> in managed code with the parm values.
> Thanks a lot!
> ~swooz
huh? that makes little sense to me.....
Is this .ASP or .ASPX where you are trying to read the querystring values?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111076028.221406.316920@.f14g2000cwb.googlegr oups.com...
> Curt_C [MVP] wrote:
>> in the page_load just add some Request.QueryString() calls, maybe a
> simple
>> switch() statement.
>>
>> --
>> Curt Christianson
>> Site & Scripts: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
> Curt, thanks for the reply. I am still unsure
> how to handle the "Submit.asp" in the URL. Do
> I need to create a straight ASP page to handle
> this? And there's the issue with ending up
> in managed code with the parm values.
> Thanks a lot!
> ~swooz
I got the feeling I missed something, but thanks for the warning :}

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> wrote in message
news:eKvNk0wKFHA.2648@.TK2MSFTNGP14.phx.gbl...
> It's all yours now, Curt. -)
> --
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> What You Seek Is What You Get.
> "swoozie" <swooziep@.yahoo.com> wrote in message
> news:1111076028.221406.316920@.f14g2000cwb.googlegr oups.com...
>>
>> Curt_C [MVP] wrote:
>>> in the page_load just add some Request.QueryString() calls, maybe a
>> simple
>>> switch() statement.
>>>
>>> --
>>> Curt Christianson
>>> Site & Scripts: http://www.Darkfalz.com
>>> Blog: http://blog.Darkfalz.com
>>>
>>>
>>
>> Curt, thanks for the reply. I am still unsure
>> how to handle the "Submit.asp" in the URL. Do
>> I need to create a straight ASP page to handle
>> this? And there's the issue with ending up
>> in managed code with the parm values.
>>
>> Thanks a lot!
>> ~swooz
>>
I'm sorry if I wasn't clear. The HTTP GET is from a 3rd-party
client, so I have to handle the URL with ".asp" in it (see above).
If I can handle that with ASP.NET, great! Can I set up a redirect
to an ASPX? Either way, I need to end up with the parms
in a managed assembly, be it web tier or middle. I'm fairly new
to this, so apologies in advance. And thanks so much for the help.

~swooz
One more post to further clarify! ;-)
I am assuming since they're throwing ".asp" at me
that I need to have a classic ASP page on the web
server.
you mean that THEY are pointing to YOUR site like this:

http://www.yoursite.com/submit.asp?parm1={1}&parm2={2}&parm3={3}

If so, few things...
1) wrong group, this is a .NET group.
2) you will need a page on your server called "submit.asp"
3) in that page you will need:
- myValue1 = Request.QueryString("param1")
- myValue2 = Request.QueryString("param2")
- myValue3 = Request.QueryString("param3")

that clarify it for ya?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111079290.380858.246130@.f14g2000cwb.googlegr oups.com...
> One more post to further clarify! ;-)
> I am assuming since they're throwing ".asp" at me
> that I need to have a classic ASP page on the web
> server.
Yes, it does clarify, thanks. I did the .NET
newsgroup b/c [so far] I've written a pure .NET
app, but it appears I'm gonna have to have
an unmanaged piece in there.

ty
or get them to point to a .aspx page instead

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"swoozie" <swooziep@.yahoo.com> wrote in message
news:1111080239.282185.68350@.l41g2000cwc.googlegro ups.com...
> Yes, it does clarify, thanks. I did the .NET
> newsgroup b/c [so far] I've written a pure .NET
> app, but it appears I'm gonna have to have
> an unmanaged piece in there.
> ty

straightforward way to programmatically retrieve string from db?

Hello -- I'm using asp.net 2 in visual web developer and I'm drawing a blank finding documentation on on this fairly simple task. Since this is the novice's thread, I felt bold enough to ask.

I'd like to programmatically retrieve a string from the aspnet_usermembership database -- the select statement would be something like the below. Can anyone point me at example code to do this programmatically -- so I end up with the LoweredEmail string from the DB? I guess I could either read it directly from the DB, or from a gridview control on the page -- but I'm new to SQL data manipulation and althoug I've seen examples nothing seems to work in this environment and it's probably simpler than I think to those who know what they;re doing..

Thanks for pointers.

"SELECT LoweredEmail FROM aspnet_Membership WHERE username=@dotnet.itags.org.Username"

Hey, just an idea. You can use SqlCommand.ExecuteScalar() to return a single value from database, assuming that your select SQL statment returns a scalar value. The method returns an object type so you need to comvert, in your case, a string type, like something below

...

dim LoweredEmail as String

dim SqlCmd as New SqlCommand("sql stmt", SqlConnObt)

LoweredEmail = CType(SqlCmd.ExecuteScalar(), String)

...


Thanks Bernie I'll give that a shot -- looks to be exactly what I needed.

Richard.


Worked fine -- just needed to do this in a two-stage process to get the GUID for the user from the username, which teyn gets teh email address. So added

Dim SqlEmailCmdAsNew SqlCommand("SELECT LoweredEmail FROM aspnet_Membership WHERE userid=@.Guid", myMembershipConnection)

SqlEmailCmd.Parameters.AddWithValue("@.Guid", userid)

Strange "ambiguous in namespace" complier error disappears with rebuild

Hi all.
I am using VS 2005 and VB.NET.
Lately as my Web Application is getting larger, I have been getting strange
compiler messages like the following:
--
Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx
'
is ambiguous in the namespace 'ASP'.
Source Error:
Line 9:
Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
Runat="Server">
Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
runat="server" />
Line 12:
Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
--
This typically occurs after I have made a change that is in a code-behind
page in which the offending User Control is placed and I do a complete
rebuild and then test.
After the error occurs without making any other changes to the code, I
simply do another full rebuild from within VS and the error goes away and
does not re-occur.
Has anyone experienced this? Is there a fix for it? It is becoming both
annoying and time-consuming.
TIA"John Kotuby" <JohnKotuby@.discussions.microsoft.com> wrote in message
news:%23ahALGOPIHA.5160@.TK2MSFTNGP05.phx.gbl...
> Hi all.
> I am using VS 2005 and VB.NET.
> Lately as my Web Application is getting larger, I have been getting
> strange compiler messages like the following:
> --
> Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx
'
> is ambiguous in the namespace 'ASP'.
> Source Error:
> Line 9:
> Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
> Runat="Server">
> Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
> runat="server" />
> Line 12:
> Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
> --
> This typically occurs after I have made a change that is in a code-behind
> page in which the offending User Control is placed and I do a complete
> rebuild and then test.
> After the error occurs without making any other changes to the code, I
> simply do another full rebuild from within VS and the error goes away and
> does not re-occur.
> Has anyone experienced this? Is there a fix for it? It is becoming both
> annoying and time-consuming.
> TIA
>
I have exactly the same problem. I have googled, asked here but no answers
/ solutions. Get out of the car and get back in. The only thing I can
think of is that depending on where my right hand is (on mouse or keyboard)
I will use F5 or click start debugging toolbar button. I always thought
that was the same but it seems that if I use only one of those combinations
I don't get the problem.
LS

Strange "ambiguous in namespace" complier error disappears with rebuild

Hi all.

I am using VS 2005 and VB.NET.
Lately as my Web Application is getting larger, I have been getting strange
compiler messages like the following:
--------
Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx'
is ambiguous in the namespace 'ASP'.

Source Error:

Line 9:
Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
Runat="Server">
Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
runat="server" />
Line 12:
Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
--------

This typically occurs after I have made a change that is in a code-behind
page in which the offending User Control is placed and I do a complete
rebuild and then test.

After the error occurs without making any other changes to the code, I
simply do another full rebuild from within VS and the error goes away and
does not re-occur.

Has anyone experienced this? Is there a fix for it? It is becoming both
annoying and time-consuming.

TIA"John Kotuby" <JohnKotuby@.discussions.microsoft.comwrote in message
news:%23ahALGOPIHA.5160@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

Hi all.
>
I am using VS 2005 and VB.NET.
Lately as my Web Application is getting larger, I have been getting
strange compiler messages like the following:
--------
Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx'
is ambiguous in the namespace 'ASP'.
>
Source Error:
>
Line 9:
Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
Runat="Server">
Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
runat="server" />
Line 12:
Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
--------
>
This typically occurs after I have made a change that is in a code-behind
page in which the offending User Control is placed and I do a complete
rebuild and then test.
>
After the error occurs without making any other changes to the code, I
simply do another full rebuild from within VS and the error goes away and
does not re-occur.
>
Has anyone experienced this? Is there a fix for it? It is becoming both
annoying and time-consuming.
>
TIA
>


I have exactly the same problem. I have googled, asked here but no answers
/ solutions. Get out of the car and get back in. The only thing I can
think of is that depending on where my right hand is (on mouse or keyboard)
I will use F5 or click start debugging toolbar button. I always thought
that was the same but it seems that if I use only one of those combinations
I don't get the problem.

LS

strange & weird problem in ASP.NET application

I am having a strange problem in my ASP.NET application. When
multiple users access the web site, the changes done by a user gets
reflected in another users session.

I have some global variables declared in a module which I use
throughout the application. Is it problem because of this? If I cant
declare a global variable in a module where else can I declare it
where it cannot be changed when multiple users are accessing the same
variable?

Please somebody help me.

-Shalinthat would be the difference betueen session variables and application
variables
you would need session variables
have a look at the pass variables value between diferent pages thread

hope it helps

eric

"shalin" <shalin@.imagine.co.in> wrote in message
news:2acc1eb4.0402260345.4dd44352@.posting.google.c om...
> I am having a strange problem in my ASP.NET application. When
> multiple users access the web site, the changes done by a user gets
> reflected in another users session.
> I have some global variables declared in a module which I use
> throughout the application. Is it problem because of this? If I cant
> declare a global variable in a module where else can I declare it
> where it cannot be changed when multiple users are accessing the same
> variable?
> Please somebody help me.
> -Shalin

Strange "Object reference not set to an instance of an object" error in web

I suddenly received an unexpected error in my project. I have been working
on this project for some time without this issue. Nothing has changed in the
form that caused the exception. A little experimentation shows that I cannot
run ANY .NET web project without getting this error:
----
--
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
Line 1: <%@dotnet.itags.org. Page Language="vb" AutoEventWireup="false"
Codebehind="Login.aspx.vb" Inherits="DataBayWeb.Login" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>
Source File: c:\inetpub\wwwroot\DataBayWeb\login.aspx Line: 1
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
System.Web.UI.Control.get_Controls()
System.Web.UI.Control.AddParsedSubObject(Object obj)
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Objec
t obj)
ASP.Login_aspx.__BuildControlTree(Control __ctrl) in
c:\inetpub\wwwroot\DataBayWeb\login.aspx:1
ASP.Login_aspx.FrameworkInitialize()
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequest(HttpContext context)
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionSte
p.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
Other developers on my team can run the latest version of the project
without an issue. What has happened?
ChrisVery strange indeed. It might sound obscure, but try removing the
space in <%@. Page...
Otherwise, I would be tempted to do the inevitable and reinstall the
framework.
Simon.

Strange 100% CPU issue with asp_wp

Hello,
We are having some issues with our .NET web applications. Every so
often a computer will peg its CPU at 100% for some period of time. I am
told anywhere between 30mins and 2 hours. I have seen some kb articles
about asp_wp and 100% but I do not believe that is our issues. I am
fairly certain that the probelm is caused by one of the applications
running on the server. Ok so here are the questions.
Are there any perfmons that can be used to determine which asp.net app
is causing the cpu to spike up?
Is there any code that can be written to see what is happening?
What I am trying to accomplish is to determine the offending
application. What toold exist?
Thanks
RichHi Rich
As for the 100% cpu and troubleshooting on multi-web app server problem.
There are different options which depend on the server's OS version. Is
your webserver win2k server or win2003 server?
If you're using the Win2k server, since the processModel are the fixed
isolation mode. All the web application shared the same workerprocess.
There hasn't any buildin means or tools to determine which app caues the
problem. We have to test them one by one.
However , on win2k3 box, the IIS6 has provided a new workerprocess
isolation model( application pool model) which can let use isolate each web
application in a separate workproesss. You can have a look at the following
reference discussing on this:
#Chapter 20 C Hosting Multiple Web Applications
http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
ml/thcmch20.asp
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks for the feedback. This is a W2K server hosting these
applications. So I am left with the testing of individual applications.
Would this testing be done in a traditional manner (ie click and watch)?
If so I was hoping for something a little more than that. Any other
ideas? Thanks
Rich
In article <9LvS$c4eEHA.1600@.cpmsftngxa06.phx.gbl>, you say...
> Hi Rich
> As for the 100% cpu and troubleshooting on multi-web app server problem.
> There are different options which depend on the server's OS version. Is
> your webserver win2k server or win2003 server?
> If you're using the Win2k server, since the processModel are the fixed
> isolation mode. All the web application shared the same workerprocess.
> There hasn't any buildin means or tools to determine which app caues the
> problem. We have to test them one by one.
> However , on win2k3 box, the IIS6 has provided a new workerprocess
> isolation model( application pool model) which can let use isolate each we
b
> application in a separate workproesss. You can have a look at the followin
g
> reference discussing on this:
> #Chapter 20 =3FC Hosting Multiple Web Applications
> http://msdn.microsoft.com/library/d...ft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
Hi Rich,
Thanks for your followup. As for such problem, if you have found the web
application which cause the problem, I think you'd better continue to
narrow down the problem to some certain web pages or component which may be
the root cause. Also, you can have a check directly in the code logic to
see whether there is any potential issues. Currnetly there're any
particular tools focus on such problem.
In addition, if you still feel on this issue, I recommend that you
request a regular case on it since intensive troubleshooting(such as Dump
analyse) would be done quickly and effectively with direct assistance from
a Microsoft Support Professional through Microsoft Product Support
Services.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks Steven. I was afraid there would be no way of tracking this
down. If we can't find the app we will contact MPS. Rich
In article <Cvm$ywefEHA.3212@.cpmsftngxa06.phx.gbl>, v-
schang@.online.microsoft.com says...
> Hi Rich,
> Thanks for your followup. As for such problem, if you have found the web
> application which cause the problem, I think you'd better continue to
> narrow down the problem to some certain web pages or component which may b
e
> the root cause. Also, you can have a check directly in the code logic to
> see whether there is any potential issues. Currnetly there're any
> particular tools focus on such problem.
> In addition, if you still feel on this issue, I recommend that yo
u
> request a regular case on it since intensive troubleshooting(such as Dump
> analyse) would be done quickly and effectively with direct assistance from
> a Microsoft Support Professional through Microsoft Product Support
> Services.
> Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>

Strange 100% CPU issue with asp_wp

Hello,
We are having some issues with our .NET web applications. Every so
often a computer will peg its CPU at 100% for some period of time. I am
told anywhere between 30mins and 2 hours. I have seen some kb articles
about asp_wp and 100% but I do not believe that is our issues. I am
fairly certain that the probelm is caused by one of the applications
running on the server. Ok so here are the questions.

Are there any perfmons that can be used to determine which asp.net app
is causing the cpu to spike up?

Is there any code that can be written to see what is happening?

What I am trying to accomplish is to determine the offending
application. What toold exist?

Thanks

RichHi Rich

As for the 100% cpu and troubleshooting on multi-web app server problem.
There are different options which depend on the server's OS version. Is
your webserver win2k server or win2003 server?

If you're using the Win2k server, since the processModel are the fixed
isolation mode. All the web application shared the same workerprocess.
There hasn't any buildin means or tools to determine which app caues the
problem. We have to test them one by one.

However , on win2k3 box, the IIS6 has provided a new workerprocess
isolation model( application pool model) which can let use isolate each web
application in a separate workproesss. You can have a look at the following
reference discussing on this:

#Chapter 20 C Hosting Multiple Web Applications
http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
ml/thcmch20.asp

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks for the feedback. This is a W2K server hosting these
applications. So I am left with the testing of individual applications.
Would this testing be done in a traditional manner (ie click and watch)?
If so I was hoping for something a little more than that. Any other
ideas? Thanks

Rich

In article <9LvS$c4eEHA.1600@.cpmsftngxa06.phx.gbl>, you say...
> Hi Rich
> As for the 100% cpu and troubleshooting on multi-web app server problem.
> There are different options which depend on the server's OS version. Is
> your webserver win2k server or win2003 server?
> If you're using the Win2k server, since the processModel are the fixed
> isolation mode. All the web application shared the same workerprocess.
> There hasn't any buildin means or tools to determine which app caues the
> problem. We have to test them one by one.
> However , on win2k3 box, the IIS6 has provided a new workerprocess
> isolation model( application pool model) which can let use isolate each web
> application in a separate workproesss. You can have a look at the following
> reference discussing on this:
> #Chapter 20 =3FC Hosting Multiple Web Applications
> http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
> ml/thcmch20.asp
>
> Thanks.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
Hi Rich,

Thanks for your followup. As for such problem, if you have found the web
application which cause the problem, I think you'd better continue to
narrow down the problem to some certain web pages or component which may be
the root cause. Also, you can have a check directly in the code logic to
see whether there is any potential issues. Currnetly there're any
particular tools focus on such problem.
In addition, if you still feel confused on this issue, I recommend that you
request a regular case on it since intensive troubleshooting(such as Dump
analyse) would be done quickly and effectively with direct assistance from
a Microsoft Support Professional through Microsoft Product Support
Services.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks Steven. I was afraid there would be no way of tracking this
down. If we can't find the app we will contact MPS. Rich

In article <Cvm$ywefEHA.3212@.cpmsftngxa06.phx.gbl>, v-
schang@.online.microsoft.com says...
> Hi Rich,
> Thanks for your followup. As for such problem, if you have found the web
> application which cause the problem, I think you'd better continue to
> narrow down the problem to some certain web pages or component which may be
> the root cause. Also, you can have a check directly in the code logic to
> see whether there is any potential issues. Currnetly there're any
> particular tools focus on such problem.
> In addition, if you still feel confused on this issue, I recommend that you
> request a regular case on it since intensive troubleshooting(such as Dump
> analyse) would be done quickly and effectively with direct assistance from
> a Microsoft Support Professional through Microsoft Product Support
> Services.
> Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>

strange authentication problem...

hi there,
i've got a website i created, that i've put onto my test server on the web.
I have a login page, that when the user comes to it, it first pops up a
windows authentication dialog box, and i dont know why? i click cancel on it
and the page still works as normal.
How can i remove this, and why is it appearing?
i am also not using any .NET authentication methods or anything..
thanks,you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication>
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
>
thanks, but this isnt exactly what i am after..
What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.
web.config is also set to <authentication mode="None" /> but still no luck.
Paull
"lzh" <lzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> web.
on
> it
>
it's really a trouble,i have no ideas about that.
if you have set authentication mode="None", it's will work
try again
<authentication mode="None">
<allow users="?"/>
</authentication>
"Paul M" <milsnips@.hotmail.com> д?
:uLl5APAIEHA.828@.TK2MSFTNGP12.phx.gbl...
> thanks, but this isnt exactly what i am after..
> What the problem is that i already have a login page which all works
> fine...however i have 3 pages in my web app, that whenever i go to their
> URL, they always popup the windows authentication window, when it shouldnt
> appear..i have no authentication code for these pages, nor do i want any.
> web.config is also set to <authentication mode="None" /> but still no
luck.
> Paull
> "lzh" <lzh@.hotmail.com> wrote in message
> news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
<allow roles="Admins"/>
a
> on
>

strange authentication problem...

hi there,

i've got a website i created, that i've put onto my test server on the web.

I have a login page, that when the user comes to it, it first pops up a
windows authentication dialog box, and i dont know why? i click cancel on it
and the page still works as normal.

How can i remove this, and why is it appearing?
i am also not using any .NET authentication methods or anything..

thanks,you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,

strange authentication problem...

hi there,

i've got a website i created, that i've put onto my test server on the web.

I have a login page, that when the user comes to it, it first pops up a
windows authentication dialog box, and i dont know why? i click cancel on it
and the page still works as normal.

How can i remove this, and why is it appearing?
i am also not using any .NET authentication methods or anything..

thanks,you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,
it's really a trouble,i have no ideas about that.
if you have set authentication mode="None", it's will work
try again
<authentication mode="None"
<allow users="?"/>
</authentication
"Paul M" <milsnips@.hotmail.com> д?
:uLl5APAIEHA.828@.TK2MSFTNGP12.phx.gbl...
> thanks, but this isnt exactly what i am after..
> What the problem is that i already have a login page which all works
> fine...however i have 3 pages in my web app, that whenever i go to their
> URL, they always popup the windows authentication window, when it shouldnt
> appear..i have no authentication code for these pages, nor do i want any.
> web.config is also set to <authentication mode="None" /> but still no
luck.
> Paull
> "coollzh" <coollzh@.hotmail.com> wrote in message
> news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> > you can set authentication mode in Web.config file
> > <authentication mode="Forms">
> > <forms name="login" loginUrl="login.aspx" protection="All" />
<allow roles="Admins"/
> > </authentication>
> > "Paul M" <milsnips@.hotmail.com> д?
> > news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > > hi there,
> > > > i've got a website i created, that i've put onto my test server on the
> > web.
> > > > I have a login page, that when the user comes to it, it first pops up
a
> > > windows authentication dialog box, and i dont know why? i click cancel
> on
> > it
> > > and the page still works as normal.
> > > > How can i remove this, and why is it appearing?
> > > i am also not using any .NET authentication methods or anything..
> > > > thanks,
> >

strange authentication problem...

hi there,

i've got a website i created, that i've put onto my test server on the web.

I have a login page, that when the user comes to it, it first pops up a
windows authentication dialog box, and i dont know why? i click cancel on it
and the page still works as normal.

How can i remove this, and why is it appearing?
i am also not using any .NET authentication methods or anything..

thanks,you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,
it's really a trouble,i have no ideas about that.
if you have set authentication mode="None", it's will work
try again
<authentication mode="None"
<allow users="?"/>
</authentication
"Paul M" <milsnips@.hotmail.com> д?
:uLl5APAIEHA.828@.TK2MSFTNGP12.phx.gbl...
> thanks, but this isnt exactly what i am after..
> What the problem is that i already have a login page which all works
> fine...however i have 3 pages in my web app, that whenever i go to their
> URL, they always popup the windows authentication window, when it shouldnt
> appear..i have no authentication code for these pages, nor do i want any.
> web.config is also set to <authentication mode="None" /> but still no
luck.
> Paull
> "coollzh" <coollzh@.hotmail.com> wrote in message
> news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> > you can set authentication mode in Web.config file
> > <authentication mode="Forms">
> > <forms name="login" loginUrl="login.aspx" protection="All" />
<allow roles="Admins"/
> > </authentication>
> > "Paul M" <milsnips@.hotmail.com> д?
> > news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > > hi there,
> > > > i've got a website i created, that i've put onto my test server on the
> > web.
> > > > I have a login page, that when the user comes to it, it first pops up
a
> > > windows authentication dialog box, and i dont know why? i click cancel
> on
> > it
> > > and the page still works as normal.
> > > > How can i remove this, and why is it appearing?
> > > i am also not using any .NET authentication methods or anything..
> > > > thanks,
> >

Strange behavior

Hello guys,
I have a strange behaviour in my asp.net web page. My page
contains a datagrid control, which has another nested
datagrid as a user control. It works very well, when the
user expands the + button or closes it with the same
buton. However when I do this several times successively
then suddenly I got the error message:
Object reference not set to an instance of an object.
objGetDailyStoreQuantitySold.StartDate = CType(e.Item.Cells
(0).FindControl("lblInvoiceDate"), Label).Text
When I do a refresh then it sees the label control again.
I am somehow why this is happening. Can somebody
help?
ThanksBy looking at this code, all one could really say is that:
objGetDailyStoreQuantitySold could be Nothing.
e could be Nothing.
e.Item could be Nothing
e.Item.Cells could be Nothing
...
etc.
You'll need to show a little more code or step through with a debugger
to get more details. Know what I mean?
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 10 Feb 2005 08:01:10 -0800, "anonymous"
<anonymous@.discussions.microsoft.com> wrote:

>Hello guys,
>I have a strange behaviour in my asp.net web page. My page
>contains a datagrid control, which has another nested
>datagrid as a user control. It works very well, when the
>user expands the + button or closes it with the same
>buton. However when I do this several times successively
>then suddenly I got the error message:
>Object reference not set to an instance of an object.
>objGetDailyStoreQuantitySold.StartDate = CType(e.Item.Cells
>(0).FindControl("lblInvoiceDate"), Label).Text
>
>When I do a refresh then it sees the label control again.
>I am somehow why this is happening. Can somebody
>help?
>Thanks

Strange behavior

Hello guys,

I have a strange behaviour in my asp.net web page. My page
contains a datagrid control, which has another nested
datagrid as a user control. It works very well, when the
user expands the + button or closes it with the same
buton. However when I do this several times successively
then suddenly I got the error message:

Object reference not set to an instance of an object.
objGetDailyStoreQuantitySold.StartDate = CType(e.Item.Cells
(0).FindControl("lblInvoiceDate"), Label).Text

When I do a refresh then it sees the label control again.
I am somehow confused why this is happening. Can somebody
help?

ThanksBy looking at this code, all one could really say is that:

objGetDailyStoreQuantitySold could be Nothing.
e could be Nothing.
e.Item could be Nothing
e.Item.Cells could be Nothing
...
etc.

You'll need to show a little more code or step through with a debugger
to get more details. Know what I mean?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 10 Feb 2005 08:01:10 -0800, "anonymous"
<anonymous@.discussions.microsoft.com> wrote:

>Hello guys,
>I have a strange behaviour in my asp.net web page. My page
>contains a datagrid control, which has another nested
>datagrid as a user control. It works very well, when the
>user expands the + button or closes it with the same
>buton. However when I do this several times successively
>then suddenly I got the error message:
>Object reference not set to an instance of an object.
>objGetDailyStoreQuantitySold.StartDate = CType(e.Item.Cells
>(0).FindControl("lblInvoiceDate"), Label).Text
>
>When I do a refresh then it sees the label control again.
>I am somehow confused why this is happening. Can somebody
>help?
>Thanks

Strange Behavior from RequiredFieldValidator (and Two LinkButtons)

We have an ASP.NET web form with 1 TextBox, 2 LinkButtons, and 1
RequireFieldValidator. The situation is: the user needs to enter a folder
name in the TextBox and click the first LinkButton (the Create Folder
LinkButton) to create the folder. Then once that's done, they need to click
the second LinkButton (the Next LinkButton) to go to the next page (a
rudimentary wizard).
The RequiredFieldValidator is there to make sure the user enters a folder
name in the TextBox before clicking the first LinkButton (the Create Folder
LinkButton). This all works fine.
What's strange is if the user doesn't enter anything in the TextBox and
clicks the second LinkButton (the Next LinkButton) before clicking the first
LinkButton (the Create Folder LinkButton), the RequiredFieldValidator alarms
the error anyway.
Is this correct behavior? What we want is for the first LinkButton (the
Create Report LinkButton) only to validate that text has been entered in the
TextBox, not the second LinkButton (the Next LinkButton). How can we do
this?Hi JJ,
The function of the requiredfield validator is just to check the txtbox is
having some value or not.
If you want that checking has to be made only for the first link button and
not for the second link button, then specifically you have to inform the
validator as follows.
1. Click the second link button and go to the properties window.
2. Set the cause validation property to False.
So, here after when you are click second link button form will not do any
validations.
Hope this helps you.
Cheers,
Jerome. M
"JJ" wrote:

> We have an ASP.NET web form with 1 TextBox, 2 LinkButtons, and 1
> RequireFieldValidator. The situation is: the user needs to enter a folder
> name in the TextBox and click the first LinkButton (the Create Folder
> LinkButton) to create the folder. Then once that's done, they need to cli
ck
> the second LinkButton (the Next LinkButton) to go to the next page (a
> rudimentary wizard).
> The RequiredFieldValidator is there to make sure the user enters a folder
> name in the TextBox before clicking the first LinkButton (the Create Folde
r
> LinkButton). This all works fine.
> What's strange is if the user doesn't enter anything in the TextBox and
> clicks the second LinkButton (the Next LinkButton) before clicking the fir
st
> LinkButton (the Create Folder LinkButton), the RequiredFieldValidator alar
ms
> the error anyway.
> Is this correct behavior? What we want is for the first LinkButton (the
> Create Report LinkButton) only to validate that text has been entered in t
he
> TextBox, not the second LinkButton (the Next LinkButton). How can we do
> this?
>
>

Strange Behavior from RequiredFieldValidator (and Two LinkButtons)

We have an ASP.NET web form with 1 TextBox, 2 LinkButtons, and 1
RequireFieldValidator. The situation is: the user needs to enter a folder
name in the TextBox and click the first LinkButton (the Create Folder
LinkButton) to create the folder. Then once that's done, they need to click
the second LinkButton (the Next LinkButton) to go to the next page (a
rudimentary wizard).

The RequiredFieldValidator is there to make sure the user enters a folder
name in the TextBox before clicking the first LinkButton (the Create Folder
LinkButton). This all works fine.

What's strange is if the user doesn't enter anything in the TextBox and
clicks the second LinkButton (the Next LinkButton) before clicking the first
LinkButton (the Create Folder LinkButton), the RequiredFieldValidator alarms
the error anyway.

Is this correct behavior? What we want is for the first LinkButton (the
Create Report LinkButton) only to validate that text has been entered in the
TextBox, not the second LinkButton (the Next LinkButton). How can we do
this?Hi JJ,

The function of the requiredfield validator is just to check the txtbox is
having some value or not.

If you want that checking has to be made only for the first link button and
not for the second link button, then specifically you have to inform the
validator as follows.

1. Click the second link button and go to the properties window.

2. Set the cause validation property to False.

So, here after when you are click second link button form will not do any
validations.

Hope this helps you.

Cheers,

Jerome. M

"JJ" wrote:

> We have an ASP.NET web form with 1 TextBox, 2 LinkButtons, and 1
> RequireFieldValidator. The situation is: the user needs to enter a folder
> name in the TextBox and click the first LinkButton (the Create Folder
> LinkButton) to create the folder. Then once that's done, they need to click
> the second LinkButton (the Next LinkButton) to go to the next page (a
> rudimentary wizard).
> The RequiredFieldValidator is there to make sure the user enters a folder
> name in the TextBox before clicking the first LinkButton (the Create Folder
> LinkButton). This all works fine.
> What's strange is if the user doesn't enter anything in the TextBox and
> clicks the second LinkButton (the Next LinkButton) before clicking the first
> LinkButton (the Create Folder LinkButton), the RequiredFieldValidator alarms
> the error anyway.
> Is this correct behavior? What we want is for the first LinkButton (the
> Create Report LinkButton) only to validate that text has been entered in the
> TextBox, not the second LinkButton (the Next LinkButton). How can we do
> this?
>

Strange behavior issue

Hi everyone,

I have a asp.net web site with a button to perform a popup window

the window is show modal dialog window.

the popup works fine until there is a refresh of the popped up window

through a postback.

It doesn't refresh the popped up window, it creates a new window entirely.

Has anyone seen this before and how do i stop it from opening a new window on postback?

thanks

tony

That's because is a DIALOG box... It's not designed for interaction. There are ways but its really not standard for web programming. You are better off with a regular popup page or doing it in the page you are in.


the popup works fine until there is a refresh of the popped up window through a postback."

the popup window is a client side window build upon the client machine using some windows API (::createwindowmaybe), u can never expect to refresh/modify it using post back.

Hope my suggestion helps :)

Strange behavior of invisible controls

Hello:
I'm updating multiple rows in the datagrid, using the routine described in
the article "Top Questions about the DataGrid Web Server Control":
http://msdn.microsoft.com/library/d...>
ercontrol.asp
To determine which rows had been changed, I'm using the RowChanged sub:
Protected Sub RowChanged(ByVal sender As Object, _
ByVal e As System.EventArgs)
'----
--
' Add ID's for changed rows
'----
--
Try
Dim dgi As DataGridItem = _
CType(CType(sender, Control).NamingContainer, DataGridItem)
Dim IDlabel As Label = CType(dgi.FindControl("lblOrder"), Label)
Dim ID As Integer = CType(IDlabel.Text, Integer)
If Not (IDlist.Contains(ID)) Then
IDlist.Add(ID)
End If
Catch ex As Exception
Me.lblError.Text = "Error No.: " & Err.Number.ToString & " - " & ex.ToString
End Try
End Sub
<asp:CheckBox id="chkInHouse" ToolTip="Plates In House" runat="server"
OnCheckedChanged="RowChanged" Checked='<%# DataBinder.Eval(Container,
"DataItem.InHouse") %>'>
It works OK everywhere, except one datagrid where some of my checkboxes are
invisible - the user has to click a button to make them visible. These
invisible checkboxes always indicate that their values had been changed. As
a result all my data from the datagrid is sent to the database, even if no
changes has been made. As soon as I make these checkboxes visible -
everything works OK.
Why is this happening? Is there any workaround?
I would appreciate your help.
Thank you,
Peter AfoninHi,
If you set checkbox visibility by visible property and you are using
postback to change visible state maybe there is something in the
postback activity that cause that behavior.
you can change check box visibility by changing visibility attribute of
control Style using javascrit thus reducing network traffic.
Natty Gur[MVP]
blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
Thank you, Natty.
Do you have a JavaScript sample on how to do this? I don't know JS well.
Peter
"Natty Gur" <natty@.dao2com.com> wrote in message
news:Occ$GsiPEHA.164@.TK2MSFTNGP12.phx.gbl...
> Hi,
> If you set checkbox visibility by visible property and you are using
> postback to change visible state maybe there is something in the
> postback activity that cause that behavior.
> you can change check box visibility by changing visibility attribute of
> control Style using javascrit thus reducing network traffic.
> Natty Gur[MVP]
> blog : http://weblogs.asp.net/ngur
> Mobile: +972-(0)58-888377
>
> *** Sent via Developersdex http://www.examnotes.net ***
> Don't just participate in USENET...get rewarded for it!

Strange behavior of invisible controls

Hello:

I'm updating multiple rows in the datagrid, using the routine described in
the article "Top Questions about the DataGrid Web Server Control":

http://msdn.microsoft.com/library/d...ercontrol. asp

To determine which rows had been changed, I'm using the RowChanged sub:

Protected Sub RowChanged(ByVal sender As Object, _
ByVal e As System.EventArgs)
'-----------------------
-------
' Add ID's for changed rows
'-----------------------
-------
Try
Dim dgi As DataGridItem = _
CType(CType(sender, Control).NamingContainer, DataGridItem)
Dim IDlabel As Label = CType(dgi.FindControl("lblOrder"), Label)
Dim ID As Integer = CType(IDlabel.Text, Integer)
If Not (IDlist.Contains(ID)) Then
IDlist.Add(ID)
End If
Catch ex As Exception
Me.lblError.Text = "Error No.: " & Err.Number.ToString & " - " & ex.ToString
End Try
End Sub

<asp:CheckBox id="chkInHouse" ToolTip="Plates In House" runat="server"
OnCheckedChanged="RowChanged" Checked='<%# DataBinder.Eval(Container,
"DataItem.InHouse") %>'
It works OK everywhere, except one datagrid where some of my checkboxes are
invisible - the user has to click a button to make them visible. These
invisible checkboxes always indicate that their values had been changed. As
a result all my data from the datagrid is sent to the database, even if no
changes has been made. As soon as I make these checkboxes visible -
everything works OK.

Why is this happening? Is there any workaround?

I would appreciate your help.

Thank you,

--
Peter AfoninHi,

If you set checkbox visibility by visible property and you are using
postback to change visible state maybe there is something in the
postback activity that cause that behavior.

you can change check box visibility by changing visibility attribute of
control Style using javascrit thus reducing network traffic.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Thank you, Natty.

Do you have a JavaScript sample on how to do this? I don't know JS well.

Peter

"Natty Gur" <natty@.dao2com.com> wrote in message
news:Occ$GsiPEHA.164@.TK2MSFTNGP12.phx.gbl...
> Hi,
> If you set checkbox visibility by visible property and you are using
> postback to change visible state maybe there is something in the
> postback activity that cause that behavior.
> you can change check box visibility by changing visibility attribute of
> control Style using javascrit thus reducing network traffic.
> Natty Gur[MVP]
> blog : http://weblogs.asp.net/ngur
> Mobile: +972-(0)58-888377
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!