demausdauth's Profile User Rating: -----

Reputation: 182 Stalwart
Group:
Expert
Active Posts:
663 (0.37 per day)
Joined:
03-February 10
Profile Views:
13,660
Last Active:
User is offline Yesterday, 07:34 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Saturn
Dream Kudos:
50
Icon   demausdauth Getting frustrated with paydays -- nothing left :(

Posts I've Made

  1. In Topic: Datagridview display one row

    Posted 19 Dec 2014

    Post what you have tried. It will at least be a start.
  2. In Topic: Datagridview display one row

    Posted 19 Dec 2014

    And you have tried what exactly?
  3. In Topic: Need help making a Raffle drawer/picker

    Posted 19 Dec 2014

    Your best bet would be to store the picked numbers and then as you get new random numbers compare to the list of already picked numbers, if it is already in that list of already picked numbers, then you need to get a new random number.
  4. In Topic: inserting pure HTML via VB code

    Posted 19 Dec 2014

    The styles that from your first box contain no asp.net server controls and I am willing to bet the styles themselves don't really take that into consideration. It is likely that javascript (jQuery) is being used to attach on click events to the inner most divs. This doesn't solve your problem, however it does give you an idea of what you might also need to explore.

    Lets examine what you you need to do for each clickable item. You need to get this html code to the page:
    <div title="Button Title" class="ams-button">
    	<div class="ams-button-edge ams-button-left"></div>
    	<div class="ams-button-middle">
    		<div class="ams-button-text">Put Some Text Here</div>
    	</div>
    	<div class="ams-button-edge ams-button-right"></div>
    </div>
    
    
    

    Where "Put Some Text Here" needs to be the button text and it sounds like you are wanting it to be a linkable object.

    So what I would do is create a user control for the buttons.

    User Control client side:
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SpecialLink.ascx.cs" Inherits="WebApplication6.UserControls.SpecialLink" %>
    
    <style type="text/css">
        a { color: inherit;text-decoration: none;}
    </style>
    <div title="Button Title" class="ams-button">
    	<div class="ams-button-edge ams-button-left"></div>
    	<div class="ams-button-middle">
    		<div class="ams-button-text">
    		    <asp:HyperLink runat="server" ID="hlLink"></asp:HyperLink>
    		</div>
    	</div>
    	<div class="ams-button-edge ams-button-right"></div>
    </div>
    
    


    User Control codebehind
    public partial class SpecialLink : System.Web.UI.UserControl
        {
            public string LinkText { get; set; }
            public string LinkUrl { get; set; }
    
            protected void Page_Load(object sender, EventArgs e)
            {
                hlLink.Text = LinkText;
                hlLink.NavigateUrl = LinkUrl;
            }
        }
    
    


    And this is the page that loads my special link "buttons"
    
            protected void Page_Load(object sender, EventArgs e)
            {
    
                var buttons = GetListOfLinks();
    
                foreach (var button in buttons)
                {
                    var buttonControl = (SpecialLink)LoadControl("~/UserControls/SpecialLink.ascx");
                    buttonControl.LinkText = button.Key;
                    buttonControl.LinkUrl = button.Value;
    
                    pnlButtons.Controls.Add(buttonControl);
                }
            }
    
            public Dictionary<string, string> GetListOfLinks()
            {
                Dictionary<string, string> buttonDictionary = new Dictionary<string, string>();
    
                buttonDictionary.Add("test link google", "http://www.google.com");
                buttonDictionary.Add("wtf link", "http://thedailywtf.com/");
                buttonDictionary.Add("D.I.C.:ASP.Net Forum", "http://www.dreamincode.net/forums/forum/30-aspnet/");
                
                return buttonDictionary;
            }
    
    


    And yes I coded in C# but all of this is a pretty easy conversion to VB if that is what you need. Granted I do not know what these buttons are suppose to look like but my code worked to add all three buttons to a panel.

    You could easily swap the HyperLink control for a LinkButton.
  5. In Topic: Populate Textbox

    Posted 25 Nov 2014

    What does your code look like? What is the signature of the webservice method that you want to call? Do you know if the webservice works? Are you getting an error? Some code would be nice.

My Information

Member Title:
D.I.C Addict
Age:
Age Unknown
Birthday:
February 2
Gender:
Location:
Minnesota
Interests:
my family, reading, programming, DDO
Full Name:
Aaron
Years Programming:
8
Programming Languages:
VB.NET, C#.NET, ASP.NET, SharePoint 2007 - 2010 development,
Javascript

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    .nethelp Icon

    07 Apr 2012 - 14:31
    why did u put -1 on my reputation coz u know better? werent u like me before ? thanks anyways this truely shows ur good spirit and what a good mentor u are .
    bye
  2. Photo

    .nethelp Icon

    07 Apr 2012 - 14:31
    why did u put -1 on my reputation coz u know better? werent u like me before ? thanks anyways this truely shows ur good spirit and what a good mentor u are .
    bye
  3. Photo

    Guest 

    29 Jun 2010 - 13:54
    http://www.dreamincode.net/forums/topic/179550-updatepanels-placeholders-and-usercontrols/
  4. Photo

    joker_1 Icon

    13 Jun 2010 - 21:37
    Hi quick question.. What is the "e" argument??
    thanks heaps
  5. Photo

    demausdauth Icon

    11 Jun 2010 - 06:05
    lol -- not trying to break any records
  6. Photo

    CharlieMay Icon

    10 Jun 2010 - 18:31
    Just wanted to say, you keep answering questions like you do and your rep is going to sky-rocket.
Page 1 of 1