Pass Parameter From Page To ActiveX?
May 12, 2010<object id="Bacs_DBTableRepX"
classid="CLSID:CA8B72B3-3B15-40D7-9364-478E25AF5B41"
codebase="Bacs_DBTableRepX.cab"
[code]...
<object id="Bacs_DBTableRepX"
classid="CLSID:CA8B72B3-3B15-40D7-9364-478E25AF5B41"
codebase="Bacs_DBTableRepX.cab"
[code]...
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?
View 2 RepliesCan a view pass some sort of model like data to a Master page? I am using the ViewData collection, but that makes for confusion in my code. When I specify the Master in the View, can I also specify a parameter?
View 1 RepliesWe are using a asp.net page to submit data to server. what we do is we will pass as parameter in url Query string) and in page load we take that values and submitting to database I have these following doubt
1, What is the default event happening while we call a ASP.NET page is it a POST or GET? We tried to call this url from a mobile application, it is not happening , we are not getting any error also in the mobile application.
2, IF we are calling the url to submit data from mobile applications which one we have to use (GET or POST)
3, IF we are calling this url from an application running in PC to submit which one we have to use ?
In my asp.net web i used the following code:
<asp:LinkButton ID="LinkButton1" runat="server"
PostBackUrl="unitlink.aspx?coy=tata">Tata</asp:LinkButton>
The data is correctly displaying in gridview.
There is a label (label1.text) in the same page i want to display the coy in that label along with the gridview....
I have passed the value from one page to next page using a querystring. In the next page i need to get the value from the query string and based on the value, it needs to checked with the database and the result set should be placed in the gridview, details view or listview anything else.
Ex: Response.redirect("user.aspx?id="+userinput.text);
userdetails.aspx?id=vicky - url
table:
user mobileno email
vicky 9848752322 ervigsh@gmail.com
In the details view or list view control, I need to get the value vicky from the url and based on the value's row in the database table need to be binded in any of the mentioned above controls.
Currently I have written the Activex Control for RFID USB reader and calling that one in ASP.NET web application. The Activex Control is working fine when I will give the full trust permission for particular IIS URL in
1. Open Control Panel > Administrative Tools > .NET Framework 2.0 Configuration
2. Expand Runtime Security Policy > Machine > Code Groups > All_Code
3. Right Click All_Code and click New...
4. Create a new code group, I named mine MyProject_FullTrust_Zone
5. Choose the URL condition type and specify the path on the network where the apps will be deployed.
6. Choose Use Existing permission set, and set it to Full Trust.
Alternative way of giving permission for an Activex Control is
1. Open Visual Studio Command Prompt
2. Run the command caspol -machine -addgroup 1. -site <ip address> FullTrust Doing this it works fine.
Whenever my web site will open, it will ask the user to give permission for the Activex Control using Allow or Cancel Button in browser. This type of functionality I have seen some web site which takes input from the user to allow the ActiveX Control.
I want to integrate a ActiveX control into asp.net page, I wonder if Firfox can support ActiveX control or not?
View 1 Replieshave a page called: TagUpdateReportPalletDeadSurplus1.aspx. On this page I have a link to a second page calledptPalletSurplusAndDeadDirectFromURL.aspx with a ms reportviewer report.I pass a parameter called ConfirmationID to the second page with a query string.Here is an example of the query string:http://localhost:4132/StateTag/rptPalletSurplusAndDeadDirectFromURL.aspx&rs:Command=Render&ConfirmationID=2010-02-08-12:27:37Do I have the correct syntax in the query string?How do I get the second page (rptPalletSurplusAndDeadDirectFromURL.aspx) to accept the parameter and pass it to the rdl report?
View 4 Replies I am not sure how to pass a variable from an .aspx page to an .ascx page. I have a Control that puts rotating banners on a page. The control has several public properties. However, only one of those properties changes on the page level. All the other properties are the same for every page site-wide. So, instead of setting all the properties on every page in my sites (many sites), I want to set it up so I only have to setup the sitewide properties once and only the page level properties on each page.
I want to create a control with a property of AdKeyword="somename" and pass it to another control that will grab that page-level property and add it to all the other site-wide properties. I guess what I need could be called a Dynamic Control Property.
My .aspx page has:
[Code]....
[Code]....
Now, how do I pass the "OverrideHeight" parameter to the "uc1:banner" control on the banner1.ascx page?
I tried binding the parameter with a
[Code]....
string in the control. But, that did not work.
So I have written as part of an application some code that on my clients website pulls some information from SQL server and uses it to create a new file using a Word with bookmarks as a template. It works fine on my development machine, but not on my production server with the error: "Cannot create ActiveX component.: Word.Application". Now I have been approaching this as if it is an issue with Office, but it occurred to me that this might be another issue. Maybe some security issue with ASP.NET? My original thought was it was some kind of compatibly problem as I had Office 2007 on my machine and 2010 on the server.
Code:
Protected Sub btnCreate_Click(sender As Object, e As System.EventArgs) Handles btnCreate.Click
Dim objWord As Object
Dim objDoc As Object
Dim strContractFile As String = "~Documents" & txtContractFile.Text
Dim strContractFilePath As String = Server.MapPath(strContractFile)
[Code] .....
[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 Replies'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 want to pass parameter in image tag's src.
i send an image in email, for email tracking but i want to pass parameter in image tag's src.
message.Body = "<img src='http://test.com/test1.aspx?imageID=defaultimg.jpg&custID= + System.DateTime.Now + &campID='32434'/>";
I think the title says it all, I have an activeX control, that ask the user if he want's to install it every single time the page loads (Even if it is already installed). Can anyone point me in the right direction? What I have tried so far:
Setting new Guids for the class & interface.
Changing interfaces names & method names.
Changing version number
Uninstalling and re-installing the activeX
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 need to pass an url from asp.net load_page to flowplayer javascript function here:[URL]
View 2 RepliesI'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.
UPDATE
Following Frederik's solution I have done this:
[Code]....
I am calling the function with this command:
PopulateControl (chtEquityCurve, DB.GetAccountBalances());
I get this error in the intellisense:
No overload for method 'GetAccountBalances' takes 0 arguments.
i wants to pass table, two fields and dropdownlist as parameter to
to construct a user defined function in class module, to retrive keycode,keyname from a table
iam wokring in csharp code
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.
View 1 RepliesI 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(?)
public Jquery Extra(this HtmlHelper htmlhelper,
string message,
IDictionary<string, object> htmlAttributes)
if i declare the this Htmlhelper htmlhelper when i declare my method, but i don't want to pass that parameter in when i call the method?
I have one hyperlink I want to pass more than one parameter in hyperlink
but cant pass perfect data in query string
using database.
same data pass in another page using this code.
<asp:HyperLinkField DataNavigateUrlFields="Product_Id" Target="_blank" DataNavigateUrlFormatString="AddprodPhoto.aspx?Product_Id={0}&Catalog_Id={0}" Text="Upload">
o/p
[URL] ....
product_id pass right Catalog_Id=2 is wrong
I have a control in a 'window control library' which handles - 'drag and drop' files from computer to a listbox control, I then reference this .dll in .aspx (See code below). Now, when i try to access this through webserver for drag
and drop files i get following errror - The type of the first permission that failed was : System.Security.Permission.FileIOPermission.
How do I handle this, so that drag and drop of files can happen over the webpage residing at webserver.
namespace testWinControl1