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
M

mjc225

@mjc225
About
Posts
6
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Losing Session Variables within Frames
    M mjc225

    Good luck with that. Sadly I did that already too. I also neglected to mention that all of the pages where this problem occurs are master pages and things seem highly dependent on the postback. The fact that it works on Firefox has me more confused and wonder how much of it is client-side vs. server side. The next step that was suggested to me is changing all of the logic that involves session variables to query strings but that will prove to be a pretty intense over-haul on a site that has already been thoroughly tested. Let me know if you have any luck with your conversion though, let me know if it works.

    ASP.NET help question csharp html database

  • Losing Session Variables within Frames
    M mjc225

    Greetings, I have just developed a content-managed, database-driven application application that makes heavy use of postbacks and session variables. We own the domain that the site was designed to be hosted on, however, the customer does not want our URL showing. The solution our firm has used in the past is to just put the entire application within a frameset with the top frameset at 0% and the bottom one at 100%, thus the only file that needs to live on the customer's site is the frameset itself. In this case, the frameset is a Cold Fusion page but there is no server-side logic--just the HTML frameset. It is a cold fusion page because I'm told this is what worked in the past. They are running the .NET framework on the server but I don't know if they have any .NET sites up there. I was told that this should work because all of the code to run the application should work fine because everything should be self-contained within the frame, however, anytime a postback is done, it tends to lose all of its session variables. To further complicate matters, the same frameset, let's call it frameset.cfm works fine when both the frameset page and application are hosted on the same server, but when only the frameset.cfm page is moved to the client's server, the sessions fail, especially on pages with postbacks. Could someone explain to me what is going on and help me come up with a workaround? Because we need to contact the customer's IT department each time a file is placed on their server, we are hoping to involve them as little as possible. My next step is going to be to create a frameset.aspx page that will live on their server but I am told that our firm has never had a problem with the frameset.cfm files before... Ohh, and lastly, It always works in Firefox, and sometimes works in IE. On some IE 8 machines it works all the time, on some IE 8 machines it works most of the time, and on some IE8 machines it fails most of the time... Thanks in advance

    ASP.NET help question csharp html database

  • [Message Deleted]
    M mjc225

    [Message Deleted]

    ASP.NET

  • GridView and making my site look like this page
    M mjc225

    I love the way these pages look. How you have a list of all the posts, can click on one, and the whole post is displayed. I am in the process of doing something similar. I'm building a website that will show 5 of say 17 fields from a selected record in GridView kind of like to get the user's attention. Then, when the user clicks any of the 5 fields, all 17 fields would drop down, much like this page. Can that be done only with GridView or would I have to add a View/MultiView to the page. If I can do it with GridView is there a property I can set or would I have to write custom code? Are there any good code snippets out there? THanks.

    C# question

  • Filter GridView using a dropdown list but only after page populates with appropriate data from Query String
    M mjc225

    I am using a GridView on a page that will need to display data based on either a URL passed in with a QueryString OR fields passed from a form. This may return 50-500 records or so based on the state etc... If this is too many, (and only if this is too many) the user will be able to filter based on the occupation. I can get it to filter on query string AND state at the same time but not or sadly. I want it to default to all occupations after pulling from the DB based on state, (I tried setting the default value for occupation to -1) and then, the user can use the dropdown control to filter it more.

    <asp:dropdownlist id="ddlCategories" runat="server" appenddatabounditems="True" autopostback="True"
    datasourceid="sdsCategories" datatextfield="Occupation" datavaluefield="Occupation">
    <asp:listitem text="All Categories" value="-1">
    </asp:listitem>
    </asp:dropdownlist>
    <asp:sqldatasource id="sdsCategories" runat="server" connectionstring="<%$ ConnectionStrings:eventsConnectionString1 %>"
    selectcommand="SELECT [Occupation] FROM [Events]" ProviderName="<%$ ConnectionStrings:eventsConnectionString1.ProviderName %>">
    </asp:sqldatasource>

    <asp:gridview id="gvProducts" runat="server" datasourceid="sdsProducts" style="margin-top: 12px;" AllowSorting="True" AutoGenerateColumns="False">
    	<columns>
            <asp:BoundField DataField="EventTitle" HeaderText="EventTitle" SortExpression="EventTitle" />
            <asp:BoundField DataField="EventEndDate" HeaderText="EventEndDate" SortExpression="EventEndDate" DataFormatString="{0:MM/dd/yyyy}" />
            <asp:BoundField DataField="EventStartDate" HeaderText="EventStartDate" SortExpression="EventStartDate" DataFormatString="{0:MM/dd/yyyy}" />
            <asp:BoundField DataField="EventCity" HeaderText="EventCity" SortExpression="EventCity" />
            <asp:BoundField DataField="EventState" HeaderText="EventState" SortExpression="EventState" />
            <asp:BoundField DataField="Occupation" HeaderText="Occupation" SortExpression="Occupation" />
    	</columns>
    </asp:gridview>
    <asp:sqldatasource id="sdsProducts" runat="server" connectionstring="<%$ ConnectionStrings:eventsConnectionString2 %>"
    	selectcommand="SELECT \[EventTitle\], \[EventEndDate\], \[EventStartDate\], \[EventCity\], \[EventState\], \[Occupation\] FROM \[Events\] WHERE (\[EventState\] = ?)" ProviderName="<%$ ConnectionStrings:eventsConnectionString2.ProviderNa
    
    C# database sysadmin question

  • Max number of selections from a listbox/other control reset
    M mjc225

    Greetings. I am trying to build a form with one listbox and one drop-down list. For the listbox, I'd like the user to only be able to select 3 items. Is there any way to limit that? I'd also like the other control to be blanked out once the user selects something from the other control. I am able to do this for the listbox with onSelectedIndexChanged since only one selection is made, but if I do this for the Listbox it seems to trigger a postback each time. I was hoping for just the equivalent of OnFocus. Is this possible in .NET or would I have to use JavaScript? And does anyone have any good code snippets for either of these? Thanks in advance.

    ASP.NET csharp javascript database question
  • Login

  • Don't have an account? Register

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