parameters

advanced parameter usage

//This is the function that will run every time a new item is added or the //list is sorted. var showNewOrder = function() { //This function means we get serialize() to tell us the text of each //element, instead of its ID, which is the default return. var serializeFunction = function(el) { return el.get('text'); }; //W...

Mutiple Methods, or parameters?

Ok, so I am designing a class here and I have two options. I can either write multiple methods or a single method which takes say an Enum. I'm trying to figure out the best way to do this. Lets take an example: public class myClass { ... public void DoStuff1() { ... Do Stuff ... } public void DoStuff2() { ... Do Stuff...

How to programmatically set parameters for EntityDataSource and DetailsView ?

Im stumped! What is the best way to programmatically set a selecting parameter for the EntityDataSource control? Specifically, I want to use the Page.User.ProviderUserKey to get a record in a custom User Details table I have, for a DetailsView. I've seen code using the asp:ControlParameter to pull a value from a control, but that almo...

asp.net mvc can i have a menu that links by both id and username

I am basically taking the default ASP.NET MVC template and extending it: Looking at the site.master, I see this for menus: <ul id="menu"> <li><%= Html.ActionLink("Home", "Index", "Home")%></li> <li><%= Html.ActionLink("About", "About", "Home")%></li> </ul> I am then editing it by the following: <ul id="menu"> ...

Passing parameters from SL Reporting to Reporting Services

I am trying to figure out how to pass some of the options from Microsoft SL Reporting to my report in SQL Reporting Services. I need to use them as parameters for my SQL statement in the report and can not figure out how to accomplish the connection between the two programs. During runtime, SL Reporting creates the RptRuntime table that...

How to give parameters in the url?

The question raised from the question here. In order to have search engines in Browser, I need to find a way to get the parameters to url. Suppose you have Google Sites where you have Google Gadget. The gadget has a search box. How can you give the search parameters to the search box? ...

How would I skip optional arguments in a function call?

OK I totally forgot how to skip arguments in PHP. Lets say I have: checkbox_field ( $name, $value = '', $checked = false, $compare = '', $parameter = '' ) How would I call this function and skip the second last argument? checkbox_field('some name', 'some value', FALSE, '' , 'some parameter'); Would the above be correct? I c...

How to write a method/message with multiple parameters?

How do you write a method/message with multiple parameters? EDIT: Like multiple parameters for a single method/message, I mean. ...

Are there any methods in .NET BCL which take `ref` parameters?

TryParse family of methods uses out parameters; I could give Swap as an example of ref parameters being useful, but are there good examples in the .NET Base Class Library? ...

passing form parameters through html

Hello, My code is : //cron.html <head> <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 11"> <meta name=Originator content="Microsoft Word 11"> < </head> <body> <form method="post" action="CETrafficGenerator.php?step=2"> <...

Passing parameter via url to sql server reporting service

I'm trying to pass a parameter via the url to SSRS and it appears not to work! I'm trying to pass a userId (string) via the url which will be passed to the database and used by the query. base url: http://blah/Reports/Pages/Report.aspx?ItemPath=MyReport tried this but it doesn't work: http://blah/Reports/Pages/Report.aspx?ItemPath=MyR...

MySQL stored procedure call from ASP.NET 2 throws Use Procedure bodies exception

Hi I have the following scenario. I am calling stored procedures to MySQL 5.x from my .NET 2 application. All stored procedures have parameters and they work fine with the exception of two which throw the following exception (only when deployed to production): "When calling stored procedure and 'Use Procedure bodies' is false, all param...

Crystal Report subreport loses linked parameter on production server.

I have created a crystal report called 'Order Details'. I used visual studio 2005 (crystal ver 10). The order details report uses a stored procedure to populate itself. It contains a subreport called 'ChildAssets' which calls a seperate stored procedure, the sub report needs a parameter. The parameter it needs is actually a field from ...

Change URL parameters with jQuery?

I have this URL: site.fwx?position=1&archiveid=5000&columns=5&rows=20&sorting=ModifiedTimeAsc what I need is to be able to change the 'rows' url param value to something i specify, lets say 10. And if the 'rows' doesn't exist, I need to add it to the end of the url and add the value i've already specified (10). Anyone know the easiest ...

displaying parameters

When deploying my report the paramter selection at the top is automatically hidden, you have to click the double down arrows to display them. Is there a way to set it so that these are automatically shown? ...

sub query with parameter?

Hi Pros, I'd like to ask help on this small query of mine. Im doing a query and a sub query on my sub query i want to have it parameterized. Is there a way to do it? Please see my query script. select sum(issue) as [Issue], sum(nonissue) as [NonIssue] from ( AS select case when isissue = 1 then 1 else 0 end as 'issue', ...

What's the Difference Between <s:property ..> and ${param}

In struts I notice there are two different ways to access variables. I am curious what the difference is and when to properly use each one. For example, suppose we set the variable height like so: <s:set var="height">300px</s:set> Now I can use it two ways: <div style="height: ${height}">&nbsp;</div> ..or.. <div style="height: <...

Reading and assigning a void type parameter

I wrote two methods with a void type parameter: procedure Method1(const MyVar; size: cardinal); var Arr: array of byte; begin SetLength(Arr, size); {now copy the data from MyVar to Arr, but how?} end; procedure Method2(var MyVar; size: cardinal); var Arr: array of byte; begin SetLength(Arr, size); {return the data from th...

Why is this Java PreparedStatement throwing ArrayIndexOutOfBoundsException 0 with parameterIndex = 1?

The following method, when called with something like String val = getCell("SELECT col FROM table WHERE LIKE(other_col,'?')", new String[]{"value"}); (this is SQLite), throws a java.lang.ArrayIndexOutOfBoundsException: 0 at org.sqlite.PrepStmt.batch(PrepStmt.java:131). Can anyone take pity on my poor bumbling here and help me with why? ...

Using parameterized SQL with LIKE in WHERE clause (Pervasive SQL)

Hi all, I have a Pervasive database that I connect to using C++. All my queries so far is parameterized, i.e "SELECT USER.NAME FROM USER WHERE USER.ID = ?", and that works fine. But in a search query I use LIKE in the WHERE clause, and then it seems I can't use parameters and wild chars (%). My query looks something like this "SELECT ...