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 Chriss Miller 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 daughtd

  1. daughtd

    How to insert rows from a datarow array into a datatable

    Can someone show me how to insert rows from a datarow array into a datatable? I'm using C#
  2. daughtd

    Problem with Datatable.Select() expression string

    I can’t figure what is wrong with this code: DataRow[] rowArray = new DataRow[tempTable.Rows.Count]; String expression = "ID != " + index.ToString(); rowArray = tempTable.Select(expression); I get an error stating: “Cannot interpret token '!' at position 4.” How should I write the...
  3. daughtd

    How to delete from a datatable based on a value in a column

    I have a datatable that is created on the fly. I need to be able to delete a row from it based on a value that is passed into a method as an argument. sort of like: private void deletion(string val){ then delete from the datatable where column 4 = val } Can this be done? If so how?
  4. daughtd

    Input string was not in a correct format.

    Oops Sorry. I get the error on the following line: int index = int.Parse(e.ToString());
  5. daughtd

    Input string was not in a correct format.

    I have a datatable that I'm using as a shopping cart. I need to be able to remove rows from this datatable. I have an aspx page that displays the datatables contents and I have a button which I want the user to be able to click to remove that particular record. The button's CommandParameter is...
  6. daughtd

    bind gridview to datatable created on fly

    Is it possible to bind a gridview to a datatable which is created and populated in the OnLoad event? If so some examples or some direction would be greatly appreciated
  7. daughtd

    define datasource parameters using session variable

    I am trying to set a parameter for a datasource using the "Define Parameters" Dialog box with a value from a session variable which is holding a datatable with 2 columns (col1 and col2). How can I access the session variable's col2 value? I've tried using "Cart.col2" (Cart is the name of the...
  8. daughtd

    Generate and Attach Multiple PDF's to an email

    Oh no offense taken. I feel like my grand father is teaching me how to swim by throwing me overboard about a mile from shore..haha. But I guess thats the best way to learn because I'm learning a lot of other stuff while digging through. But thanks anyway the info is very useful.
  9. daughtd

    Generate and Attach Multiple PDF's to an email

    I have created a shopping cart to hold the selected pdf PrimaryID to be emailed to a user. But I'm not sure how to go about creating the selected PDF from data residing in the database and attaching them to an email. I need to pull the data from the database based on the primaryID in the...
  10. daughtd

    How to check if session variable exists?

    I need to check for the existance of a session variable using an if statement. How can this be done? Ex: If (SessionVar Exists){ }else{}
  11. daughtd

    Menu Control Behavior (Newbie Question)

    I figured it out. I needed to set the datasource's "StartFromCurrentNode" property to False
  12. daughtd

    Menu Control Behavior (Newbie Question)

    I have a menu in my masterpage that is bound to a siteMapDatasource that has the following layout: Home MenuItem1 MenuItem2 MenuItem3 SubMenuItem1 SubMenuItem2 SubMenuItem3 the SubMenuItems pop-up when the mouse hovers over MenuItem3. Here's my problem. Whenever I click on one...
  13. daughtd

    Add where clause to SQLDataSource with parameter from anothe SQLDataSo

    I have two SQLDataSources I'll call them SQL1 and SQL2. SQL1 returns all from a table and is the datasource for a datalist. SQL2 is used as Datasource for a listbox inside my datalist. But I want to add a where clause that filters the rows returned based on a field returned in SQL1. Is this...
  14. daughtd

    Concat Multiple Data values in Junction table with many2many relations

    I have a junction table that holds an employeeID and DepartmentID. Sort of like: EmpID DeptID 1 200 1 300 1 110 2 300 2 200 I would like to write an SQL statement that would return the following dataset with one record for each...

Part and Inventory Search

Back
Top