parameters

SqlCommand.Parameters.AddWithValue issue

Hi I have a problem with the folowwing piece of code. I am passing a parameter (List) to a methods executing the following code. When it executes sql throws an error saying that the proc expects a parameter that was not provided. I know this error and understand it, and when stepping through the code I can see that the cmdExecuteReader ...

Problem FlashVars parameter asp.net

Code for asp.net page <%@ Page Language="VB" AutoEventWireup="false" CodeFile="trainingupload.aspx.vb" Inherits="trainingupload" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head runat="server"> <title...

When is a parameterized method call useful?

A Java method call may be parameterized like in the following code: class Test { <T> void test() { } public static void main(String[] args) { new Test().<Object>test(); // ^^^^^^^^ } } I found out this is possible from the Eclipse Java Formatter settings dialog and wondered if there are...

Ajax call with jQuery in ASP.NET MVC does not pass parameters

The Route is: routes.MapRoute( "Ajax", // Route name "BizTalk/Services/{action}", // URL with parameters new { // Parameter defaults controller = "BizTalk" } ); My Controller is: public JsonResult AjaxTest(string s, int i, bool b) { return Json("S: " + s + "," + "I: " + i + "," + "B: " + b); } My ...

How to call the previous querystring parameter in .aspx

Let's say I have a ActionResult method that has a pageNumber parameter and a category parameter. The user should be able to set the category he's browsing which would be a ActionLink to the first page of that category. However if I have an another ActionLink where I go to the next page the category parameter would go back to default. H...

how to add parameters with mulitselection enabled in ssrs 2008

Well, I have a table called Resource(ResourceId,ResourceName) and a table Session (SessionId, StartDateTime,EndDateTime,ResourceId) I have a line chart that shows the count of sessions for a given month for each resource. so it will be something like Count Month resourceid resourcename 10 Jan-2006 2 ResourceA 9 Jan-2006 ...

form_form and custom parameter in path_prefix

Hi people, I have this route: # config/routes.rb map.namespace :backshop, :path_prefix => '/:shop_id/admin' do |backshop| backshop.resources :items end And I want to use the form_for magic to reuse the same form on both: new and edit views: <% form_for [:backshop, @item] do |f| %> This used to works, and used to build a create ...

what's this jquery syntax?

I see that quite often in some Jquery plugins $('#foo').myPlugin({ foo: 'bar', bar: 'foo' }); I'm talking about the {} in the .myPlugin() part. I see quite often anonymous functions like .click(function(){ }); but the above syntax looks different thanks for your help! ...

optional arguments in haskell

Hello, I have declared my own type: data Book = Bookinfo { bookId :: Int, title :: String } deriving(Show) and now: x = Bookinfo it is all ok, valid statement but making bookId x throws an error. If I would be able to handle errors in Haskell that would be ok but right now I cant do this So ...

Passing partial arguments in tcshell

Hey, I'm writing a shell script (tcsh) that is supposed to received 3 parameters or more. The first 3 are to be passed to a program, and the rest are supposed to be passed to another program. All in all the script should look something like: ./first_program $1 $2 $3 ./second program [fourth or more] The problem is that I don't know ...

Conventions for order of parameters in a function

In writing functions my brain always spends a few milliseconds to check which order of parameters would be best for a given function. should I write: public Comment AddComment(long userID, string title, string text) Or probably: public Comment AddComment(string title, string text, long userID) Why not: public Comment ...

Stored Procedure Parameters Not Available After Declared

Hi All, Pasted below is a stored procedure written in SQL Server 2005. My intent is to call this sproc from my ASP.NEt web application through the use of a wizard control. I am new to SQL Server and especially to stored procedures. I'm unsure why my parameters are not available to the web application and not visible in SSMS treeview ...

After MS Access Conversion 97 --> 2002 I get 'Enter Parameter Value' when exitting a form.

Hi, So when I exit a form from my newly converted .mdb it asks to Enter Parameter Value. It goes through (ie if i enter a value, it asks for another) the values required for a query that is run on a List Box on the page. The query has not been changed during the conversion. The values it is getting for the query are from text boxes...

Passing data to a jQuery click() function

Hi I have a simple span like so <span class="action removeAction">Remove</span> This span is within a table, each row has a remove span. And then I call a URL using AJAX when that span is clicked. The AJAX event needs to know the ID of the object for that row? What is the best way of getting that ID into the click function? I thoug...

XSLT parameter not replaced

Could someone advise me what's wrong with the XSLT transformation below? I have stripped it down to a minimum. Basically, I would like to have a parameter "title" replaced, but I cannot get it to run. The transformation simply ignores the parameter. I have highlighted the relevant bits with some exclamation marks. Any advise is greatly...

C# Late Binding for Parameterized Property

I'm trying to use late binding to connect to a COM automation API provided by a program called Amibroker, using a C# WinForms project. So far I've been able to connect to everything in the API except one item, which I believe to be a "parameterized property" based on extensive Googling. Here's what the API specification looks like acco...

Can I pass an argument to a VBScript (vbs file launched with cscript)?

...

T-SQL SQL Server - Stored Procedure with parameter

Please, the first TSQL works FINE, the second does not. I guess it must be a simple mistake, since I am not used to T-SQL. Thank you for the answers. R Conte. *** WORKS FINE *********************************** (parm hard-coded) ALTER PROCEDURE rconte.spPesquisasPorStatus AS SET NOCOUNT ON SELECT pesId, RTRIM(pesNome), pesStatus, ...

Parameters with default value not in PsBoundParameters?

General code Consider this code: PS> function Test { param($p='default value') $PsBoundParameters } PS> Test 'some value' Key Value --- ----- p some ...

Change paper size in the middle of a latex document?

Does anyone know how to change these length parameters in the middle of a latex document? \paperwidth \paperheight I would like to define a page size for a single page (possibly two or three). I tried v5.3 of the geometry package, which just added some new features; like \newgeometry. Unfortunately \newgeometry cannot be used to rede...