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

January 6th, 2007, 04:01 PM
|
|
Registered User
|
|
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 8th, 2007, 12:42 AM
|
|
Registered User
|
|
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi,
r ur button's "runat" property is set to "server" or not,if not set it 2 server n try again
----------------------
Thank
[email protected]
|
|

January 8th, 2007, 01:35 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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
|
|

January 12th, 2007, 05:55 PM
|
|
Registered User
|
|
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|
|

January 12th, 2007, 06:58 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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?
|
|

January 15th, 2007, 11:43 AM
|
|
Registered User
|
|
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|
|

January 15th, 2007, 02:57 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

January 15th, 2007, 03:02 PM
|
|
Registered User
|
|
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|
|

January 15th, 2007, 03:06 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

January 15th, 2007, 03:07 PM
|
|
Registered User
|
|
Join Date: Jan 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|
 |