.net-1.1

XSL: How best to store a node in a variable and then us it in future xpath expressions?

非 Y 不嫁゛ 提交于 2019-12-18 12:15:39
问题 I need to be able to store a node set in variable and then perform more filting/sorting on it afterward. All the examples I've seen of this involve either using XSL2 or extensions neither of which are really an option. I've a list of hotels in my XML doc that can be sorted/filtered and then paged through 5 at a time. I'm finding though I'm repeating alot of the logic as currently I've not found a good way to store node-sets in xsl variable and then use xpath on them for further filtering

How can I assign the value selected in a listbox to an enum var?

你说的曾经没有我的故事 提交于 2019-12-17 21:23:54
问题 I want to avoid the kludginess of: private void listBoxBeltPrinters_SelectedIndexChanged(object sender, System.EventArgs e) { string sel = string listBoxBeltPrinters.SelectedItem.ToString(); if (sel == "Zebra QL220") { PrintUtils.printerChoice = PrintUtils.BeltPrinterType.ZebraQL220; } else if (sel == "ONiel") { PrintUtils.printerChoice = PrintUtils.BeltPrinterType.ONiel; } else if ( . . .) } Is there a way I can more elegantly or eloquently assign to an enum based on a list box selection,

Implementation change to .NET's Random()

你离开我真会死。 提交于 2019-12-13 11:35:27
问题 I am migrating a method that is used for decoding from .NET Framework 1.1 to .NET Framework 4. I noticed that implementation of Random changed. So given the same seed, Random.NextBytes returns different result. So if I run the following code. byte[] bytes = new byte[4]; System.Random random = new System.Random(50); random.NextBytes(bytes); for(int i=0; i< bytes.Length; i++) { Console.WriteLine("bytes[" + i + "] = " + bytes[i]); } Under .NET Framework 1.1 it returns: bytes[0] = 216 bytes[1] =

How can I assign enum values to a listbox in .NET 1.1 on the Compact Framework?

不羁的心 提交于 2019-12-13 08:18:03
问题 From http://weblogs.asp.net/stevewellens/archive/2009/08/19/how-to-fill-a-listbox-dropdownlist-from-an-enum.aspx, I see this example for assigning enum values to a listbox: Array Values = System.Enum.GetValues(EnumType); foreach (int Value in Values) { string Display = Enum.GetName(EnumType, Value); ListItem Item = new ListItem(Display, Value.ToString()); TheListBox.Items.Add(Item); } However, in my Windows CE project (.NET 1.1), there is no "System.Enum.GetValues()"; there is

Dynamically setting MaxLength property of a DataColumn with DataAdapter

只愿长相守 提交于 2019-12-13 03:44:51
问题 I have a datatable that I'm filling with SqlDataAdapter.Fill(). Is there a way to dynamically assign the MaxLength property to each string datacolumn to the maximum allowed by that column in the database? 回答1: So I googled for a while and found that the DataAdapter has another method besides Fill which is: FillSchema(), which includes the database schema into the DataTable . Since all I wanted to bring was the MaxLength property what I did was load the schema into another table and loop

executing pages built in 1.1 and 2.0 framework in same website

微笑、不失礼 提交于 2019-12-13 01:43:07
问题 I am having an application which is built in 1.1 framework.This application is now rebuilt in 2.0 framework but due to some reason we have to use some of the pages of 1.1 framework. So for this we are executing both the applications simultaneously and n carrying out the work using querystrings. So my question can we include pages made in 1.1 and 2.0 framework in one website , if not then please suggest me any other alternative because me method is not that secure... waiting for response ....

Get Service Status Handle after initializing service

送分小仙女□ 提交于 2019-12-13 01:02:36
问题 I am calling the Win32 API from .Net 1.1 to request additional startup time for a service (.Net 2.0 and up is not an option currently). Here is the pseudo-code I am calling within the OnStart() method. private void OnStart(){ private IntPtr statusHandle; private IntPtr serviceHandle; private IntPtr serviceControlManagerHandle; serviceControlManagerHandle = ServiceUtil.OpenSCManager(null, null, (uint)ServiceUtil.SCM_ACCESS.SC_MANAGER_ALL_ACCESS); serviceHandle = ServiceUtil.OpenService

web Application in 1.1 is not runing

旧时模样 提交于 2019-12-12 05:09:26
问题 We have a application in .net farmework 1.1 and i have made it build successfuly, now when tried to run this application i am getting the following error: I have googled and found some settings in IE, i have checked it in IE settings that windows authenticatiuon is enabled there. but i dont know why i am getting this, please help as i am totally new to VS 2003, We will convert this web application to 4.5 soon but before that we need to some specific task. please help me as soon as possible,

“Any tool to generate Web Service Proxy for .Net 1.1”

北慕城南 提交于 2019-12-11 02:37:22
问题 I've a WSDL file with links to external XSD's (I've the xsd's as well deployed to the correct relative path as it's reference in WSDL). When I'm trying to generate a proxy with VS 2003 (.Net 1.1 wsdl tool) The proxy didn't get generated. However it worked fine for VS 2005. What could be wrong. Any idea? It gives Unable to Import Binding and didn't generates a proxy class. PS: My wsdl file is very long and there are dozens of xsd it referenced so can't post all here. EDIT: Is there any other

.NET 4.0 framework on same server as .NET 1.1

人盡茶涼 提交于 2019-12-11 00:52:56
问题 Can these framework versions work and play well on the same server? Meaning that can IIS support two application pools where one pool is configured with .NET 4.0 and the other with .NET 1.1. EDIT: This question is concerned with IIS 7. 回答1: Yes, you can have 1.1, 2.0 and 4.0 CLRs all running in the same IIS instance, they are intentionally side-by-side installs to facilitate this, you'll have 3 options in the dropdown for your application pool .Net versions, one for each CLR version. 回答2: yes