ozz Posted November 23, 2010 Share Posted November 23, 2010 We have a small application on our internet that displays production to date figures. We have a stupid problem that the page template shows a value in koz but the live page shows Koz. We've looked through the SQL tables, VB scripts, JS scipts, HTML, ASPx and we cannot find the label!! We've lost vendor support so no help there. The string overwriting the table is: 12.5 koz Anyone got any useful ideas where we can look? We've tried the stored procedures and text searches but cannot find this lblmonthtodate value. Its overwriting the 12.5koz value with say 400 Koz. Help!!!! We're not developers as you may have guessed! Quote Link to comment Share on other sites More sharing options...
Attero Posted November 23, 2010 Share Posted November 23, 2010 What is your actual issue here? I haven't got a clue what you are on about. Quote Link to comment Share on other sites More sharing options...
MrRalphMan Posted November 23, 2010 Share Posted November 23, 2010 Do you have the source code, you could step through the code in debug mode to check. This Value (400) will be selected from the DB and the Code Behind.. The .vb (I assume as you mentioned VB Scripts, .CS for C-Sharp code) will be where the query is run and the value of the Label updated. What is the issue? Is the Value wrong or is the suffix (Koz) wrong? Also in your case what is Koz? Paul. Quote Link to comment Share on other sites More sharing options...
ozz Posted November 23, 2010 Author Share Posted November 23, 2010 Its the suffix that is wrong, its coming through as Koz instead of koz (kilo ounces, refining output). The underlying SQL table only has the number stored, so we can only assume the lable includes Koz but we can't find it in an table or code. Quote Link to comment Share on other sites More sharing options...
Attero Posted November 23, 2010 Share Posted November 23, 2010 Could be hard-coded in a particular place. Would you be able to post up a sample of the code where this is located. Quote Link to comment Share on other sites More sharing options...
ozz Posted November 23, 2010 Author Share Posted November 23, 2010 Its embedded within a web page, thats the only code I can find on the page that relates to it. vAlign="top" noWrap borderColor="#008000" width="246">Production year to date: vAlign="top" noWrap borderColor="#008000">402.2 koz If I change the text associated with "Production year to date" then it changes on the live website. If I change "402.2 Koz then it makes no difference. I can't find where this label "lblYearToDate" is defined?! Quote Link to comment Share on other sites More sharing options...
ozz Posted November 23, 2010 Author Share Posted November 23, 2010 The more digging I do, the more I'm sure I'm missing a load of code. perhaps something to do with the webpage header: I can't find this acintranet.aspx.vb page anywhere on my intranet server. Its somewhere, as the site works fine. Quote Link to comment Share on other sites More sharing options...
Attero Posted November 23, 2010 Share Posted November 23, 2010 Unfortunately, I don't know enough about ASP or the software running behind it to know what is going on. Quote Link to comment Share on other sites More sharing options...
ozz Posted November 23, 2010 Author Share Posted November 23, 2010 I think I found the answer, but its not good. Apparantly codebehind means there should be a seperate.vb file with the code in, as i suspected, however its been compilled to a dll and at first glance there is no way to reverse engineer and we don't have the source code. Thank you for input though, I'm not a developer and I've spent hours on this today when I should be getting audit information but it was bugging the hell out of me! If anyone has a bright idea for reverse engineering a dll I'm all ears, but I think its a non-starter. Quote Link to comment Share on other sites More sharing options...
Attero Posted November 23, 2010 Share Posted November 23, 2010 Without understanding a cryptic language, you are have no way of editing that DLL and even if you did, it would corrupt very easily and then you have a problem. Should always keep a copy of your source code. Quote Link to comment Share on other sites More sharing options...
MrRalphMan Posted November 23, 2010 Share Posted November 23, 2010 Yep, you would need the source code. The asp.net site is compiled and there is no easy way to decompile it. There may be code that does it, but it will look nothing like the original and might not be editable anyway. Quote Link to comment Share on other sites More sharing options...
Thorin Posted November 23, 2010 Share Posted November 23, 2010 You could try Reflector to disassemble the dll. http://www.red-gate.com/products/reflector/index.htm Quote Link to comment Share on other sites More sharing options...
ozz Posted November 24, 2010 Author Share Posted November 24, 2010 A ray of hope, thanks Thorin I'll try it. Its a stupid problem, been like it years but the refinery manager has jumped on it for some reason. Quote Link to comment Share on other sites More sharing options...
Thorin Posted November 24, 2010 Share Posted November 24, 2010 Let me know how you get on. I can always give it a go myself if you don't mind me see a copy of the dll. Reflector was pretty easy to use but it's been a few versions since I've used it, should be a few tutorials on the net for using it I should imagine. Quote Link to comment Share on other sites More sharing options...
MrRalphMan Posted December 21, 2010 Share Posted December 21, 2010 Did you have any luck with this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.