i 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.
'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
I am using this plugin [URL] I am using this code:
var uploader = new qq.FileUploader({ // pass the dom node (ex. $(selector)[0] for jQuery users) element: document.getElementById('file-uploader'), // path to server-side upload script action: '/server/upload', params: {item1:$('#txtName').val() } });
Now when the request is made to server always the blank value goes to server instead of what the actual value is (I changed the value of textbox after the page has been loaded). I think the first default value of textbox is passed in this case. My question how can I pass the dynamic value of textbox to server?
I've just noticed I'm repeating a lot of C# code in my ASP.NET application so want to create a generic method. I have a series of private methods like this:
[Code]....
So, I want to replace DB.MyRepeatedCall, chtMyRepeatedChart and pass them in as parameters to a generic function. Is that possible? I have many charts on my form that take the same number of parameters.
how to pass an id parameter to jquery. For instance I have a url: http://localhost:52271/News/Index/1 What I want is id parameter which is 1, in the above url. and I need to pass that id to the script like var = url where url should be the parameter which in this case 1.
I took the MVC 2 template that comes with VS2010 and modified it to my needs.
There are now 5 different tabs in the menu, I've implemented models and controllers and that works.
But actually, the entire site should show data based on and ID (it pulls data from a webservice).
For example account info for id=1: http://localhost:49925/AccountInfo/details/1
This is always the URL where one enters the site (page will be linked to from another site, so the ID will be passed from there) So how can I pass the ID to the other Views (let's say I also have a 'Contact' tab: http://localhost:49925/ContactInfo/details/1 ) I've solved it now by storing the ID as public property, so I can retrieve it in other Controller classes, but I think there must be a better way to do this..
Also I would like to have a title in the header of the master page that shows the current account (e.g. "Showing data for account FooBar"), how can I set this from the AccountInfo controller/model(?)
Gridview has many columns and a Delete button as well. Delete button is a control as TemplateField
[code]....
Now associated SQLDataSource's Delete command's stored procedure is expecting two parameters. One is going from DataKeyNames (RowID), other one i wanna pass is the Text of btnDelete (True or False).
i want to pass 3 parameters for SelectMethod and 1 parameters for SelectCountMethod of ObjectDataSource.How can i pass these?? And how ObjectDataSource can distinguish which parameters for which methods.??
i have placed a SqlDataSource component on my aspx page but while configuring the SqlDataSource in the "Test Query" Step I am passing the following parameters :But when i click ok it returns following error:This error occurs when i pass the string :
INFO, WARN, ERROR,
I have tried a lot of combinations but nothing works. It works only if i pass one of the three words in single quotes like this :'ERROR'Infact the INFO WARN and ERROR are the various levels available in the table. Each record can have only one level and in the sql query i am using IN("-----") to match the criteria, hope you understand.
What are the available ways to pass a parameter to a UserControl ?I know the session option but actually I don't prefer it because it'll retain when any exception is occurred. I mean I prefer something like the QueryString (rely on the call or request).Note: My UserControl will be shown throught a modal popup using JQuery.
The subject of the thread is my question. I don't know whether or not it is possible. Actually in my project currently I'm feeling a need to capture a bitmap image of a web page to insert that image into pdf document. And according to the need I don't want to display that page but want to pass values as parameters to that page. Is it possible? If so, how can I do it?
I have a button which having a click event to call this function, it was created at runtime. What I want is when user click on the button, it will show/hide a calendar. The calendar also created during runtime, and the calendar's ID will change, that's y I was thinking to pass in the calendar's ID into the event handler.
I am using the webservice method of populating my radtreeview as it was described as the most efficient way to load large amounts of data. So the signature of my webservice method is:
[WebMethod] public RadTreeNodeData[] WebServiceMethodName(RadTreeNodeData node, object context)
However, the nodes that I am populating the tree with depend on the security access of the user that is logged in to my application..Is it possible to pass additional parameters to the webservice method? Or must I use a ServerSideCallBack method to populate the tree? I am hoping that I can still use the webservices functionality... I would like to pass a signature like this to my webservice method:
[WebMethod] public RadTreeNodeData[] WebServiceMethodName(RadTreeNodeData node, object context, object userSession)