Answer Questions
Ezira setting XML attribute
I'm trying to set a XML attribute whenever someone presses a radio button for example: before radio button click <row type=""> after radiobutton click <row type="header"> i can select the row and change the value however i am having problems writing the change back to the file. if i use the xmltextwriter it seems to clear the file the code im using to get to the button currently is XmlNodeList nodelst = _doc.GetElementsByTagName("row"); foreach (XmlNode node in nodelst) { XmlAttribute attr = node.Attributes["type"]; attr.Value = "header"; } can anyone help at all Colin Gemmell This XmlTextWriter is n ...Show All
Daikoku sorting sortedlist by value?
i'm sure some of you have run into a situation where it makes sense to sort the elements of a sorted list by value rather than the key itself. Does anyone have any ideas on how this can be achieved. Simple swapping of key/values won't work in my situation. eg. srtList as new SortedList srtList.Add("AZ","Arizona") srtList.Add("NY","NewYork") srtList.Add("MO","Missouri") after sorting I want: AZ - Arizona MO - Missouri NY - NewYork Thanks, -PaTwo There's not much point in using a SortedList if you don't want to sort by key. Just use a generic List<T> and use the Sort method to sort it the way you want it. Is that strictly true I ...Show All
Rickard L Missing .Net FrameWork Config !
Hi, After installed .Net Framework 2.0 on my machine (Win2003 , not installed SP1) , I can not found the .Net Framework 2.0 config , only found .Net Framework 1.0 config. How to deal with it thank you. Jeffers Hi, You'll need to install the .Net Framework 2.0 SDK to have the configuration tool available in the administrative tools. You can download it here. http://www.microsoft.com/downloads/details.aspx FamilyID=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&displaylang=en cheers, Paul June A. Domag Dear Paul, Do u mean if the client want to use VSTO , they need install .Net Framework & VSTO, and install .Net Framework 2.0 SDK If did not install SDK, how to con ...Show All
GeoffSeattle How can I tell if I am being called from funceval
Hi, How can I know from within my .NET code if I am running in a funceval I can check that I am being debugger via, System.Diagnostics.Debugger.IsAttached but as the funceval is hijacking I cannot tell from the stack trace if the call is from the debugger. Is there any method that works differently when in funceval Is there a way in unmanaged code to do this any pointer is welcome. (I know about the debugger attributes, but these are not an option) Thanks Eli Mike, Thanks for the swift reply. Actually, I don't think that it is necessarily dangerous. I need this for a mocking framework, where the code of the mocked object looks something like this: get{ return mock.GetNextReturn(); } and mock contains ...Show All
David Beavon ItemDataBound
Hello, everyone, I am working with the VSTS 2005 and I am trying to hide some fields (cust_id) from displaying in the grid view. The VS 2003 had a ItemDataBound in the namespace UI.WebControl. Is it been replaced in 2005 Can someone point me to the right direction Thanks, Antonio Luis, I removed the first 3 colums (Edit, and two template colums) so, now, it auto-generates the colums based on the query. However, when I try to hide the first column (cust_id index [0]) I still get the out of index error. Any ideas what's happening Thanks Sorry for the delay I'm really busy now, hmm as I told it can happens when the dataset you are using as datasource ha ...Show All
ANB_149 international character support in ms access
recently i have come across a project which requires devanagari (hindi, nepali) script to be stored in database. how may i go about this project is there international support in ms access and or sql server thanks for reading. Unicode support was introduced in JET 4.0 (Access 2000). I'm no expert on these issues, but to the best of my knowledge, I believe it should be possible to store your data using any recent version of either JET or SQL Server. Are you encountering a specific problem You can find a list of Microsoft-sponsored public newsgroups, including Access newsgroups, at the following URL ... http://www.microsoft.com/communities/newsgroups/default.mspx -- Brendan Reynolds Access MVP wrote in messa ...Show All
Jorge L Nieves WSE 3.0 get UsernameToken
How do i get my UsernameToken in a web Service [ WebMethod ] public string HelloWorld() { UsernameToken token = // how String username = token.Username; return username ; } Thanks. Paul. Thats exactly what i want.Thank you very much!! No, still not working. Any other ideas If you are using the default WSE 3.0 UserNameTokenManager then the userinformation is stored into the IIdentity after succesful authentication. using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using Microsoft.Web.Services3; [ WebService ...Show All
AlucardHellSing Monitoring network packets - incoming and outgoing
Hi all, Is there any provision to monitor the http packets sent and received per user basis in a network interface . I want to develop a download/upload limit software where I can restrict users setting the download limit in terms of 1000 MB of data or 2000 MB of data etc., Thanks. May be this can help you, In traffic Measurement. There are different classes, May be you can get your work dones by using a collection out of them. Cheers ;-) Chakkaradeep wrote: Hi, Thanks for the reply :) I already saw IPv4InterfaceStatistics. It gives overall bytes received and sent, whereas, am looking for per user basis, the bytes sent and received. Any suggestions on that Thanks. If you want t ...Show All
Beast Forever Executing Native Code From A Managed Thread
Hi -- I'm about to reread the Geoff Schilling/Dave Stutz book -- which, now that I know what I need to learn from it, will be much more meaningful and useful to me than when I read it the first time, But before I do I thought I would ask one basic question that you guys might be able to inform me about. I'm wondering if it is possible and easy and done fairly routinely to call unmanaged code (that makes, for example, extensive use of Thread Local Variables) from within a managed thread without having to do a thread context switch in some way to an unmanaged thread Don't I remember that there is some kind of managed environment stack frame that allows you to do this And if so, does the managed environment place any significant limitat ...Show All
Andy_B System.Diagnostics.Process.Start not work with IIS, but on ASP.NET Development Server (Please help urgently)
Dear all: I am using VS2005 C# and testing on my local XP Pro PC with local IIS, I have wrote a web service to call a third party software .exe file to use CSV file to insert data in its OLEDB database, which use System.Diagnostics.Process.Start . The same codes did work when I use VS2005 build-in ASP.NET Development Server( http://localhost:2999/MyServices/MyServices.asmx ). but when I use IIS normal URL( http://developer/MyServices/MyServices.asmx ) to run Process.Start on the web service, it just haunlted and not doing anything. So I put the kill statment to kill the process after 1 mins, however, the process stopped, but did not do anything. T ...Show All
Mowali RAS specifying the ip from client side itself rather from server side
Hello Everybody, I have a query regarding RAS(Remote access Service) i am making a dial up connection through it, Now the remote computer specifies my IP address Is there any way through which I can specify my ipaddress Say I dail to the remote computer, and i want my ip address to be 100.30.25.56, normally i get the id from the remote computer, but the thing is that the remote computer also behaves as a client now. So How could i make that request. Is there any api for it Thank you in advance. Got the answer ...Show All
hommer Invalid cast exception / System_ComObject
Hi I am recieving an error when running my application could anybody explain it to me or what is the possable cause of it, The error reads System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to class type 'mshtml.HTMLAnchorElementClass'. "COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface. at UserControls.HTMLView.ExtractControls.ExtractInfoFromToolStrip(HtmlElement elem ...Show All
sandipan stream reader in vb.net
i need to check for a particular word in notepad while am reading it from stream reader this is my code Dim sr As New StreamReader(c:\\test.txt) Dim line As String 'if line like While sr.Read line = sr.ReadLine() End While i need to know how to check for a word 'basith' exist ther are not in a notepad file. can anyone give me solution dim i a Ineger While sr.Read line = sr.ReadLine() i = line.IndexOf("basith") if (i >= 0) found End While thanks, i got it. ...Show All
Larry.Dugger Error 87 (Invalid parameter) with SCSI_PASS_THROUGH_DIRECT
Hi, I'm trying to talk to a device through DeviceIOControl to get a piece of SCSI Inquiry data with SCSI_PASS_THROUGH_DIRECT. Using the code below, all DeviceIOControl ever returns is 87 - Parameter Incorrect. I've been scratching my head for a couple of days over this - any help appreciated! Private Function getVPDPage( ByVal offset As Byte , ByVal fileHandle As Int32) As Byte () Dim status As Long Dim dIn As Integer Dim SCSIBytes As Byte () Dim scsi As New SCSI_PASS_THROUGH_DIRECT_WITH_BUFFERS ' Build cdb scsi.spt.cdb(0) = &H12 'Opcode (0x12 = INQUIRY) scsi.spt.cdb(1) = &H1 ' EVPD bit = 0x1 to get VPD data scsi.spt.cdb(2) = offset ' Where do we wa ...Show All
Hussain Saffar Slow painting of ListView
I simple add ListView to the form and set ListView's back color. Draging the window over my listview, listview painted very slowly and i can saw the white regions on listview. How i can solve this problem public partial class Form1 : Form { MyListView p = new MyListView(); public Form1() { this.WindowState = System.Windows.Forms.FormWindowState.Maximized; InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { p.Parent = this; p.Dock = DockStyle.Fill; ImageList iList = new ImageList(); iList.ImageSize = new Size(32, 32); p.LargeImageList = iList; p.View = View.LargeIcon; for (int i = 0; i < 100; i++) { ...Show All
