Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by may1hem

  1. may1hem

    Use Google spreadsheet to populate ASP.net web page

    My ISP does have ASP.net installed (version 4). What do I need to do be able to use "Google.Gdata.Client"? I'd imagine either something needs to be installed on the web server, or there needs to be a link to pull in this ability?
  2. may1hem

    Use Google spreadsheet to populate ASP.net web page

    A couple of friends and I share a Google spreadsheet to keep a list of events. I want to use this spreadsheet to populate a web page. I want it to the web page to automatically update when the spreadsheet is updated. So I'm guessing I should use an ASP.net repeater and pull in the spreadsheet...
  3. may1hem

    How to show or hide controls using checkbox click, client-side?

    I have separate snippets of text which I want joined together to form an email message. My ASP.net page has a radiobuttonlist where the user can select the email circumstance, and based on the selection I want some checkboxes to show or hide. Then, as certain checkboxes are clicked, I want an...
  4. may1hem

    How to add class attribute to list item in master page

    Thanks for your response, but I can't get this to work. I checked the source code, the ID doesn't change when I view the page in a browser. Also my Visual Studio 2008 gives an error when I add clientidmode to an <a> tag. Any ideas how to fix this?
  5. may1hem

    How to keep label and input together in horizontal CheckBoxList

    I have a CheckBoxList, with RepeatDirection set as "Horizontal" and RepeatLayout set as "Flow". I'm finding that the label and input (checkbox) don't stay together at the end of a line. So I end up with the checkbox on the previous line and the label on the next line, which isn't good. I'm...
  6. may1hem

    How to pass dropdownlist as parameter

    Thanks for your reply Mark. Actually I found the real problem was that I'd replaced the wrong parameter name in the first string definition. Anyway I learned something from your reply!
  7. may1hem

    How to pass dropdownlist as parameter

    I want to create a sub which accepts a dropdownlist and a comma separated string as a parameter and populates the dropdownlist. The code does do the job when I enter the name of the dropdownlist directly, but it doesn't work when I create a separate sub for general use. I think it's because it's...
  8. may1hem

    How to add class attribute to list item in master page

    I have a menu list in my master page and in each page on my web site I want the current page to be highlighted in the menu. Here is the relevant snippet of the MasterPage file: <body id="master_body" runat="server"> <div id="header"> <div class="container"> <div id="top-menu"> <ul...
  9. may1hem

    How to make multiple Adrotators show unique images from same XML file?

    I have 5 Adrotators on a web page, and they all select images to display from the same XML file. At the moment it's working, but sometimes when I refresh the page a few of the Adrotators display the same image which I don't want. Is there a way to make them display 5 unique images from the same...
  10. may1hem

    How to pass listbox or string as a parameter to a function?

    Thanks Strongm, that code snippet worked perfectly! Thanks for the idea MajP, but it was important to write only 1 function.
  11. may1hem

    How to pass listbox or string as a parameter to a function?

    I've been thinking, would it be possible just to pass one value to the function as a string and then inside the function test if it's a valid listbox otherwise assume that it should be a string?
  12. may1hem

    How to pass listbox or string as a parameter to a function?

    I see... I'm using VBA to reply to emails. I create a button on the toolbar which runs my VBA code, which generates an email reply. Could I do the same with VB.net? How do I get started with this? I have Visual Studio 2008 but don't use it. Would there be any advantage to using VB.net?
  13. may1hem

    How to pass listbox or string as a parameter to a function?

    Ok thanks MajP, I thought about that but thought there must be a way to pass whatever I like to a function using just 1 parameter. I'm coding using VBA for Outlook 2007. Is there a way to use VB.net with Outlook instead?
  14. may1hem

    How to pass listbox or string as a parameter to a function?

    Hi, I want to create a general function which accepts either a string or a listbox. I've tried to use a variant but this doesn't work. Public Sub FnDoStuff(IdStringOrListbox As Variant) 'Do stuff here.. End Sub How can I get the function to accept either a string or a listbox?

Part and Inventory Search

Back
Top