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
D

Dr_X

@Dr_X
About
Posts
183
Topics
38
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Ajax is not working
    D Dr_X

    EnablePartialRendering="true"

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET tools announcement

  • Migration problem
    D Dr_X

    Instead of doing alert messages using the onload function why don't you look at the Page.ClientScript.RegisterClientScriptBlock method in the code behind page. Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET csharp html help

  • how to get value from hash table
    D Dr_X

    This helpful to extract the whole list of key & values when debugging:

    Public Shadows Function ToString(ByVal hashTable As Hashtable) As String
      Dim s As String = String.Empty
      Dim enumerator As IDictionaryEnumerator = hashTable.GetEnumerator()
    
      While (enumerator.MoveNext())
        s += enumerator.Key & ": " & enumerator.Value & ControlChars.NewLine
      End While
      Return s
    End Function
    

    Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET data-structures cryptography help tutorial

  • Chart reccomendation
    D Dr_X

    We use the Infragistic suite which has a chart control. It is a bit of a ramp up on using it though. Once ramped up it has quite a variety of graphs types that can be utilized. Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET

  • Ajax
    D Dr_X

    I think both of you are correct. AJAX in the raw form can be used with just about any language. We have a legacy asp application that uses it. However, using the Ajax toolkit available from ajax.asp.net, I am pretty sure it requires the .Net 2.0 framework. I don't think you can use the Ajax from ajax.asp.net with .Net 1.1 as it would require 2 separate IIS application pools to run the application. Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET csharp question announcement

  • Controls Collection
    D Dr_X

    Use the following code to obtain the control containing all of your forms controls. Me.FindControl("ctl00").FindControl("contentMaster")) where "contentMaster" is referenced from your asp:content control located at the top of your aspx's source view page. < ... form's html ... Now you have a reference to the control containing all of the controls residing on the page. Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET question csharp asp-net learning

  • Ajax slowing my search??
    D Dr_X

    I can't remember which property of the UpdatePanel that caused me to slow down a while back. I think it was ChildrenAsTriggers. Play around with the few properties it has as it turned out to significantly reduce the amount of time it displays. Also, try not to use the DataBoundEvent if possible. You can tweak most of column properties from the eval & '<%# ... %>' code. I found it is faster to use IIF statements with in the '<%# ... %>' than the code behind event. Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET question help workspace

  • UK/GB Dates
    D Dr_X

    String.Format(yourDate, "dd/MM/yyyy") Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET question csharp sysadmin hosting

  • Gridview control in C#
    D Dr_X

    Here is an example:

    <
    <

    Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET help csharp

  • GridView columns HeaderText from a function
    D Dr_X

    The following variations (and more) fail to display correctly. Want to have the HeaderText property in the aspx page obtain a value from the code behind page. Any ideas?

    asp:BoundField DataField="Cargo" HeaderText='<% BL.Translate("Cargos") %>' SortExpression="Cargo"
    asp:BoundField DataField="Cargo" HeaderText='<% =BL.Translate("Cargos") %>' SortExpression="Cargo"
    asp:BoundField DataField="Cargo" HeaderText=<% BL.Translate("Cargos") %> SortExpression="Cargo"

    Thanks, Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET question

  • GridView with ShowFooter and 0 rows
    D Dr_X

    Unfortunately it didn't help with the showing of the Footer or Header when the grid's datasource property has 0 rows. Basically the insert/add new section of the grid is in the grid's Footer. When there are not rows to display for editing, I would still like the footer to display so that users can insert a new row. Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET question

  • GridView with ShowFooter and 0 rows
    D Dr_X

    Is there a quick and easy way to show the Footer & Header of a GridView when datasource come back with 0 rows? Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET question

  • Is it safe to move to IE7?
    D Dr_X

    I develop in asp1.1 & asp2.0 with ajax. Occasionally I have to do some legacy asp junk but for the most part it is now asp2.0. I am still running IE6 and was wondering if anyone had any issues with moving to IE7. We also use ActiveReports from the legacy 2.0 to current version for asp2.0. Thanks, Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET question announcement

  • Modifications Date
    D Dr_X

    Sorry, I don't see it in sysobjects, not that it doesn't exists somewhere.

    --create
    alter view vw_Junk
    as
    SELECT * from tempdb..tblJunk

    select * from sysobjects where type = 'v'

    name id xtype uid info status base_schema_ver replinfo parent_obj crdate ftcatid schema_ver stats_schema_ver type userstat sysstat indexdel refdate version deltrig instrig updtrig seltrig category cache


    vw_Junk 872153252 V 1 36 1610612736 0 0 0 2007-03-23 07:59:21.897 0 0 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0
    vw_Junk 872153252 V 1 36 1610612736 16 0 0 2007-03-23 07:59:21.897 0 16 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0
    vw_Junk 872153252 V 1 36 1610612736 32 0 0 2007-03-23 07:59:21.897 0 32 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0

    There is a sc

    Database database question help

  • Modifications Date
    D Dr_X

    SELECT Name, CRDate FROM SysObjects WHERE Name LIKE '%YourView%'

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    Database database question help

  • DBCombo Replacement
    D Dr_X

    I had it working with Ajax beta 1. I think it was beta 1 or an earlier version. Project is on hold for now. Anyway, take a look below. Might be helpful as it did work. It also had add-on-the-fly option. aspx's javascript

    function lfV()
    {
    //onkeydown="blur();"
      try {
        ListData.GetVesselID(document.getElementById('<%= Vessel.ClientID %>').value, vesselIDReturn);
     } catch(e) { alert(e.message); }
    }
    
    function vesselIDReturn(vesselID)
    {
      if (vesselID==0)
      {
        //alert("vesselIDReturn");
        if (!(document.getElementById('<%= butSave.ClientID %>')==null))
        {
          if (document.getElementById('<%= Vessel.ClientID %>').value.length > 3) {
            if (confirm("The vessel, '" + document.getElementById('<%= Vessel.ClientID %>').value 
                + "' does not exist. Please confirm it is spelled correctly with out abbreviations before adding. \\n"
                + "Would you like to add the new vessel, '" + document.getElementById('<%= Vessel.ClientID %>').value + "'?")) 
            {
              //alert(uid);
              ListData.AddVessel(document.getElementById('<%= Vessel.ClientID %>').value, uid, AddVesselIDReturn);
            }
          }
        }
      }
      else
      {
        document.getElementById('<%= VesselID.ClientID %>').value=vesselID;
        document.getElementById('<%= butRefreshList.ClientID %>').click();
      }
    }
    
    function AddVesselIDReturn(vesselID)
    {
      try
      {
        if (vesselID==0)
        {
          alert("Failed to add new vessel.");
        }
        else
        {
          document.getElementById('<%= VesselID.ClientID %>').value=vesselID;
        }  
      } catch(e) { alert(e.message); }
    }
    

    aspx's html

                      <
                        <
                          <
                          <
                          <
    
    ASP.NET

  • how to create a link in a grid view's each row to navigate to some other page
    D Dr_X

    <asp:HyperLinkField DataTextField="LastNameFirstNameMI"
    HeaderText="Employee" SortExpression="LastNameFirstNameMI" DataNavigateUrlFields="EncryptedUID"
    DataNavigateUrlFormatString="~/YourPageHere.aspx?id={0}" />

    Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET css tutorial question

  • Clear database contents
    D Dr_X

    Another way is simply to extract the schema and create a new database from it.

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    Database csharp database help question

  • autocomplete using large lookup table
    D Dr_X

    Take a look at Ajax: Ajax AutoComplete[^] Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    Database database csharp sql-server winforms design

  • How do I set a Dropdown list item Programatically?
    D Dr_X

    listControl.SelectedIndex = listControl.Items.IndexOf(listControl.Items.FindByValue(deptID))

    Michael

    I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    ASP.NET question sales csharp asp-net database
  • Login

  • Don't have an account? Register

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