User Profile

Collapse

Profile Sidebar

Collapse
snester
snester
Last Activity: Nov 12 '08, 08:28 PM
Joined: Oct 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • snester
    replied to Xpath element 'search' in asp.net
    in XML
    Got it..

    Code:
    XPathNodeIterator iter = navdoc.Select("//Page[Description=(contains(.,'home'))]/Name");
    See more | Go to post

    Leave a comment:


  • snester
    started a topic Xpath element 'search' in asp.net
    in XML

    Xpath element 'search' in asp.net

    I am trying to search for a term within my description element of my xml file using xpath:

    XML File sample:
    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <Site>
      <Page>
        <Name>Home</Name>
        <Description>
          the word home maybe in the middle of a sentance.
        </Description>
      </Page>
    </Site>
    ...
    See more | Go to post

  • snester
    replied to search engine
    You can do this by using SQL statements to query your databases. You can specify the columns you wish to return and thus reducing secuirty issues.

    Check out: http://www.w3schools.c om/sql/default.asp
    See more | Go to post

    Leave a comment:


  • snester
    replied to Checkbox list
    in .NET
    I'm sorry, my code was slightly incorrect before, hopefully this should be self explainitory..

    Code:
    int count = 0;
                int[] n = new int[chlistDomains.Items.Count];
                int trackPos = 0;
                string[] s = new string[chlistDomains.Items.Count];
    
                for (int i = 0; i < chlistDomains.Items.Count; i++)
                {
                    if (chlistDom
    ...
    See more | Go to post

    Leave a comment:


  • Thank you, found the problem..

    I was on the right track but didn't quite get it.. the error was caused within the web.config file located in the Microsoft.NET\F ramework\v2.0.5 0727\CONFIG\ folder. It seems somehow I managed to save over this web.config file with my web services project web.config file.
    I think it is due to the handy feature in Visual Studio which allows the opening of external files into a new tab, on the...
    See more | Go to post

    Leave a comment:


  • snester
    replied to Checkbox list
    in .NET
    The .SelectedValue method will only select a single value..

    you should select each item specifically:

    Also, you could use an array to capture your values:

    Code:
    string[] s = new string(chlistDomains.Items.Count());
    
            for (int i = 0; i < chlistDomains.Items.Count; i++)
            {
                if (chlistDomains.Items[i].Selected)
                {
    ...
    See more | Go to post

    Leave a comment:


  • snester
    replied to Sort with GROUP BY, HAVING
    it's been along time since your post, did you ever get it answered?

    I would suggest you do not need to use group by here.. try..

    SELECT * , (SUM( cantidad ) - cantidad) AS facturado FROM PRODUCTOS WHERE id_items = '1' AND ( id_fc =0 OR id_fc IS NULL ) ORDER BY nombre

    Hope this helps (if you still need it).
    See more | Go to post

    Leave a comment:


  • snester
    replied to Vote/Survey ,Poll in and ASP Page
    I'm not sure I understand the question.. but do you require a way of displaying a graph based upon your visitor counts?

    If so, check this out.. http://www.motobit.com/tips/detpg_html-bar-graph-chart/
    See more | Go to post

    Leave a comment:


  • snester
    replied to Calling javascript function from asp
    The problem is that you have no event to fire the function.

    Try..
    Code:
    <% 
    test = 1
    %>
    
    <html>
    <head>
    
    <SCRIPT LANGUAGE="JavaScript">
    function enb() {
    document.form1.send.disabled=true;
    }
    </SCRIPT>
    </head>
    <body 
    <%
    IF test=1 THEN
    %>
    onLoad="enb()"
    <%
    ...
    See more | Go to post
    Last edited by jhardman; Oct 6 '08, 05:40 PM. Reason: put code in code tags. please note button marked #

    Leave a comment:


  • You can use

    ListBox1.Items. Add("new item");

    and

    ListBox1.Items. Remove(theitem) ;

    to change items in the listbox at runtime.
    See more | Go to post

    Leave a comment:


  • snester
    replied to Navigation in report
    in .NET
    Do you still require assistance with this bug?

    If so, can you post some more information about the dataset you are using and what you are trying to achieve?
    See more | Go to post

    Leave a comment:


  • ASP.NET "Object reference not set to an instance of an object" error..

    Hi,

    I am using visual studio 2005 and recently created a new web service project. I seem to have edited the global config file (inadvertently) somewhere along the line.

    All new projects I have created since the above web service project have generated two errors while debugging. The first error, I believe I have fixed but I cannot fix the second error. I mention the first error below incase it is the cause of the...
    See more | Go to post
No activity results to display
Show More
Working...