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!

Search results for query: *

  • Users: FederalProgrammer
  • Content: Threads
  • Order by date
  1. FederalProgrammer

    replacing double space by a single

    I am grabbing a huge html text from a database and I have to strip off the unwanted junk before I can use the text: $newsText = $row->news_text; $newsText = str_replace("\'", "'", $newsText); $newsText = str_replace("\"", '"', $newsText); $newsText = str_replace(" ", " ", $newsText); I...
  2. FederalProgrammer

    Alternative to AND/OR?

    Consider the following data; I need a query that will return ID = 1 only if anotherGroupID = {1, 2, 3}. id | anotherGroupID ---------------------- 1 | 1 ---------------------- 1 | 2 ---------------------- 1 | 3 ---------------------- 2 | 1 ---------------------- 2 | 5...
  3. FederalProgrammer

    Pressing Tab...

    I've used Excel Sheets since the ice age... But for some reason, my setting is changed, so when I click on tab, instead of moving one cell to the right, I get moved from cellA to cellT!!! This is super annoying!! Also, when I click on my up and down keyboard keys, the entire excel sheet goes...
  4. FederalProgrammer

    onClick event handler

    I have 3 types of Accounts and for each of them different count of radio buttons should be displayed: Silver = 1 radio button should be displayed Gold = 2 radio buttons should be displayed Platinum = 3 radio buttons should be displayed I display the radio buttons and assign an onclick event...
  5. FederalProgrammer

    onClick handler

    I need to display at most 3 radio buttons depending on the logged-in user (silver members will get 1 radio button, while for a gold member there will be 2 radio buttons displayed and for plat members, there will be 3 radio buttons); Radio buttons are displayed correctly; My problem is with the...
  6. FederalProgrammer

    Variables from ascx.vb to ascx

    I have a variable in my code form: blah.ascx.vb I want to be able to access this variable in my html code: blah.ascx how can this be done? eg: in ascx.vb dim blah as integer = 102 in ascx: <asp:label ... text = #blah> --------------- www.enyotic.com/corporate/
  7. FederalProgrammer

    Combo Box within a DataGrid

    I am binding my datagrid to a datatable. All, but one of the columns are using the source datatable. However, in one column, I'm putting a combo box that should contain numbers from 1 to n... I have an arraylist of numbers... How can I bind this DropDownList this arraylist of numbers? My data...
  8. FederalProgrammer

    View Error on DB-Connect

    in this following line of code: $connection = mysql_connect($connect_host,$connect_user,$connect_password) or Die("Unable to connect to database."); $selection = mysql_select_db($connect_database) or Die("Unable to select database"); is there a way to see why I'm getting "Unable to select...
  9. FederalProgrammer

    DIV vs Goold ol' Tables??

    Well, I hope this is not like me asking if C# is better than VB.NET ('cause I know this is a subject that boils up a lot of programmers!!) We have to maintain a website w/ a flash header, written in PHP-MySQL and it uses CSS style sheets. The problem is my php programmer, is really complaining...
  10. FederalProgrammer

    Passing Event-Handlers as Function Parameters

    I need to pass an event-handler as a function-parameter to a class... any idea on how to do this? --------------- www.enyotic.com/corporate/
  11. FederalProgrammer

    LinkButtons inside Datagrid

    For some reason I cannot get the Command Event Handler to handle the click on my linkbuttons that are placed inside a datagrid of mine; I get an "Internet Explorer Script Error" which says on line1 char1 of my Container Form an object is expected. Please read on for a better description of what...
  12. FederalProgrammer

    processing images...

    I have a JPEG image of how a web-page should look like... it contains all sorts of tab pages, headers and footers; I am wondering if there's an easy way to turn this JPEG into html such that clicking on tabpage-headers for example are linked to their corresponding pages and so on... any idea...
  13. FederalProgrammer

    Selected Item of a listbox

    this must be super easy for one of u to answer: I have a list box. I add items to this listbox dynamically. I capture the "SelectedIndex_Changed" event of this listbox. The event is raised and handled once the user clicks on the listbox to select one of the items. I've made sure AutoPostBack...
  14. FederalProgrammer

    Adding Objects to ListBoxes

    I have an object w/ the following attributes: NickName Email AccountBalance I want to add instances of this object to a ListBox control such that, NickName property of the object is displayed; However, when the user selects the object from the ListBox, I want to be able to access all of...
  15. FederalProgrammer

    How to call stored-procedure using ODBC.NET

    I keep on getting an exception error saying how I haven't provided a parameter for a stored procedure(even though the parameter is provided and has a value!!) any ideas? How would you call your stored procedures using ODBC.NET? --------------- www.enyotic.com
  16. FederalProgrammer

    SQL-Server Stored Procedure Expects Parameter?!!!

    Here's my super simple Stored procedure in SQL-Server: CREATE PROCEDURE sp_AccountBalance (@Email varchar(255), @Balance money OUT) AS SELECT @Balance = tblBands.accountBalance FROM tblBands INNER JOIN tblUsers ON tblBands.ID = tblUsers.bandID Where tblUsers.Email = @Email I call this...
  17. FederalProgrammer

    ArrayList keeps getting re-initialized!!!

    I am trying to add a bunch of objects to my Listbox using an arraylist using the follwoing 2 funx: Private Sub Page_Load(ByVal s As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'If (Not Me.IsPostBack) Then Me._list = New ArrayList...
  18. FederalProgrammer

    Adding Objects to a ListBox

    In VB (or C#) .net, it's very easy to add an object to a listbox: dim obj as someObject listbox1.items.add(obj) I tried the same thing in ASP .NET (No luck!) So, now I've "bounded" my ListBox to an arraylist of Objects. The way it works is as follows: User interacts with the system to create...
  19. FederalProgrammer

    Radio button's checkedChanged

    Here's a beginner question: why is it that my Private sub rdi_checkedChanged(....) handles rdi.CheckedChanged 'some code in here end sub doesn't handle the checkedChanged event of my radio button?? I put a break point by this even handler, and the code doesn't break as I change the check...
  20. FederalProgrammer

    dll problems...

    This is a weird one: I have a main "Toolbox" written in vb .NET; It is an mdi parent to millions of other tools that is developed by our developers. We have included these tools as .dlls (references) in this "Toolbox". We have build scrips that builds each of these tools and puts them in a...

Part and Inventory Search

Back
Top