I would like to use methods in the RDLC designer from external sources. How can I reference an external method say for a complex calculation in a field? The internal vb code is not robust enough.
Right now it reports the following error: "Cannot locate the resource". I figure that I am specifying the url incorrectly. This javascript is in an external file located in the same directory as Default.aspx .
I am getting an error while calling a javascript from a dropdownlist which is placed inside a modal pop-up panel. if i am ebeding a small script like onchange="javascript:alert('hello');", it works fine. But if i m using <script> </script> for embeding a javascript its showing 'object doesn't support this property' error. when i debugged it the compiler does not get into the javascript function.
My external javascript file named "messages.js" located in the "/scripts" directory:
[Code]....
How do I call this function from my codebehind? I need to register it through the client script manager right? Can someone provide me the call as I'm not sure how to add the function through an external file using type="text/javascript"
I have been trying everything (albiet I am a novice, but I am out of tricks) to get the Report Viewer to simply accept a couple paramters.What I have is a dropdown list, bound to an object datasource from my BLL (Areas)Then I have a report viewer. It is bound to an object datasource from my BLL (FDWelds)The second object datasource is bound to the control, dropdownlist.
In the Method FDWelds objectdatasource has a parameter @Area_AreaID, and the RDLC report has a parameter called @Area_AreaID. If I set the default in the RDLC, I can display a textbox in the report showing the default parameter, but a. It doesn't actually filter the report and b. No matter what I change in the drop down box, I can never change the parameter.I have looked online, and see lots of coding to make this work, but is there just not a simple way to bind these?If you can show me a link to where to code works with a .BLL I would be so grateful ...
I want to display values aligned with a header grid. An employee might start from 7:00 a.m. to 9:00 a.m. for their first break. I am trying to display the values 7:00 and 9:00 aligned with the header.
I use the RDLC/Report Viewer in my web application. Customers would like me to bypass the report viewer and go directly to PDF. Does anyone have an example of how I can do this.
Here is what I need to to. I have a gridview which I have a column that has a link to a pdf file on our file server. When I click the link I need to go into a database and update a column that they clicked the link then I need to open the file. by usinga HyperLinkField I am able to put in the link that I want to go to and when the page is running I can click on the link and it goes to the page and everything works fine except for being able to update the database part.
[Code]....
I tried using a ButtonField where in the code behind in the GridView1_RowCommand I pull out the file path and put it into a response write statement the problem I'm having with it is that when it opens the file it removes all the ""s so I get the error file cannot be found.
is it possible to have a button defined outside a grid view and give it a command name of "select" and somehow attach it to the gridview, so the grid recieves a select command when clicked without writing code?
I often want to call a function in the code behind using the "<%# ... %>" syntax. Sometimes is works and sometimes it doesn't. It is also a difficult syntax to search for. Can someone point me at an explanation of the working (or not) of this syntax?
For example. The function is in the code behind (it returns a string). The TextBox is empty and no break point is hit in the function; it does not appear to be called.
I am having the binary data in sql table field 'ImgSt' .
I want to show the binay data as a jpg image. Therefore i used the for converting the binay data to image
[Code]....
[Code]....
I have also set in 'DataOutput' Tab
the the ElementName='imgSt' which is my Image's name DataTranform==Code.ByteToImage(Fields!StImage.value) For the value field of my 'Image' in report i have set value==Code.ByteToImage(Fields!StImage.value)
var mySession = "<%= Session["MyID"] %>"; alert ( mySession );
and when I place this code in my aspx page inside a script tag, it works fine. But it doesn't work in an external js file. I am not able to figure out the problem.
Is there anything wrong in my code, or is it like this by default?
I am using Web Expression and Access database to build an aspx page.I am displaying records using listview Tiled option and DataPager is enabled also which is creating multiple pages.