User Profile

Collapse

Profile Sidebar

Collapse
Shashi Sadasivan
Shashi Sadasivan
Last Activity: Jul 26 '17, 09:47 PM
Joined: Aug 20 '07
Location: Brisbane, Australia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Shashi Sadasivan
    replied to Vb.net logout
    in .NET
    The browser caches the pages visited, which is what you need to clear / disable

    put this line in the Page_load of every page that you dont want to be cached (alternatively you can put this in the master page too)
    Code:
    Response.Cache.SetCacheability(HttpCacheability.NoCache);
    Here is a link with this discussion
    http://forums.asp.net/t/1060173.aspx...
    See more | Go to post

    Leave a comment:


  • Code:
    backgroundWorkerFetchData.RunWorkerAsync((String)o ne);
    
    while (backgroundWorkerFetchData.IsBusy)
    {
    Application.DoEvents();
    }
    Why do you have a wile statement there ?
    That is most likely the cause of the UI freezing.
    You can use the background worker finished event to call the method DoEvents(cant remember from the top of my head what the finished event is called)
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to work with buttons
    in .NET
    the idea is still the same,
    you want to change the propert of the button (text is a property)

    if you run the code above, the application will freeze (try it for a large number so that the for loop takes time) and the text on the button will show up as the last change made to it.

    You will need to run the for loop in a seperate thread, and if you create an even when ii changes, use that to trigger the property of...
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to work with buttons
    in .NET
    One way of handling that is to make i a private variable and have only one method to change it. whenever the method is called, attach an event handler to this method. you may pass variables across on what the state of the button should be or let the UI handle that.
    See more | Go to post

    Leave a comment:


  • You mean to c#...
    objects in c# get referenced when you do that....
    so c will point to the same meory location as some_other_car...
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to C# call method constantly?
    in .NET
    Code:
          while(true)
          {               
                if (Form2.cb.Checked)
                {
                    Form1.tb.Text = "YES";
                    videoCogControl1.Play();
                }
          }
    that constantly keeps checking !!!

    You shud however link to an event which wil disable it.

    Something like stop a timer which activatres the checking, when the checkbox...
    See more | Go to post

    Leave a comment:


  • I have had a similar issue before
    But they network administrators couldnt find out where the data was being dropped and where it was going slow

    but the way i solved it was to turn connection pooling off.
    edit your connection string to turn pooling off.
    See how that goes
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to IO EXception. copying files in loop
    in .NET
    And you are sure that the file is not being read by any other process / application?

    If you have also read the file previously before ebtering into the code before, have you closed the stream?
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to C#
    in .NET
    Try the following:

    Code:
    MyCommand.CommandText = "Select UserName from User_Login Where ID=\' 1 \'";
    however is the ID field of type text or integer? (it seems that you have set ID as text based field)
    See more | Go to post

    Leave a comment:


  • Well, i found that out while i was programming, and have an explanation of that from my understanding.
    However can you quote the exact words of that statement from the book ?

    when you do a for loop over int or primitive data, a copy of the data is made only for the for loop element, and the compiler is smart enough to stop compiling, to alert that the element will not change the same element in the array.

    However...
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to uploading a question bank
    in .NET
    How much have you thought about it ?
    please post your thoughts and we can help you finetune it.
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to Deploy query
    in .NET
    What error was it giving?
    Are you using anything apart from just the .net framework ?
    See more | Go to post

    Leave a comment:


  • You need to decide on a data structure which will help with indexing
    Hash Tables are one of the easiest examples of indexing.

    it is an array, but the position in which it is stored is determined by a mathematically computed hash value.

    hence if you have to search for a certain word, you create a hash of it, and check the value of the data in that particular aray index.

    Obviously when you look deeper...
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to Radio button validation
    in .NET
    If all the radio buttons in the form are to be linked to a single group then you can do a simple for loop on all controls on the form, and check that, atleast one is checked.
    if however you have more than one group, then you will have to sort it out from the rest (still looping through all radio buttons in the form)...
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to Get Child forms from MDI form
    in .NET
    withing the foreach loop
    instead of comparing a specific form object test if it is of a derived form type
    i.e
    [CODE=vbnet]For Each abc As Form In Me.MdiChildren
    if typeof abc is FrmSymbolDetail Then
    --- Do something ---
    End If
    Next[/CODE]
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to Radio button validation
    in .NET
    Why not use an if section to test it when posting the page?????
    See more | Go to post

    Leave a comment:


  • Do you have an access to the web service?
    If you do then could you log the string that is being received by it.
    I think its an issue with sending xml as a string to web services,
    but im not sure
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to Way to cache data in C#?
    in .NET
    Have a look at the enterprise framework,
    that has a cache library,
    pretty nice !
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to XML formatting issue...
    in .NET
    If you have a look at web services, it transfers data as SOAP, which is XML.
    unfortunately it puts all the contents of the string within the string type element and sends it,
    at the receiving end, it takes all the text in the node of the element the web service is expecting
    and hence you loose all the xml information
    the way to solve it is to convert the xml format as a class and pass it through, which means that your...
    See more | Go to post

    Leave a comment:


  • Shashi Sadasivan
    replied to Apply imagelist icon to all items
    in .NET
    Create a loop for all items and set the image for it.

    1 more line of code and it would be done.

    Is that what you are asking for?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...