C T Ranjith's Q&A profile
.NET Development Repeater + Extended control not working
Alright this is in my aspx file in the ItemTemplate section of the repeater <td><cwc:DataDropDownList runat="server" DataSourceID="rolesDataSource" SelectedValue=<%# Eval("Role") %> DataTextField="Description" DataValueField="id" AutoPostBack=true OnSelectedIndexChanged=dropDownList_SelectedIndexChanged ExtraData=<%# Eval("FirstName") %> > </cwc:DataDropDownList></td> And this is what the code for the DataDropDownList looks like: namespace CustomWebControls { [ToolboxData("<{0}:DataDropDownList r ...Show All
Windows Forms BackColor Property of textbox
I discovered a very strange behaviour concerning BackColor/ForeColor properties of a textbox. On a form, I have a textbox which contains a url. I want to implement the hypertext behaviour into this textbox, so I override the OnMouseEnter function to set the ForeColor to blue and the Font to underline. In the OnMouseLeave function I revert those Properties to their originals. It's the OnMouseEnter function where the strange things happen: protected override void OnMouseEnter( EventArgs e) { if ( this .Text != string .Empty) { this .cachedBackColor = this .BackColor; this .cachedForeColor = this .ForeColor; this .cachedFont = ...Show All
Smart Device Development Smart Device application for windows CE. NET and java web Service
Hello, I’m trying to develop a smart client application for Windows CE.NET using Visual studio. This application invoke a jax-rpc web service deployed in Sun Application server edition 8. When i invoke one method that returns a boolean, gives me this error: error: "An unhandled exception of type 'System.Web.Services.Protocols.SoapHeaderException' occurred in System.Web.Services.dll Additional information: JAXRPC.TIE.01: caught exception while handling request: unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/, actual=" What is the problem Thank you. Rute NETCF does not like ...Show All
Visual Studio Express Editions This application has failed to start because MSVCR80D.dill was not found
The file is there in c:\windows\winsxs folder. This happens when I try a to create a simple project to test system and press f5 to bebug it. The file will create with release set and create the exe but will not debug I would appreciate any help. I have removed all re-installed all and no matter What I do comes up the same Thanks Operating system xp pro I have the same problem with VC++ 20005 EE as you, I serached the filesystem for msvcr80d.dll,but I had no luck. ...Show All
SQL Server Server Does Not Exist or Access Denied ConnectionOpen[Connect]
Server Does Not Exist or Access Denied ConnectionOpen[Connect] Help please, I'm stuck. I get the above message trying to add a new SQL Registration to Enterprise Manager. I've installed/uninstalled 3 times, all with the same result. EM sees it to register, it is the same name as my box, which is what I was expecting. Install went without problems each time. TCP/IP is enabled. I've searched the forums looking for this problem but have not come across another situation such as this. I don't have a clue of as to what to check next. Thanks in advance to anyone who can help me. OS - XP Pro, S ...Show All
Visual Basic TV Capture
i'm trying to create an application that calls or access my tv capture card (a VB TV application) although im still a novice. Any poiners here is one of them samples i was referring to before with vidcontrol in it. i don't know if its a class or not. Private Sub Command1_Click() Dim objTuneRequest As IChannelTuneRequest Dim objTuneSpace As ITuningSpace Dim objTuneSpaces As ITuningSpaces Dim objInputVid As MSVidInputDevices Dim objAnalogTuneSpace As New AnalogTVTuningSpace ' Dim objAnalogTuneSpace As MSVidobjAnalogTuneSpacelogTunerDevice Dim vid As MSVidInputDevices ' Set ...Show All
Software Development for Windows Vista Workflow is not firing after a response.redirect
Hi i am using WF Beta 2.0 and tried to develop a web app using WF. I have developed a workflow, which has 2way communication (Host -> WF and vice-versa). Web app sends some parameters to WF and WF then calls a method. The return value from the method, fires an event and the event will be handled by WF to produce a URL to navigate. I was able to run this for the first time (based on the result, respective event gets fired and the page has been redirected to the desired page). If i go back to home page and start the workflow again, WF is not executing at all. Can anybody help me, i can mail my solution if you want. BTW, ...Show All
SQL Server Row and Cell Security
I am trying to implement row-security in SQL 2005 but i make a query to make a view CREATE VIEW vwVisibleLabels AS SELECT ID, Label.ToString() FROM tblUniqueLabel WITH (NOLOCK) WHERE ID IN --Classification (SELECT ID FROM tblUniqueLabelMarking WITH (NOLOCK) WHERE CategoryID = 1 AND IS_MEMBER(MarkingRoleName) = 1) AND --Compartments 1 = ALL(SELECT IS_MEMBER(MarkingRoleName) FROM tblUniqueLabelMarking WHERE CategoryID = 2 AND UniqueLabelID = tblUniqueLabel.ID) GO And the error is Msg 208, Leve ...Show All
Visual FoxPro Enhancement Request: Ability to pass cursors as parameters
The ability to pass a cursor to a method of an object belonging to another data session would be a great addition for a future versions of VFP. Today, we have to resort to arrays, which is kind of a kludge, or CursorToXML/XMLToCursor, which is way too slow for large data sets. If cursor could be passed between data sessions, n-tier apps would benefit greatly. Any thoughts Eyvind. Craig Berntson wrote: It's actually very easy. Look at CURSORTOXML() and XMLTOCURSOR(). I have just done a quick test with that and it works very nicely. The OP stated it is slow with large data sets but I have nev ...Show All
Visual Studio 2008 (Pre-release) Indigo January CTP: Creating interface-compliant proxy on top of interface with overloaded methods
Hi! I need to build a chain of calls to one method over several components within a communication infrastructure, in which Indigo is central part (client - server with several steps in between). All involved components are to obey the same interface, which includes several overloaded methods. This is ok because the server is a normal component, not a (web) service and should remain like this. Example: I have an interface with two methods defined in the central interfaces assembly: public interface IA { bool MyMethod (string theParam); bool MyMethod (int theParam); } To bridge the Indigo co ...Show All
Visual C++ How to use this code in C# project?
//Please show me example with this code how i could use it in c# project //Thank you very much for helping this newb #ifndef OBSERVER_API_H #define OBSERVER_API_H #ifdef OBSERVER_EXPORTS #define OBSERVER_API __declspec(dllexport) #else #define OBSERVER_API __declspec ( dllimport ) #endif const char * const ObserverHeaderVersion = "2.4.8.3" ; class Observable; class Observer; class OBSERVER_API Message { public : // virtual ~Message(){} typedef unsigned short MsgLength; MsgLength GetSize() const { return m_size;} unsigned short GetType() ...Show All
Windows Forms Simple Form question
Hi all, Let's say i have a form for Login/Password. Once the user click on the button Login, id like to CLOSE the login form and bring to the user another form. Kinda like a web page behavior. How can I achieve that behavior Load the "another form" first and from it call GoDaddyLogin.showdialog() ...Show All
SQL Server GetValue on a DTSProperty Object
In an Integration Services scrip ttask, I am trying to get the value from a DTSProperty of a Connection Manager object. The code seems like it would be very straight-forward. Here is what I have... Dim oCM As ConnectionManager Dim oProp As DtsProperty Dim sValue As String oCM = Dts.Connections( "SomeConnectionManager" ) oProp = oCM.Properties( "ServerName" ) If oProp.Get Then sValue = oProp.GetValue() End If The line inside the If block is the problem. Once you have a DTSProperty object, you should be able to get to the value of that property. GetValue is a method that either I can't ...Show All
Windows Forms Resizing a user control
Hello, I want to resize a user control on a windows form at run time. I am able to change the position of the control just fine. However I am not able to resize it. I am trying to resize it by setting the Size property of the user control, however the original size of the user control does not seem to change at all. Thanks, -Suri Use "New Size" because changing only thru Size won't work. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim buttonheight As Integer = Button1.Size.Height Dim buttonwidth As Integer = B ...Show All
Visual C# NullReferenceException: Object reference not set to an instance of an object
First time to test web appliction. I do not know how to handle this error. [NullReferenceException: Object reference not set to an instance of an object.] in line: 32 using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace WebApplication4 { /// <summary> /// Summary description for WebForm1. /// </summary> public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.TextBox TextBox1; protected System.Web.UI. ...Show All
