User Profile

Collapse

Profile Sidebar

Collapse
rjvrnjn
rjvrnjn
Last Activity: Jul 13 '09, 01:31 PM
Joined: Apr 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rjvrnjn
    replied to Disabling back/forward buttons of Browser
    in .NET
    In my point of view this approach of disabling the back button once the user is logged out is not the best way to achieve what you intend. I would rather suggest that you check if the user is logged in or not (through Session ID) and if not then redirect them to the login page.
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    replied to Passing Data Back to Main form. C#
    in .NET
    Yes, certainly this example makes things easier to understand.
    From what I understand you can bind the datagrid using BindingManagerC lass with your custom class object. Your class needs to implement IList/IComponent (based on what you want). Then on click of save of the 3rd form update the Object and the datagrid will be updated with the new record. This article gives an overview of the CurrencyManager & BindingManager class (to get ...
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    replied to Passing Data Back to Main form. C#
    in .NET
    I think you need to divulge a bit more information here. The datagrid holds what kind of objects? What exactly you mean when you say a third form is created? Is the user dragging and dropping controls to create the layout of the 3rd form and you need to save that as a serialized object?...
    See more | Go to post

    Leave a comment:


  • I understand it better now. :)
    Hmm... they didn't mention that explicitly and hence had me wondering if it applies to any kind of redirection.
    Thanks for the effort you took to explain. Thanks very much....
    See more | Go to post

    Leave a comment:


  • On the risk of sounding very naive, what is this different between Form & Page?...
    See more | Go to post

    Leave a comment:


  • Thanks guys for the replies. I think I'll go with Session variable.
    @Frinny, thanks for the detailed explanation but you said:
    But MSDN says :This leads me to think that this is possible. Is there something else implied and I am missing it?

    Server.Transfer indeed looked great initially, but found that it doesn't give the correct URL and hence is not useful to me....
    See more | Go to post

    Leave a comment:


  • I think Session variables should not be used for passing variables from one form to another (as evidently we've multiple other ways of passing variables). My standpoint is to use Session variable when a particular value will be utilized across many pages. Thanks anyways for your suggestion & time.

    Anybody has faced the situation that I've at hand?...
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    started a topic ASP.Net : PreviousPage issues with Content page
    in .NET

    ASP.Net : PreviousPage issues with Content page

    I'm trying to pass a variable value from one page to another. Of all the ways that are available, I like the PreviousPage.Fi ndControl() one as it lets me access the previous page controls and get the value without me being bothered about security et al. But what I find is once the page is posted the only controls that I get in PreviousPage is the master page and none of the controls of the content page are available in PreviousPage.Co ntrols collection....
    See more | Go to post

  • Hmmm... I'd been through those articles. On looking through the code more I realised that my XML was not well formed. The root element was missing (as the XML code emited by SQL server didn't have the root node). I modified the XML string to enclose it between <root></root> (it could have been anything else). And wow that worked.

    Thanks guys for your time.
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    started a topic Read XML string attributes with Javascript

    Read XML string attributes with Javascript

    I have a XML string returned from SQL server as a result of select query. The XML string looks like:

    [CODE=xml]<row col1="value1", col2="value2"/><row col1="value12", col2="value22"/>[/CODE]

    At the client side I want to read a specific row based on the user selected value.

    For example, if the user selects a drop down item whose value is "value1"...
    See more | Go to post
    Last edited by gits; Apr 28 '08, 09:32 AM. Reason: added code tags

  • rjvrnjn
    replied to Query not getting all data
    The post is very poorly formatted to make it readable. Also, do you really need to post the commented lines? The highlighted text has not come through thus making the post incomplete. Please reformat it and make easy for others to have a look and make a suggestion.
    Thanks.
    See more | Go to post

    Leave a comment:


  • One of the apparent issues that I see is the use of both aggregate and non-aggregate field in the same expression. I'm not sure how your report is grouped and designed (whether matrix or table) and hence won't be able to give you an exact solution. In all my reports whenever I've to do a percentage calculation I either use the aggregate values sum(fieldname) or add a calculated expression to the dataset itself and then drag & drop it on the report....
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    replied to C# Winform Application Case Switch Problem
    in .NET
    Oh, I just realised that I'd been hearing what I thought you're saying rather than what you're saying!! Sorry for that.
    Ok, I'll try to explain the problem that you're facing and let's see if that makes sense. You've assigned a datatable as datasource to the combo box and then set the Displaymember as one of the columns of the datatable. Now using the case statement you're trying to change the display text of the combo box which will not happen...
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    replied to C# Winform Application Case Switch Problem
    in .NET
    Well in case the only thing bound in your combo box is text field then you should try either
    Combobox.Select edText
    OR
    Combobox.Select edItem.Text

    do the cast to Int as in your previous post. I guess it should work fine....
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    replied to C# Winform Application Case Switch Problem
    in .NET
    That was the reason I asked you if you can provide us with what are you attaching as datasource to the combo box. If you can answer the below questions you'll be helped in the correct direction (it appears from the posts above).
    a.) How are you setting the datasource? Is it a datatable or a list of items?
    b.) What has been set as Text field and what has been set as Value field?

    Also, in the post above it was suggested...
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    replied to C# Winform Application Case Switch Problem
    in .NET
    Can you post a sample of what is contained in the combo box? Like, the user sees "Resolution Name" and the value property stores 3.
    See more | Go to post

    Leave a comment:


  • It's not actually a ::bump:: but sort of is.
    I was hoping that somebody might have tried this.
    See more | Go to post

    Leave a comment:


  • rjvrnjn
    replied to KeyDown Event C# WinForm
    in .NET
    Have you set the form's KeyPreview property to True? If not, the key events will not be trapped....
    See more | Go to post

    Leave a comment:


  • If I get your issue correctly, I say I would have taken a different approach. If you want to populate the site drop down only after the user has entered a trouble ticket, then get all the possible values into the site combo and set the selectedText or SelectedValue to the current ticket's site value. But if you want to build up the site combo list as the user keeps on entering the ticket number then the method suggested above is the way to go.
    See more | Go to post

    Leave a comment:


  • Are you re-populating the data in the combo-boxes based on user input in the ticket number? If yes, how are you doing that?...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...