Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

theOzLizard

@theOzLizard
About
Posts
17
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • catch (SmtpFailedRecipientsException ex) does not work
    T theOzLizard

    Ok guys before you say this question has been asked before the problem is that try { mail.Send(blah) //if mailbox does not exist we get Mailbox unavailable. The server response was: No such user here. THis is clearly a SmtpFailedRecipientsException //now the whole idea of a try / catch is to allow the application to fall through to the catch if an error occurs //so why the hell does it stop here and not go to the catch part. makes this catch part useless... } catch(SmtpFailedRecipientsException ex) { } Microsofts example are pretty straight forward and if you go by the example the above should work bit it does NOT...

    theLizard

    ASP.NET help sysadmin tutorial question

  • Unable to load DLL 'LCE.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    T theOzLizard

    Hi all, 1. I have a Virtual Dedicated Server. 2. I am getting "Unable to load DLL 'LCE.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" where LCE.DLL is a C++ dll. 3. I have .NET dll that access the C++ dll. The error occurs when I try to call a function in the c++ dll. //__declspec(dllexport) int __stdcall siv(LPWSTR inbuf, int seed, bool div) C++ [DllImport(@"LCE.dll")] //C# public static extern int siv([MarshalAs(UnmanagedType.LPWStr)]string outbuf, int x, bool b); I am pretty certain that it is NOT the dll but the permissions on the bin directory of the web site, I have tried a number of things to give the permissions to execute the dll but nothing has worked so far. Does anyone know or point me in the direction where I can resolve this issue help!

    theLizard

    ASP.NET help csharp c++ sysadmin hosting

  • c# string operation
    T theOzLizard

    oops (again, bugger) :( left out one of these = and yes a while would be appropriate if more than one at end of string. I'm having an off day

    theLizard

    C# csharp question

  • c# string operation
    T theOzLizard

    Oops, less haste, If I could not use trim() it should have been something like if(string.LastIndexOf(" ") = string.Length) { string = string.Substring(0, string.Length-1); } But the answer from OriginalGriff seems to be the one, I have also learned.

    theLizard

    C# csharp question

  • c# string operation
    T theOzLizard

    you can do input_3 = inputstr.Substring(0, inputstr.LastIndexOf(" ")); will give you the result you want.

    theLizard

    C# csharp question

  • ASP.NET problem
    T theOzLizard

    @ Dinesh, I don't think it is the browsers, there are two common things (a) IIS 7 and (b).NET but I am just guessing on these however, if all browsers perform correctly after supplying the prefix www. then we can safely assume that these are now out of the equation, would you agree? If firefox and the others are working in vista without the www. then could it be something to do with user agents through IIS 7!! Another guess, I don't know enough about user agents BTW, I also downloaded MAC's Safari for windows and it did the same thing. Actually we may be able to dismiss .NET since IIS serves up the pages (another BTW, I pre compile my site) so may be all roads lead to IIS but I cant test this theory, don't have the tools or know how... I am just happy that the problem is solved and others may benefit by my discovery.

    theLizard

    ASP.NET csharp javascript asp-net sysadmin help

  • Session usage
    T theOzLizard

    I don't know what the recommended way to do this is but I have recently had the need to cloak values not so much in post backs but in page rendering. For example I do not want anyone viewing the page source to see the id's of rendered components like buttons, divs etc and what to send back in the OnClientClick event. What I have done is to generate GUID's and assign them to the ID of the web control, these are then checked against an array of the generated GUID's, responding to a button click returns a second GUID which is the matched to assigned web control in the array, this method completely masks the original value, in your case the client ID. Note: Each time the page is loaded a new set of GUID's are generated.. I don't know if it can work for you but I think it might.

    theLizard

    ASP.NET csharp asp-net database question

  • Still having problems with ASP.NET [modified] [Solved]
    T theOzLizard

    For those that want to know. The problem was not my application as I knew all along, the problem turned out to be how the initial page was called in the various browsers. If I omitted the www. of default.com/mypage.aspx the Session ID was created for mysite.com/default.aspx but when I called the response page via the call back, the window.location.url redirected to www.mysite.com/responsepage.aspx a new session was started with new session objects resulting in the strange behavior. To those who answered, thanks your input did help in pointing me in the right direction.

    theLizard

    ASP.NET csharp asp-net com help

  • Still having problems with ASP.NET [modified] [Solved]
    T theOzLizard

    Please follow the story, I don't think there is much more to get to the bottom of this problem just need some more ideas... ASP.NET Problem

    theLizard

    modified on Sunday, January 17, 2010 5:32 PM

    ASP.NET csharp asp-net com help

  • ASP.NET problem
    T theOzLizard

    Getting closer to the culprit. Seems like I am getting a double dose of Session_Start which instantiates new session objects , OK, this is not a real problem at start up because in the second attempt new session objects are not instantiated. The problem is (Fire Fox) when I do the Response.Redirect to the results page at this point the session objects should still have the values but for some reason Fire Fox causes a new Session_Start to be fired which in turn generates new session objects, when the test is done in the page load event of the results page the session objects are empty. Internet Explorer and Opera does NOT fire a new Session_Start event when Response.Redirect is called...

    NameValueCollection nvc = Request.QueryString;

    if(!IsPostBack)
    {
    if(SelectedButtons.selecteditems.Count > 0)
    {
    if(nvc.Get("response") == "OK") //never gets in here...
    {
    setInnerHtml();
    }
    }
    }

    Now we know what the problem is, has anyone seen this type of behavior, does any know how to stop Session_start being fired, could window.location be the source for firing a new Session_start Why does IE and Opera behave and not Fire Fox or Sea Monkey?

    theLizard

    ASP.NET csharp javascript asp-net sysadmin help

  • ASP.NET problem
    T theOzLizard

    Alas I am using InProc so maintaining session objects should not be at problem. But you have given me an idea, I have not put logging code in my global.asax, this is where the session objects are initialized in Session_Start I also set the session objects to null in Session_End, I will have to do that tomorrow however. Will no doubt put something here after I have checked what goes on in global. Thanks Dinesh.

    theLizard

    ASP.NET csharp javascript asp-net sysadmin help

  • ASP.NET problem
    T theOzLizard

    The mystery is (maybe) opening up. (On my PC with XP OS) Seems that my session object in Fire Fox and Sea Monkey is having problems, what I have done is logged every action to a text file. This has shown that when the response page was called the session object which should have been filled with the selected values was empty in both Fire Fox and Sea Monkey but not IE and oddly enough on this test Opera, where previously Opera showed the same nothingness. In ALL cases the callback function is being called and shows that the session object IS being filled with the correct values. So know we know it is not IIS, or the Java script engine or my code causing the problems. Is this a security issue perculiar to mozila browsers? if so can some one direct me to where or what needs to be changed I cant see anything wrong in my settings (but that is not to say there is nothing wrong with my settings) Is this to do with cross page scripting? Any ideas anyone.

    theLizard

    ASP.NET csharp javascript asp-net sysadmin help

  • ASP.NET problem
    T theOzLizard

    Thanks Dinesh, I did not think it was the app either, this one is a mystery what I will do today is log every action to an text file and see if that shines a light on the problem,. Regards.

    theLizard

    ASP.NET csharp javascript asp-net sysadmin help

  • ASP.NET problem
    T theOzLizard

    Thanks Dinesh, I am using pretty much the most updated versions of the browsers, google chrome was downloaded about 5 days ago and I also tried things out on other lap tops not my own with the same result. I don't think it's the java script engine as the code I am using is so basic its not funny, but then it does not need to be very complex. Could it be IIS 7? Regards

    theLizard

    ASP.NET csharp javascript asp-net sysadmin help

  • ASP.NET problem
    T theOzLizard

    I have a peculiar problem where I am getting mixed results in web browsers. Internet Explorer in Vista and XP always works fine. On Vista (Home Premium at least) Firefox and other browsers also work fine. On XP Firefox, Opera, Sea Monkey and Google Chrome does not do what I expect. The emphasis here is that ALL browsers work in Vista so I am pretty sure that my code is not the problem (I think). I have a set of buttons on a page with the onclick pointing to javascript code, when the buttons are clicked an object var is concatenated with the value of the button pressed. A submit button, an asp server control has an onclick and an onclientclick, this is wired to a callback function which sets a session object with the accumulated values of the buttons that were pressed a return var is set to load a response page with parameters indicating success or failure of the first operation. On success, the response page sets the InnerHTML of a div with the values of the selected buttons. This is where the problem is, in vista all is ok, on XP the values are not present indicating that either the parameters have not been read or the session object does not contain values. If I step through the code in Firefox on XP everything works fine, it is only when I upload to the web site that things go pear shaped. Can some one tell me what is going on.

    theLizard

    ASP.NET csharp javascript asp-net sysadmin help

  • onclientclick problem
    T theOzLizard

    I am trying to get a value in response to user button selection, eg Butoon 1, button 2, button 3 selected, want sequenceObj ="1,2,3,", this part is ok but not getting anything in code behind. This is what I have and I know it's probably not right but I have not done things like this before. I am hoping some one can tell me how to go about it. in .cs file //there is probably a lot more to do in relation to this but don't know how and is probably why I am not getting values. bnSubmit.OnClientClick = Page.ClientScript.GetPostBackEventReference(this, "sequenceObj.value"); in .js file function buttonClick(s) { sequenceObj.value += s + ","; } function getSequence() //does not get here! { return sequenceObj.value; } in .aspx file <script type="text/javascript"> sequenceObj = new Object(); sequenceObj.value = ""</script> <asp:Button ID="bnSubmit" runat="server" Text="Submit" Width="100%" onclick="bnSubmit_Click" Height="38px" onclientclick="return getSequence()" UseSubmitBehavior="False"/>; Any help would be greatly appreciated.

    theLizard

    ASP.NET javascript help sysadmin tools tutorial

  • [Message Deleted]
    T theOzLizard

    [Message Deleted]

    C#
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups