Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 6th, 2007, 04:01 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP. Button Control not posting back

Hi,
I developed an ASP 1.1 application on my system. I tested it and it worked fine. Then i deployed it to a production server.But running it for the first time,i discovered that none of the buttons posted back.When you click on any of the buttons,they just dont respond i.e. they dont post back. and i ensured that that EnableViewState for the webform and the buttons were set to True. Yet the server code wasnt executed.

Pls help. Thanks
  #2 (permalink)  
Old January 8th, 2007, 12:42 AM
Registered User
 
Join Date: Jan 2007
Location: pune, , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
r ur button's "runat" property is set to "server" or not,if not set it 2 server n try again

----------------------
Thank
hari@eilisys.com
  #3 (permalink)  
Old January 8th, 2007, 01:35 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

hhkris4u that is likely not the problem because if I declare a button such as:

<asp:Button id="name" text="foo" />

the runtime will generate an error similiar to: "Server tags require the runat="server" attribute" when i try to view the page.

innochig, this makes no sense could you explain further.

-------------------------
I will only tell you how to do it, not do it for you.  
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
  #4 (permalink)  
Old January 12th, 2007, 05:55 PM
Registered User
 
Join Date: Jan 2007
Location: Garland, Texas, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to highpointbleed
Default

dparsons... please help.

Here is what I got... Old Box, running 2K Pro., Internet Services Manager (IIS 5.0), 1.1 Framework, 2.0 Framework, and the AJAX RC. In the IIS, I have a virtual directory running on the 1.1 framework. IE 6.0.2800.1106. Everything is peachy. Site runs without problems.

New Box - XP Pro, IIS 5.1, 1.1 Framework, 2.0 Framework, and the AJAX RC. In the IIS, I have a virtual directory running on the 1.1 framework. IE 6.0.2900.2180. I run the site and about80% of the <asp:button>'s do nothing.

Both are running the exact same code.

On the Page: <asp:button id="btn_Save" runat="server" tabindex="37" Font-Bold="true" CssClass="btnstyle" Width="112px" Height="24px" Text="Update Ticket"></asp:button>

On the Code Behind:

Sub btn_Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Save.Click

I do some db stuff in here, not relevant.

End Sub

I seriously plan to re-write this app in 2.0, but in the meantime, I have to have a stable area in order to do my dev work, and when no buttons work, it is not stable.

I have checked all the IIS settings on both machines, gone over all the files (web config, project, etc.).

At wits end,

Doug


smell that - that's tension...
  #5 (permalink)  
Old January 12th, 2007, 06:58 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,048
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

How does the final HTML in the browser look like?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Fight Against Oppression / Pure Science by Terry Francis (Track 5 from the album: Architecture) What's This?
  #6 (permalink)  
Old January 15th, 2007, 11:43 AM
Registered User
 
Join Date: Jan 2007
Location: Garland, Texas, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to highpointbleed
Default

The problem must lie in the IIS. When I browse to the dev site on the old box, it comes up and buttons work. When I try to browse out to the "new" site on my new dev box, buttons do not work. Woudl the different versions of IIS (5.0 and 5.1) be causing the buttons not to function? Is it because it is set up as a virtual directory?

The HTML of the buttons is:
<TD style="WIDTH: 125px; HEIGHT: 25px">
<input type="submit" name="btn_Save" value="Update Ticket" onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " language="javascript" id="btn_Save" tabindex="37" class="btnstyle" style="font-weight:bold;height:24px;width:112px;" /></TD>


smell that - that's tension...
  #7 (permalink)  
Old January 15th, 2007, 02:57 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,048
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

Does the site that doesn't work have an aspnet_Client folder in the root of the site?

This folder contains the client side scripts used for validation, and are required for the validation controls to function properly.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #8 (permalink)  
Old January 15th, 2007, 03:02 PM
Registered User
 
Join Date: Jan 2007
Location: Garland, Texas, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to highpointbleed
Default

I had to put it there. It had the 2.0 folder, so I copied the 1_1_4322 folder over.

smell that - that's tension...
  #9 (permalink)  
Old January 15th, 2007, 03:06 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,048
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

It's put there automatically for existing sites when ASP.NET 1.x is installed. However, for new sites, you need to manually copy it there. .NET 2 no longer uses this folder.

Does it work now?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #10 (permalink)  
Old January 15th, 2007, 03:07 PM
Registered User
 
Join Date: Jan 2007
Location: Sopron, Györ-Moson-Sopron megye, Hungary.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If it's a <input type="submit" /> button it should always sent the form to the server. Is it possible that the validation prevents this on the client side via JavaScript?

Did you try other types of buttons like LinkButtons, ImagesButtons?
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
block browser back button in asp.net URGENT naeem_ul_hussan Classic ASP Professional 2 August 3rd, 2007 12:40 PM
onChange posting back to same page? busher Classic ASP Basics 1 March 1st, 2005 06:20 PM
posting back javascript data badgolfer ASP.NET 1.0 and 1.1 Basics 2 September 26th, 2004 10:05 PM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 01:14 AM



All times are GMT -4. The time now is 09:42 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.