Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2004, 03:41 PM
Authorized User
 
Join Date: Feb 2004
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Help HELP!!!!!!!!!!!!!!!!!!!!1

Aashish Shah
 
Old February 18th, 2004, 03:48 PM
Authorized User
 
Join Date: Jan 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Aashish,
It could be that txtReason doesn't have a text attribute because it is not a textbox.
Why don't you try txtReason.selecteditem or one of the other dropdownlist variations.
mark

 
Old February 18th, 2004, 04:06 PM
Authorized User
 
Join Date: Feb 2004
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yep!!!!!!!!!
it is giving me :System.NullReferenceException error!!
I will mass with this tomorrow now B'cos I need some sleep too!!!!!
if you can come up with some solution just post over here thanks
thanks
aashish



Aashish Shah
 
Old February 18th, 2004, 04:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Please do not flood the server with useless posts.

 
Old February 19th, 2004, 03:24 PM
Authorized User
 
Join Date: Feb 2004
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mark did you get the solution ..
I am completely down with my thinking of all the things..
thanks aashish

Aashish Shah
 
Old February 19th, 2004, 03:39 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Quote:
quote:Originally posted by markie13
 change the line
Code:
viewState("reason") = s.txtReason
to
Code:
viewState("reason") = s.selecteditem.value
and see what happens.
Then go take a nap.
Really.
mark
Try this:
Code:
viewState("reason") = s.selecteditem.value

 
Old February 20th, 2004, 12:52 PM
Authorized User
 
Join Date: Feb 2004
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Object variable or With block variable not set.
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 variable or With block variable not set.

Source Error:


Line 26: If s.id = "txtReason" Then
Line 27:
Line 28: viewState("reason") = s.selecteditem.value
Line 29:
Line 30:



this error comes it is "System.NullReferenceException: Object variable or With block variable not set".




if I look in the Stake trace :
following discription comes out. which I am not able to understand.


[NullReferenceException: Object variable or With block variable not set.]
   Microsoft.VisualBasic.CompilerServices.LateBinding .LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +785
   ASP.data_taft1_aspx.displaycontrolinfo(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:28
   ASP.data_taft1_aspx.disControls(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:17
   ASP.data_taft1_aspx.disControls(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:18
   ASP.data_taft1_aspx.disControls(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:18
   ASP.data_taft1_aspx.disControls(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:18
   ASP.data_taft1_aspx.submit_Button(Object sender, ImageClickEventArgs e) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:38
   System.Web.UI.WebControls.ImageButton.OnClick(Imag eClickEventArgs e) +109
   System.Web.UI.WebControls.ImageButton.System.Web.U I.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1263


if you can figure it out .. please tell me..
I have go through all the referance books , msdn site too..
but I am not able to figure it out.
thanks
mark.




Aashish Shah
 
Old February 23rd, 2004, 03:52 PM
Authorized User
 
Join Date: Feb 2004
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I get the solution If anyboy needs I can guide them for same problem.. thanks


Aashish Shah
 
Old May 6th, 2005, 04:55 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Please could you share your knowledge on this issue's solution with me.

Thanks.

Ashley





Similar Threads
Thread Thread Starter Forum Replies Last Post
dropdownlist sumith ASP.NET 1.0 and 1.1 Professional 1 February 23rd, 2007 09:11 AM
DropdownList Venkatesan ASP.NET 1.0 and 1.1 Basics 1 December 11th, 2006 11:03 AM
how to get value from dropdownlist vandat ASP.NET 1.0 and 1.1 Basics 3 November 28th, 2005 12:47 AM
DropDownList chiraagb VS.NET 2002/2003 5 June 15th, 2004 03:12 AM
dropdownlist msrnivas .NET Web Services 0 March 4th, 2004 11:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.