ADO.NET :: How To Supply A Parameter
Dec 16, 2010Procedure or function 'Inser1' expects parameter '@CustoemrID', which was not supplied.supply a parameter for binding a gridview
View 4 RepliesProcedure or function 'Inser1' expects parameter '@CustoemrID', which was not supplied.supply a parameter for binding a gridview
View 4 RepliesWe have a web application that I've just enhanced (and gotten rid of the MsgBox in it , too!) It runs on our production web server. I have the solution loaded in VS2005 on my PC. It's been deployed before, but this is the first time I am deploying it and I want to make sure I know what I'm doing. So I will choose Publish from the Build menu, and I think I want to say Remote Site - is that what will plop all my new stuff over the old? And is the value that I supply for Remote Site the URL, or would I use the IP
View 21 Repliesi built a user control and i want to make one of its properties as a must, that's mean if you not supply this control when you create the control the project won't be compile, just like if you omit the runat="server" property.
View 17 RepliesJust looking for recommendations, we have a need to supply a chat-room for our customers. It will be small-mid scale usage, has anyone purchased any products recently that they recommend? Open to bundled, open-source, or SaaS implementations.
View 2 RepliesI have a custom code that I was planning to distribute as class dll. I would like to add Licensing logic to it so that my dll is not distributed freeely to others. In other words, I want to supply dll and licensing for each client. Is there a recommedation on how to do that?
I was thinking on hard coding some lookup value from client hardware and do such validation.. but not sure.
I am using the code as below of this post:First i will an fill array variable with the correct values for the controller action.Using the code below i think it should be very straigtforward by just adding the following line to the javascript:
data["__RequestVerificationToken"] = $('[name=__RequestVerificationToken]').val();
The <%= Html.AntiForgeryToken() %> is at his right place and the action has a [ValidateAntiForgeryToken]
But my controller action keeps saying: "Invalid forgery token"
====================CODE=======================
data["fiscalyear"] = fiscalyear;
data["subgeography"] = $(list).pa n
[code]....
I am using the code as below of this post:First i will an fill array variable with the correct values for the controller action.Using the code below i think it should be very straigtforward by just adding the following line to the javascript:
data["__RequestVerificationToken"] = $('[name=__RequestVerificationToken]').val();
<%= Html.AntiForgeryToken() %> is at his right place and the action has a [ValidateAntiForgeryToken]
But my controller action keeps saying: "Invalid forgery token
I have a form in formview which uploads data to my mssql databse fine. I want to send an e-mail after the data is uploaded to supply notification that someone has filled out the form. I am trying to use OnItemInserted to achieve this. This is the error message I get:
Compiler Error Message: CS0122: 'Personal_Loans.ClientappFormView_ItemInserted(object,
System.Web.UI.WebControls.FormViewInsertedEventArgs)' is inaccessible due to its protection level
linked to the line of code for the formview:
<asp:FormView ID="Clientapp" runat="server" DataKeyNames="Key" DataSourceID="ClientData" DefaultMode="Insert" OnItemInserted="ClientappFormView_ItemInserted" >
My code on the page behind is this:
void ClientappFormView_ItemInserted(Object sender, FormViewInsertedEventArgs e)
{
TextBox email = (TextBox)Clientapp.Row.FindControl("email");
DropDownList title = (DropDownList)Clientapp.Row.FindControl("title");
This is then followed by the e-mail sending code. The servers CAS level is set to "full" I have tried using capitals and all lowercase for OnItemInserted I get the same result.
I finished watching MVC 2 Model Validation video and they added attribute:
[Required (ErrorMessage="Please supply a name for this product")]
public string ProductName{ get; set; }
This is ok if you want to display English but how do you handle Localization?
I've a MDX Query that has where clause as shown below.I'm designing report using SSRS 2008. How can i pass date as parameter? I tried to setup @from and @to as parameter but not working?
WHERE ( {[Date Central].[Calendar Date].[2010-04-01 00:00:00]:[Date Central].[Calendar Date].[2010-08-30 00:00:00]} )
need it to work as
WHERE ( {[Date Central].[Calendar Date].[@From]:[Date Central].[Calendar Date].[@To]} )
Is it possible to change a parameter's property after the uer has made a selection or filled in another parameter field? I'm using VS2005
Case:
- 3 parameter fields; Country,Station,Carrier all three are textfields and are allowed to stay 'blank'.
- When the user enters a Country-code in the 'Country' parameter field, the 'Carrier' parameter should become a required field.
I did some searching on the net, but haven't found the solution. I started to wonder if it's actually possible?
I have a parameter Owner with 1,2,3 options in dropdown.
On selection of option 1 , a country parameter should be enabled with all countries' values defaulted.
Option 2 should enable Region parameter with all the Regions values selected and country parameter should be displayed.
Option 3 should disable both Region & Country Parameter.
I am using SSRS 2005 with Enesys tool as add on.
One of our customers has a report with a single value string parameter that has over 1000+ possible values. selecting single value from 1000+ choices results in bad UI, among other things.create another parameter that acts a filter for the other parameter. So you would have Param1 with say 25 choices and selecting a choice would narrow down the option for the second parameter.Is this the best way. What is the best practice for handling these kinds of parameters?
View 5 RepliesHow do you use the http POST method with a Grid View on another page. I am trying to use the POST method to send the ID from the selected row of a Grid View, I am using a link button set to fire the select command and it has the Post Back URL set, from one page and then retrieve the ID value on another page using an Object Data Source. Also, under the Defining Parameters, I am setting the ID parameter to Form Parameter Source and have entered the Grid Views name in the Form Field.
View 4 RepliesWe're getting a server error saying "Parameter count does not match Parameter Value count." Anyone have any idea what this could mean?
[URL]
Our site's on ASP.NET Webforms running DotNetNuke as a CMS.
I've tried uploading an older version of the web.config file but it doesn't seem to have changed since the error came up. It wasn't in any of our recent module file uploads because I reuploaded the old files from this morning that we changed.
Could any changes in the database cause this or would it have to originate from an error in the code?
Ive seen tutorials showing URLs that takes 1 parameter (e.g:http://localhost/nerddinner/edit/10).Which means that 10 is the edit method argument,however,i want to pass a second parameter,how can i do that?I tried http://localhost/nerddinner/edit/10&250 but it failed.
View 3 Replies[Code]....
View 3 Repliesi have a grid with an image column, i want to change images based on data source. if data field for a row is 2 then image will be *.gif and if it is 3 then will be different so it is not fixed that which type of images we will have so i want to do "if..else" on css because in that case we can easily change images on css. i don't want code on code behind file.
View 2 RepliesI am working on a website in asp.net mvc. I have a route
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
ew { controller = "Home", action = "Index", id = UrlParameter.Optional }
I have written a function and want to add some description against each paratemeter it takes, how can i do this in vb.net?
[Code]....
I am making a web post on my website and I need to get the url ("PageID") to link the post.I need to get what's in bold in this code.
[Code]...
'm constructing a url which in itself has a url, and both are parameterised.E.g. string postUrl = "target_page.aspx?url=post_page.aspx?p1=9&p1=9&post_type=1he url and parameters in bold are the inner url so when i refer to querystring parameter 'url' I want it to bring backurl=post_page.aspx?p1=9&p1=9 and not url=post_page.aspx.hat should I encode and to ensure this comes out correctly
View 1 RepliesI need to edit URL like this below www.abc.com/Search?key=xxx I want to pass new variable and request it from URL.
View 10 Replieswhat is the code to access the parameter sent to a view by the urlif i have a url say .../home/index/3the 3 is passed as a variable called id in the controllersay the controller returns a list where all the ids = 3 (in this case) and that list returns no values, i then cant get the value of id from the model because it is emptyI think i would need to get it from the url but i dont know the code to do that
View 6 RepliesI have following code
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
UpdateCommand="UPDATE [gMeter] SET ... [userId] = @userId ...
I need to parametr @userId assign session variable Session["userId"], I tried
[userId] = <%= Session["userId"]%>
But it does not works.