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 dencom 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: stonehead
  • Content: Threads
  • Order by date
  1. stonehead

    set selected value for dropdown list in gridview template

    All, This is what I currently have; and the error I got is "Object reference not set to an instance of object" for line myDDL.Items.FindByValue("strStatus").Selected = True Please help me. Protected Sub btnEditRecord(ByVal sender As Object, ByVal e As System.EventArgs)...
  2. stonehead

    how to fire a button in template field

    All, I'm trying to find a way to fire a my btnEdit with no luck. I need some help. Thank you. <asp:TemplateField> <ItemTemplate> <asp:Button runat="server" ID="btnEdit" Text="Edit" OnClick ="btnEditRecord"/> </ItemTemplate>...
  3. stonehead

    Cannot have multiple items selected in a DropDownList.

    All, Below is what I have and when I click submit button I got the error "Cannot have multiple items selected in a DropDownList" Any help is appreciated. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then...
  4. stonehead

    Unable to cast object of type 'System.Data.DataView' to type 'System.D

    Hi all, I'm trying to do sorting for my gridview. This is the error I got Unable to cast object of type 'System.Data.DataView' to type 'System.Data.DataTable' for this line gvDetail.DataSource = SortDataTable(Session("myTable"), False) Please help. Protected Sub...
  5. stonehead

    if statement in eval binding

    Below is what I currently have. I'd like to put a if statement there to make my column show "N/A" if the field has null value. Please help me with the syntax. Thank you. <ItemTemplate> <asp:hyperlink navigateurl='<%#string.Concat ("\\serverName\FileRequest\" ...
  6. stonehead

    gridview - show only 1st couple words of the data field

    Hi all, I use gridview to show my data. There's one field called description. It's very long so it looks really ugly if I have everything shown. Is there a way for me to show just 1st couple words the field & (make it hyperlink) so users can click on those words of that one record to expand...
  7. stonehead

    display file path hyperlink in gridview

    Hi all, I use gridview to display data from a table. In one field I have a .pdf file path. I just don't know how to make it shown in hyperlink. Any help is greatly appreciated. (in SQL table that field has the value of C:\temp\filename.pdf) in asp.net page my code looks like this...
  8. stonehead

    free a section of my asp page

    Hi all, I need to free a top section of my asp page. I don't know if there's a way to do it. Any suggestion is appreciated. Thank you
  9. stonehead

    passing value from vb page to html page ?

    Hi all, This is a little complicated to explain please bear with me. What I'm trying to do is get an interactive map base on user's choice (by either click on the image or enter the facet map #) I have 2 pages page1: map1.aspx Sub doSubmit(ByVal sender As Object, ByVal e As EventArgs)...
  10. stonehead

    form submit to another page

    Hi all, I'm totally new to .NET. I'm trying some simple stuffs and stuck with form submit. Any help is appreciated it. Form1: form method="get" action="/IMap.aspx" id=form2 name=form1> <b><i>Enter Facet Number:&nbsp;&nbsp;&nbsp;</i></b> <input name="map" type="text" size="5">...
  11. stonehead

    access 2000: add new user to workgroup ?

    Hi all, I need to add new users to the workgroup but I don't know how. I did not create the database, s/o did and he left. I see the .mdw in the folder. I open it and do not see any table. There're couples queries, 1 of it is MSysUserList which display user names but I have now idea where...
  12. stonehead

    Save current record only ?

    Hi all, This is what I'm trying to do. A form with multiple controls. Users enter data, save it/ or open the form with saved data. Because a lot of cases, the data is pretty much the same, users just changes a couple things on the current record then hit button "Save as New Record" My problem...
  13. stonehead

    if statement in binding data ?

    Hi, Below is what I currently have. What I want now is to add more condition to my data binding. Instead of always getting data from "message" field: Text='<%# Eval("Message") %> I want it to get data from other fields depends on the value of "status" field. Any help is greatly appreciated...
  14. stonehead

    Change the Paths to Linked OLE Objects

    Hi, I have an old access database with thousands of linked OLE objects (images). Now my image folder was moved to another server. How could I change the path of all my linked OLE objects ? It is impossible for me to manually change one by one. Please please help. Thank you,
  15. stonehead

    create new database - keep asking for password ?

    Hi, All I want is to create a new blank database w/o any password but for some reasons my access keeps promting me a window with user name as ask me for password. Please help me to fix it. Thanks in advance.
  16. stonehead

    select distinct account ?

    Hi all, My table has fields: account,agentID, date, conclusion_code with duplicate account exist now I need to create another table with distinct account and choose other values based on the latest date This is what I tried CREATE TABLE #UniqueAccount2 ( Account VARCHAR(50), Agent int...
  17. stonehead

    column not contained in either an aggregate function or the GROUP BY

    Please help me to fix this code. error: "myView.queue is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause." select a.account, min(a.time_on) as Informal , a.queue as In_agent, max (b.time_on) as Formal, b.queue as For_Agent...
  18. stonehead

    make several records into one ?

    Hi, Exemple of my current data: Account Date_Time Queue 123 2006-03-02 13:28:14.577 I 123 2006-07-13 15:03:33.000 ASmith 123 2006-07-13 16:03:33.000 P 123 2006-07-13 15:03:33.000 BClinton What I need to do is to make those same...
  19. stonehead

    retrieve data from sql table

    Hi all, This is a very simple task I guess but since I'm brand new at asp.net I need your help. I want to set myLabel.text = "update_date" field in mySql table (single row) My connection string is like this but I have no idea what to do next. Thanks in advance. Dim myCnn As...
  20. stonehead

    save content of a subform to a table ?

    Hi all, I have a subform displayed records filtered from a main table. Could you please show me know to save all those filtered records in my subform to another table ? I've searched the forum but could not find the answer. Your help is much appreciated.

Part and Inventory Search

Back
Top