MSDN Magazine September 2003
View Complete Post
I have a ReportViewer which I'm pulling into a C# WPF project, and would like to be able to capture the row a user clicks on in the reportViewer, but have had no success tapping into the mouse event handlers. Does anyone know how to accomplish this? This MSDN link seems to imply that ReportViewer(winforms) supports mouse click events such as Click, DoubleClick..etc. http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.reportviewer_events.aspx, but I've not had any luck.If mouse events are not currently supported, does anyone know when they will be, and whether properties such as SelectedItem or SelectedIndex would also be exposed?Thanks for the help.
So, I have written a code to draw a graphical replica of human Hand with 'DrawPath' Class. The static graphic looks good, but I want to use it with mouse move so It can act like a human hand with the movement of cursor. The problem I am facing is that when
I move my object with mouse move [as I have Hard coded the hand with its first finger basically representing the Mouse position and then drawing other points from it], the hand seem to loose its shape.
The problem occurs because when hand moves the orientation changes and the hard coded code just brings the points closer to each other or if I don't do that then orientation doesn't change [hand remains same as exactly upright]. Do anyone know which factor
I should add with each points of my hand so it preserve it shape or better if there is any function which can control orientation automatically??
All help is much appreciated
I have A database in access2007
I want retrieve column names with sql query in my project
I write below code:
"select column_name from information_schema.columns where table_name ='table 1' ORDER BY ORDINAL_POSITION"
but display error :
Could not find file 'D:\Projects\Tapco_ECM\Tapco_ECM\Tapco_ECM\bin\Debug\information_schema.mdb'.
plz help me
I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,
Note that the slashes go in different directions
I've tried a number of things but nothing seems to work. Thanks-
Partial Class Protected_imageupload
Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
' Initialize variables
Dim sSavePath As String
Dim sThumbExtension As String
Dim intThumbWidth As Integer
Dim intThumbHeight As Integer
Dim sFilename As String = ""
' Set constant values
'sSavePath = "images/"
sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"
sThumbExtension = "_thumb"
intThumbWidth = 160
intThumbHeight = 120
' If file field isn?t empty
If FilUpload.PostedFile IsNot Nothing Then
' Check file size (mustn?t be 0)
Dim myFile As Http
I'm looking to have a search page where a user will select an item from a listview, then then taken to another page that wil display data based on their original selection.
A user will type in a string and be presented with a list of usernames that are like that string, when they select a user name who's profile they would like to view I would like the page that they're taken to, to be that users profile.
How would I transfer the variable from the search page to the profile page, and when I work on the profile page, how can I access that variable?
I've got a listview and I've put a button control in one of the columns, I'm trying to figure out how I have listen to the button click within a certain row, but can't see the button in the dropdown for the IDs I can generate events for.
I'd like to get the primary key of the row that's been clicked on and then run a sql statement against it.
Any help would be appreciated.
Here is (more) code that demonstrates the issue. If the control in the host page is removed the tab control renders correctly. Otherwise it is rendered with the visibility attrubute set to hidden as reported in the above link. Is this broken or am I doing something wrong?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="S2.aspx.cs" Inherits="S2" %>
<%@ Register Src="~/SelectorPatternControl.ascx" TagName="TestControl" TagPrefix="sam" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<form id="form1" runat="server">
<cc1:ToolkitScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></cc1:ToolkitScriptManager>
I know I have a valid solution, but the js is telling me that the value in the hdnRecordSaved variable has no value!Even when I specify in my function the following, it still tells me it has no value:var myTextField = document.getElementById('hdnRecordSaved'); alert(myTextField);
When I put the full value of the variable in (ctl00_ctl00_cphTopCenter_cphCenter_hdnRecordSaved.value), I get the correct contents back ("1"), which I set in my code behind. However, I would prefer to just put the short name in since the masterpages may change, etc. Unfortunately, I know I can get around this with VS2010, but we are using VS2008.
What am I doing wrong with the js naming conventions that can't give me the contents? Here is my below js.
<asp:Panel ID="pnlMapFields" runat="server" ScrollBars="Both" Height="430px">
<telerik:RadTreeView ID="RadTreeView1" runat="server" DataTextField="Description"
I am hosting my ASP.NET application on a Windows 2003 Server.
To browse to my application one has to type the path :http://serverName/applicationName
I want users to only type applicationName on the web adress area.I believe there is something to do with alias and CNAME on DNS records that can adress this.
Any help on how to go about doing this will be highly appreciated.
I'm have on my web page a text search box which I want users to type in there favourite football team and this will display a gridview of the teams with the replica shirts I offer.
This is where I thought about creating a stored procedure to carry out this task.
I looked online for ideas but I not found anything as yet.
If anyone done anything similar to my request please let me know.
How to set SearchRoot Path in Active Directory in this
Functionality: We have scenario that
1<sup>st</sup> hit one LDAP server with some 'fixed user
name' &' fixed password ' and filter data
with specific User name(which given by user) getting 'User dn'.
After that we hit Next LDAP server based on the 'User
dn' getting from 1<sup>st</sup> server.
(So, in my case 1<sup>st</sup> LDAP
server works like as Load balancing server but functionalitywise it is
I need to develop 3 pages.
On the first page user defines atmost 7 column names to be displayed on the report. I'm saving these names in a Sql DB table 'Columns' with Column_Nm and Column_ID as Table columns.
On the second page I'm retrieving column_Nm from the table and displaying them on the page so that the user enters the data. This data is saved in another table 'Summary' with the Columns column1 through column7.
on the 3rd page I need to show a report of 'Summary' table.
How do I dynamically replace column1 through column7 names with that of 'Column_Nm' on the report?
Any help/suggestions would be appreciated.