Thanks for your reply :)
deep7
Posts
-
Appending byte array to a byte array -
Appending byte array to a byte arrayThanks :) this worked fine
-
Appending byte array to a byte arrayHi, I have a function which returns a byte array. This method is being called in a loop. I need to build another byte array from these returned byte array. For eg., in StringBuilder, we can keep appending string to it. Similar way, i need to append byte array to one main byte array. How can this be achieved? Can anyone give me some solution here? Thanks for your time.
-
Collection properties should be readonly.Hi, According to FXCop, i must have arraylist property as read only (not setter). i tried below method as was mentioned in msdn site(http://msdn.microsoft.com/en-us/library/ms182327(VS.80).aspx): public ArrayList SomeStrings { get { return strings; } // Violates the rule. // set { strings = value; } } ArrayList newCollection = new ArrayList(); WritableCollection collection = new WritableCollection(); collection.SomeStrings = newCollection; collection.SomeStrings.Clear(); collection.SomeStrings.AddRange(newCollection); But at the point marked bold italic, i get error saying that the property is readonly. I'm really stuck here, can anyone plz give m solution? I need to set data to the arraylist, but its not FXCop compliant.
-
Converting string data(which contains EBCDIC, Packed decimal and Endian data) to byte arrayHi, I need to convert string which has EBCDIC, packed decimal and Endian data to byteArray to save it in the database. I tried the following code. Byte[] updateByte; updateByte = System.Text.Encoding.Default.GetBytes(strData); //here, strData is the string Here what happens is it converts some characters to '?' with decimal value 63. For e.g. abc(ASCII vale) after converting to EBCDIC i get [129 130 131](these are decimal values of the converted EBCDIC data). When i convert the string to byte array in order to save it in database, it changes all three characters(129, 130 and 131) to 63. This mostly happens with small case alpbhbets. I also tried other encoding(EBCDIC-US) but this also changes more characters. IMP: Please note that the string that i need to convert to byte array contains EBCDIC, Packed decimal and Also Endian data. Kindly let me know how i can achieve this. Thanks, Deepa
-
Converting string data(which contains EBCDIC, Packed decimal and Endian data) to byte arrayHi, I need to convert string which has EBCDIC, packed decimal and Endian data to byteArray to save it in the database. I tried the following code. Byte[] updateByte; updateByte = System.Text.Encoding.Default.GetBytes(strData); //here, strData is the string Here what happens is it converts some characters to '?' with decimal value 63. For e.g. abc(ASCII vale) after converting to EBCDIC i get [129 130 131](these are decimal values of the converted EBCDIC data). When i convert the string to byte array in order to save it in database, it changes all three characters(129, 130 and 131) to 63. This mostly happens with small case alpbhbets. I also tried other encoding(EBCDIC-US) but this also changes more characters. IMP: Please note that the string that i need to convert to byte array contains EBCDIC, Packed decimal and Also Endian data. Kindly let me know how i can achieve this. Thanks, Deepa
-
Page fails to load when arraylist being saved in ViewstateHi, Dynamic controls are created in page load. Also, is it something to do with declaration of Arraylist? I declare it as global variable. I tried saving the arraylist object in page load after controls are generated. But still same problem. Please note, the arraylist contains objects of a particular class. Is it a problem? I dont get it...it goes to the Application_Error event in global.asax.cs. How do i resolve this? i need to store the arraylist in viewstate, because i require it on one button click event.
-
Page fails to load when arraylist being saved in ViewstateHi, I'm facing problem when i load page with dynamically created controls. This happens if i save a arraylist in viewstate. ViewState["Delim"] = arrList; I searched the net, and found that we can save arraylists in viewstate, and that try saving it in page_preRender. I did so, but same issue. If i save some string in viewstate instead, it doesn't have any problems loading the dynamic controls. Anyone can help me here, to resolve this? Thanks, Deepa
-
Promp box in the center of screenNo, its not window.open ...its just a prompt window. I dont have any options for setting it in center like how i can do when normal window.open...for this popup window, we can set it to center, but what about prompt? document.getElementbyID('hiddencomments') = prompt("Please enter comments here",""); please do help me here. Thanks Deepa
-
Promp box in the center of screenHi, Can anyone please tell me how to get prompt window in the center of screen? Thanks Deepa
-
How to unpack packed decimalHi, I have a file which has EBCDIC data. I need to convert this into ASCII. But since this EBCDIC data also has 'packed decimal' i'm not able to convert this. Kindly let me know how to unpack this packed decimal, then later i can convert them to human readable ASCII format. Thanks! Deepa
-
Convert EBCDIC to ASCII and vice versaHi, Yes, none of these characters in the file are in the 255 codes of EBCDIC. As i had mentioned earlier, the file from the BLOB, contains packed decimal also. Are you sure its not EBCDIC, when i do .ToCharArray() i get like: [0]: 22909 '好' [1]: 8224 '†' [2]: 8256 '⁀' [3]: 8592 '←' [4]: 879 'ͯ' [5]: 12629 'ㅕ' [6]: 16527 '䂏' [7]: 16448 '䁀' [8]: 16448 '䁀' [9]: 16448 '䁀' [10]: 16448 '䁀' [11]: 16448 '䁀' [12]: 16448 '䁀' [13]: 65533 '�' [14]: 49605 '쇅' [15]: 16601 '䃙' [16]: 16448 '䁀' [17]: 16448 '䁀' [18]: 16448 '䁀' [19]: 16448 '䁀' [20]: 16448 '䁀' [21]: 16448 '䁀' [22]: 16448 '䁀' [23]: 62448 '' [24]: 63216 '' [25]: 63220 '' [26]: 63473 '' [27]: 63216 '' [28]: 62451 '' [29]: 61689 '' [30]: 54769 '헱' [31]: 16448 '䁀' [32]: 16448 '䁀' [33]: 16448 '䁀' [34]: 16448 '䁀' So their character codes are greater then 255. How to resolve this?
-
Convert EBCDIC to ASCII and vice versaHi, In my C# application, I need to convert EBCDIC data to ASCII. This EBCDIC data is stored as BLOB type in Teradata. This data also has packed decimals in it. I tried the code i found on internet, which simply converts EBCDIC to ASCII. In that there a interger array of 256 characters only. But the characters which i need to convert, char chrItem = Convert.ToChar(strEbcidic.Substring(i, 1)); returns number much higher then 256. So i get 'index out of bound of array exception'. The EBCDIC characters include 'ÁõÁõöôùô@@@@ðóùòùùðñ@ððððð' also. Could any one please help me out here? Thanks, Deepa
-
problem using ajaxhi, u have not used updatepanel. so u dinn get any errors...
-
problem using ajaxHi, In my ajax enables asp.net application, i'm using a updatepanel. In this i've kept a html input image control. But the probel is when i browse this site, the images are not seen. Can anyone tell me where i'm wrong? The code is as follows: Please help me out here. Thanks, Deepa
-
pass data from one page on one server to another page on differnt serveri'm using javascript code to pass object from one appl to another..on same server it works, but if on application is on other server, i get Access Denied error. parent.document.frames["frame1"].form1.txtValue.value = "1"; This is written in one javascript function in one application page on one server. parent.document.frames["frame1"] means another applicationpage on different server is given value "1". Can you tell me how i can achieve this using javascript? Thanks, Deepa
-
pass data from one page on one server to another page on differnt serverI'm trying to pass data from one page on one server to another page on differnt server. I get error on the page : "Access Denied" Firstly can value be passed from a page on one application on on server to another page on another application on a different server? I think it can be done...but when i try setting value to 1st application frame 1, parent.document.frames["frame1"].form1.txtValue.value = "1"; i get access denied error...what can be the cause? Can anyone tell me?
-
Pass value from one frame to anotherHi, In my application(Appl 1) i have a page which has 3 frames... 1st frame's aspx page is in same application (Appl 1). 2nd frame shows default.aspx page from another application(Appl2) 3rd frame's aspx is in Appl 1. 2nd frame's aspx page has a button and textbox....xon click of button the textbox value has to pass to frame3's aspx page textbox.. how can this be possible? can anyone plz help? Thanks, Deepa
-
compilation errorhi, This is little complex... i have Ant script which calls 'devenv.exe' to compile a project written in .net 2005. Here a third party dll is used(it was developed in .net framewrk 1.1. and i'm using framewrk 2.0) When i compile the project from solution explorer, it compiles without any error. But when i do it by using devenv.exe, it says that it can't locate the dll...below is the error: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "signdll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors." can anyone tell why this happens?
-
Checkbox must retain value while switching between aspx pageshi, in my application i have a checkbox, when user checks it n goes to another aspx page and returns to the previous page, the checkbox gets unselected...it must maintain the value. How to do this...can anyone help? im new to asp.net...can anyone tell me is it using sessions then how to use it..or viewstate...