473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

onClick works on one domain, but not another

This may be a service pack issue, but uncertain as administrators are
on vacation, but I have an insert script thats insert button works on
one server, but not on another:
Here is the subroutine, followed by the onclick tag for the button:

Sub doInsert(Source as Object, E as EventArgs)
Dim MySQL as string = "Insert into Articles (articleheader,
articledate, articletext, sid) values (@articleheader, @articledate,
@articletext, @sid)"
Dim myConn As SqlConnection = New
SqlConnection("SERVER=xx.xx.xx.xx;UID=xx;PWD=xxxxx xxx;DATABASE=myDbase;")

Dim Cmd as New SQLCommand(MySQL, MyConn)

cmd.Parameters.Add(New SQLParameter("@articleheader",
frmarticleheader.text))
cmd.Parameters.Add(New SQLParameter("@articledate",
frmarticledate.text))
cmd.Parameters.Add(New SQLParameter("@articletext",
frmarticletext.text))

cmd.Parameters.Add(New SQLParameter("@sid", frmsid.text))
MyConn.Open()
cmd.ExecuteNonQuery
label1.visible="true"
BindData()
MyConn.Close()
label1.text = "Your data has been received!"
End Sub
''onclick button
<asp:button id="button1" Text="Insert" onclick="doInsert"
class="inputBox-or" runat="server" />

....this is part of an admin script that also includes an edit module,
and the edit module works as we are able to change articles on both
servers. I'm pretty sure that both servers are running .net framework
1.1

thanks for any help
chumley

Nov 19 '05 #1
0 1014

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jamie Jackson | last post by:
I'm rewriting all links' onclick events, but I'm having a problem. The onclick event that I'm inserting works correctly in Opera, but not in FF or IE. I'm retroactively adding the statement...
3
by: Reinhold Schrecker | last post by:
Hi there, I am trying to generate a dynamic menu with JavaScript/DOM and have problems to set the onclick-attribute for my <a>-elements. The following code works fine in Opera and Mozilla but...
0
by: stillworkingfortheman | last post by:
I'm loosing cookies in IE6 (works okay with firefox) with the following steps... step 1. set a cookie in one domain, in an .aspx.cs codebehind... in www.domain.com/subdomain1/page1.aspx...
18
by: wizdom | last post by:
Help - change text on click - text has another onclick inside with php variables ---------- I think what I'm trying to do is simple. I have a 2 buttons on a page. 1 button allows a thread of...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.