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
B

brian55

@brian55
About
Posts
51
Topics
29
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • global variables in c#- the 'extern' alternative
    B brian55

    Thanks, I think I now know how to handle my code. Since it's already written for globals I'll use the method approach. Once I have it running I'll rewrite it passing the functions. The irony here is that I was a fortran programmer who had to leardn C to write this code, now I am moving on once again....after this I plan to learn event driven programing. Good grief, I might not survive that! I'm in the market for good reference books. I thought for sure someone would come up with a good book that explains(ilustrates through examples) how to move from c to c#. If there is, I can't find it. Brian

    C# csharp

  • global variables in c#- the 'extern' alternative
    B brian55

    How do you suggest I deal with 2-d arrays that must accessed by a number of subroutines (methods in C# - if I read correctly). In some cases the data must be passed to nested methods. global vars seem like the best option. If I read what you are saying correctly. I can create a method that contains a struct which would hold the data,declare it static then refer to it anywhere. Am I right? Brian

    C# csharp

  • global variables in c#- the 'extern' alternative
    B brian55

    I'm a c programmer trying to convert my programs to c#. Many variables are global and require extern to access them. I'm a bit confused on how global variables are used in C#. How do a declare and used then in different dll's Brian

    C# csharp

  • Access a javescript var from codebehind
    B brian55

    Sounds like a solution. Being a neophyte I need more direction. For example I have JS function function getSomething(); { var Info = getName(); } the var Info is what I need in my c# code. So how do I put the car into a hidden field? Thanks Brian

    ASP.NET question csharp java database tools

  • Access a javescript var from codebehind
    B brian55

    First, I have a var in java script I need to access in my c# code. How do I do this? Second, I use a droplist in another frame. I want to use the var from the jave script to be used to locate the associated selected index. What I have is the variable name and what I need is its index (I think. I then want to display the field in the droplist box and retrieve all assocated records. Thanks Brian

    ASP.NET question csharp java database tools

  • Passing control to another frame
    B brian55

    Thanks. It worked great. Quick question...can I make a similar call from with my c# code? It seems silly to have to to this in the aspx page. Brian

    ASP.NET question help tutorial lounge

  • Passing control to another frame
    B brian55

    I have 3 frames. Top, middle, bottom. I process some info in the top frame, store it in a session var. I then want the app to write the information out in the bottom frame. Int he bottom frame I read the session var and write it out but I can't see it. In general I seem to have a more fundamental conceptual problem. How does a frame know when to activate? In the above example, when I finish gathering the info I want in the top frame I then want the lower frame to write it. But how do I tell the lower frame that I am finsihed preparing the data and now you should to write it? Within the top frame I tried Response.Redirect(bottomframe) BUT that displayed the bottom frame where the top frame was. Obvisoulsy this is not what I wanted. I wanted the app to write the contents in the bottom frame. Thanks in advance Brian

    ASP.NET question help tutorial lounge

  • Problems redirecting to a frame
    B brian55

    I have 3 frames. Top, middle, bottom. I process some info in the top frame, store it in a session var. I then want the app to write the information out in the bottom frame. Int he bottom frame I read the session var and write it out but I can't see it. In general I seem to have a more fundamental conceptual problem. How does a frame know when to activate? In the above example, when I finish gathering the info I want in the top frame I then want the lower frame to write it. But how do I tell the lower frame that I am finsihed preparing the data and now you should to write it? Within the top frame I tried Response.Redirect(bottomframe) BUT that displayed the bottom frame where the top frame was. Obvisoulsy this is not what I wanted. I wanted the app to write the contents in the bottom frame. Thanks in advance Brian

    Web Development question help tutorial lounge

  • Program control with dynamic frames
    B brian55

    I developed an app that worked fine. I then proceeded to make a change. The change essentially allowed certain frames to be loaded with different aspx pages depending on user actions. Well, after trial and error I got the dynamic frames working. Now however controls seems to be in limbo. the two frames in questions that are loaded dynamically are shown correctly but they don't seem to be communicating. Here is the basic structure of the app -Mainframe - defines 4 frames -All frames will be dynamic at some point (same frame different aspx pages loaded into them -What happens in one frame effects what happens in others -Using sessions variable to communicate information Tough problem to explain I'm Afraid, but if you have any insight I would appreciate heraing from you. Brian55

    Web Development help

  • newbie question
    B brian55

    OK, NOW I really get..... put the logic in the c# file rather then in the APSX page. I did this and the values are correct. HOWEVER.... the proper page is still not loading. In fact No page is loading. When I right click and try to view the code for that frame I get a blank page. Could this have anything to do with the fact that the compiler complained when I did not put a ; after the method call? When I ran the code like this The compiler complained saying it was expecting ; I put one in ( after the() ), it compiles but I have the above problem. Thanks yet again!

    ASP.NET csharp question visual-studio

  • newbie question
    B brian55

    I think I am beginiing to get this. When you mean create a method you are essentially telling me to call a function or subroutine (old terminology, but one I understand). Ok I get this. I created the method public string GetFrameSource() { string sAirportSelected; sAirportSelected =(string) (Session["airportSelected"]); return sAirportSelected; } Then I tried to call the method or invoke it (I am not sure what term to use these days!) with this line "> When I do I get an error message that complains about the open bracket "(" and everything in between. the details are Line 11: namespace ASP { Line 12: using System; Line 13: using System.Collections; Line 14: using System.Collections.Specialized; Line 15: using System.Configuration; ..... this is what the debugger is complaining about: [http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,16): error CS1003: Syntax error, '(' expected http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,38): error CS1026: ) expected http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,38): error CS1023: Embedded statement cannot be a declaration or labeled statement http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,51): error CS1002: ; expected http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,51): error CS1001: Identifier expected http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,75): error CS1002: ; expected http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,75): error CS1525: Invalid expression term 'else'](http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,16): error CS1003: Syntax error, '(' expected
    http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,38): error CS1026: ) expected
    http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,38): error CS1023: Embedded statement cannot be a declaration or labeled statement
    http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,51): error CS1002: ; expected
    http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,51): error CS1001: Identifier expected
    http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,75): error CS1002: ; expected
    http://localhost/SIMDAC Viewer/MainIntroForm.aspx(13,75): error CS1525: Invalid expression term 'else'
    ) [

    ASP.NET csharp question visual-studio

  • newbie question
    B brian55

    Thanks for your patience. I am still confused...(but not as much)anyway here is what I think you are suggesting. My code is for the most part OK. In this reagrd my session variable is obtained as such in the code behind string sSelected; sSelected =(string) (Session["Selected"]); So now in the asps page (in the html code) is can simply refer to it and I do in the following command "> This line of code generates the following error The active schema does not support the element '% if....(everything in between) %' What is wrong? I suspect it has something to do with the definition within the page. the first line on my page is <%@ Page language="c#" Codebehind="MainIntroForm.aspx.cs" AutoEventWireup="false" Inherits="test.MainIntroForm" %> Thanks....

    ASP.NET csharp question visual-studio

  • accessing a variables in html
    B brian55

    I am using c# in the code behind. Here is what I am trying to do and have done. -I created a variable (code behind) that I use to determine which aspx frame should be displayed -In the HTML code I basically used the statement below to select the appropriate frame. "> Selected is the variable I set in the code behind. It is derived from a session variable set in another aspx page. So.....Why does this not work? I would have thought I would have easy access to variables from the code behind file. Thanks in advance

    ASP.NET question csharp html

  • newbie question
    B brian55

    Thanks for the response. It seems to me that in the .net environment there should be a direct link between what is in the code behind and the aspx page. This is the assumption I have made. Thus given this premise I should have access to the varialbes in the code behind from the aspx page. In my case I simple referred to the variable and nested it in a if then statement. I used c# notation since this is what I used in the code behind. Clearly I have made some bad assumptions. Can you show me how the session variable should be reference and also show me how the statement should be executed in the HTML code. This may help me understand what is going on. Thanks

    ASP.NET csharp question visual-studio

  • newbie question
    B brian55

    I am using VS .net I have a session variable set in another frame that I want to use to determine what frame pages to display. I use this line to make the frame decision. "> I get the message CS0103: The name 'sAirportSelected' does not exist in the class or namespace 'ASP.MainIntroForm_aspx' My code behind is c# and the seesion variable is sAirportSelected. what am I doing wrong? Brian

    ASP.NET csharp question visual-studio

  • displaying and zooming in and out of a pdf
    B brian55

    ok.....where can I get it and can you provide any examples of how I can use it? Sorry, I am new to this stuff. Brian

    C# question

  • displaying and zooming in and out of a pdf
    B brian55

    Is this possible? Any code snippets are appreciated. Brian

    C# question

  • Reading and Printing PDF files
    B brian55

    Thanks for the response but it is to cripting for me to understand. my program must first ask for a file to retrieve then display it in a frame. I then want to zoom in and out of it. Brian

    Web Development question

  • alternative to javascript
    B brian55

    The script is in a separate file that I added to the project. How do I add the name debugger? Do I simply type this on the first line of code in the JS file? I start debugger with f5 Thanks for the help. One more thing. The program I am writing makes use of an active X client that has a lot of objects and methods. Can I get access to these while in VS? Brian

    ASP.NET csharp javascript visual-studio java debugging

  • alternative to javascript
    B brian55

    I made changes as directed. When debugging I still do not stop at the break point. When I mouse over the break point I get he message "The breakpoint will not be hit. No symbols currnelty loaded for this document" What do you suggest? I did not enter and run the cookie code yet? should I? Brian

    ASP.NET csharp javascript visual-studio java debugging
  • Login

  • Don't have an account? Register

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