Thank you Borislav. I tried your suggestion, and nothing is sent to SQL Server. I did discover, however, that if I do the following, it works:
string DBString = ConfigurationManager.AppSettings[DSN].ToString();
SqlConnection conn = new SqlConnection(DBString);
conn.Open()...
I'm working with an ASP.Net 4.0 project, and I'm calling a stored procedure on a SQL 2008 64-bit server. When I call the stored procedure, I don't get an error message, but the stored procedure doesn't do anything. When I call the stored proc natively in SQL Management Studio, it works fine...
Hi - I've just converted an ASP.Net 2.0 solution to 4.0. In general, it seems to work fine, but there's one point in the code that consistently throws an error on 2 Windows 7 machines, one 32-bit, one 64-bit. The same code works fine on a Windows 2003 machine in the 2.0 framework. Note that...
A co-worker helped me out. Here's how you do it: Put the following code under the CheckBoxList definition on the aspx page:
<script type="text/javascript" language="javascript">
var controlID = '<%= cblDetails.ClientID %>';
var chk =...
Alas, I think I need to do this via .Net because I only want to call this when the page first loads, not on every page load. I'll post on a .Net or C# forum, thanks!
Hi - I have an ASP.Net 2.5 application and I need to call a javascript function when one of the pages loads initially. I've tried:
string ScriptToCall = @"EnableCheckboxes(" + cblDetails.ClientID + ", false);";
ClientScript.RegisterStartupScript(this.GetType(), "addScript", ScriptToCall, true)...
Ah! I didn't know that about OnClientClick. Good to know for the future. Just for the record, I solved my problem by a) using a hidden field to store the info I needed to pass back to the server and b) combining my two functions into one that had different behavior based on the value of the...
Let me also be more specific - when I say I need to query the values in the various cells of the GridView, I need to do this in the .Net code-behind file, using C#. So my code is like this:
if (cellStatus.Text == "Hidden")
{ do something }
I realize this isn't a .Net or C# forum, but I'm...
OK, good to know. How do I query the DOM? I need to do further processing based on the text currently showing in the fields. Plus, how do I get my button to actually call the ShowAvailable function instead of its original ShowDelete function?
Thanks!
Hi - I'm working in ASP.Net 2.0. My page has a GridView control, which is populated by a SQLDataSource. The GridView has one Button control per row. The button has a client-side javascript function (ShowDelete) attached to its OnClientClick event on DataBinding of the GridView. This event fires...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.