&nbsp;<%# DataBinder.Eval(Container.DataItem, "description") %>&nbsp;

















Much as i hate to admit it i am out of my deapth on this so any help would be much appreciated

Source: http://www.livejournal.com/community/aspdotnet/40421.html

  • Formatting the DataGrid Control

    Date: 08/15/05     Keywords: no keywords

    I have a datagrid that returns information back two tables


    table 1
    activityID Key unique
    Activity Nvarchar(50)

    table 2
    tbl2id Key unique
    resortID Int(4) linked to the resort table
    activityID int(4) linked to table1.activityID

    I can return the details but they write in the
    datagrid as

    activity1
    activity2
    activity3

    instead of as

    activity1 activity2 activity3

    what is the simplest way to format the datagrid for this layout
    i have to do this in a few places.

    Fuzzygoth

    Source: http://www.livejournal.com/community/aspdotnet/40151.html

  • huh.

    Date: 08/12/05     Keywords: sql, microsoft

    gotta love it when you research a weird error you're getting and microsoft says this.

    SYMPTOMS
    When you use the Microsoft Visual Studio .NET debugger to debug an ActiveX Data Objects (ADO) application that contains Transact-SQL code, you may receive the following error message:
    System.Data.SqlClient.SqlException: General network error. Check your network documentation.
    You may notice this behavior when you restart Microsoft SQL Server while debugging the ADO application.
    Back to the top Back to the top

    STATUS
    This behavior is by design.

    ...

    BY DESIGN?

    ok, microsoft. you win today. :|

    anyways, on a related but not so related note.. our middle tier component that handles data connections started giving us the infamous "General network error. Check your network documentation." upon an executenonquery call on a stored procedure after we applied service pack 4 on SQL Server. anyone know why oh why SP4 is doing this?

    please enlighten while i sniff out the chatter on the .NET boards.

    xposted to '[info]'sqlserver and '[info]'csharp

    Source: http://www.livejournal.com/community/aspdotnet/39907.html

  • Mangling and HtmlAnchor in User controls

    Date: 08/12/05     Keywords: html, asp, web

    Is there any way to prevent HtmlAnchor from mangling your URLs? I want it to render exactly what I put there.

    I have /trail.ascx, which renders an and exposes the properties Href and InnerText. I'm using it in /admin/user.aspx. Unfortunately, HtmlAnchor thinks it's going to be "smart" and prepend all my URLs with "../". Apparently it thinks links should be relative to the user control, not the web form. Which is bogus.

    It won't even let me attempt to treat the a element as an HtmlGenericControl!
    The base class includes the field 'mylink', but its type (System.Web.UI.HtmlControls.HtmlGenericControl) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlAnchor).

    I'm more ranting than asking for help, but it would be nice if they fixed this.

    Source: http://www.livejournal.com/community/aspdotnet/39459.html

  • Changing Viewstate on sections of a DataGrid and Formatting Question

    Date: 08/09/05     Keywords: css

    I am looking at formatting a DataGrid in the following format

    Header
    Sub Catagory
    Sub Catagory Details
    Sub Catagory 2
    Subcatagoty Details 2
    Sub Catagory 3
    Sub Catagory Details 3

    The the header is always displayed as are the sub catagory
    headers when we click sub catagory 2 for example the viewstate
    will change without refreshing the page and display the details
    for sub catagory 2.

    So in a DataGrid Can i change the Viewstate of individual parts of
    the datagrid?

    Is it just css thats used to format the Datagrid?

    Source: http://www.livejournal.com/community/aspdotnet/39398.html

  • asp.net 2.0 books

    Date: 08/09/05     Keywords: database, asp, web

    Hello again.. have any of you found good asp.net 2.0 books or tutorials since the last time I posted? I purchased 2..

    Beginning ASP.NET 2.0 Databases Beta Preview
    This was a decent intro but it was a bit repetitive which made it a lil boring and it was terribly riddled with errors. Many were so obvious -- it made me wonder if anyone proofread the final draft.

    ASP.NET 2.0 Developer's Notebook by Wei-Ming Lee
    I really like this book. It had lots of examples and most of them worked. It covers many asp.net 2.0 subjects including personalization, web parts, themes & skins, etc. The faked coffee cup stains also add a nice touch ;)

    What about you?

    Source: http://www.livejournal.com/community/aspdotnet/39137.html

  • Hrm

    Date: 08/08/05     Keywords: asp, web

    After having put a project of mine on hold due to time constraints with school and work, as well as technical issues involving my own stupidity (You'd laugh if I told you, seriously, I'm so brain dead some times), I've gotten back to trying to muddle my way through ASP.NET.

    So my "Totally Obvious Question of the Day"TM is this: I've got a library file that I want to include in my webform, but I can't find the commands to actually include the file.

    It's always the easy stuff that gets me. *sigh*

    Thanks!
    --Lisa

    Source: http://www.livejournal.com/community/aspdotnet/38717.html

  • config file

    Date: 08/04/05     Keywords: web

    I am used to developing web project, but right now I am writing a windows service. I need something that is equivalent to web.config where I can store keys and things like that. I've created a .config file but I am unsure of how to reference it in my code....
    ConfigurationSettings.AppSettings(key) is not working. Or maybe I need to name my config file something specific?
    This is not difficult, I am just inexperienced with this stuff. Please enlighten!
    Thanks!

    Source: http://www.livejournal.com/community/aspdotnet/38235.html

  • ASP Forms

    Date: 08/01/05     Keywords: asp

    what's the best form to use for a site done in asp classic?

    my email form doesn't work anymore after moving the site (http://discountpackage.com/dps/catalog.asp)

    Source: http://www.livejournal.com/community/aspdotnet/38019.html

  • Session Variables that Do Not Persist? Please Help

    Date: 07/23/05     Keywords: software, asp, web, hosting

    I had this conversation with FastHosts. Clearly they are either refusing to acknowledge my problem or I am being a bit thick. Please help me someone. I have included the conversation below, with my questions and responses in bold:

    Here is an odd problem. When I run my ASP.Net on any server it works. When I run it on my fasthost server everything works except session variables do not persist across pages. Please resolve! It is probably an IIS setting that I can-not set programmatically.

    Can you provide further information, including full replication steps on how we can see the fact that the session variables are being lost.

    http://www.damn-them.com/login.aspx

    username = tester@pcarney.me.uk
    password = fish
    then click "click here to submit details".

    It sets the session variable "level" to 1 everywhere else but on fasthosts, which means that the page redirects to nothing I can use on your server. As I've said, It is MOST probably an IIS setting that I cannot change programmatically. Please resolve as this call should NOT be closed.


    The domain is incorrectly configured, as the path to the site appears to be C:\Inetpub\wwwroot which is incorrect on our servers. This should be e:\domains\d\damn-them.com\user\htdocs

    Please configure it correctly such that I might use session variables. It is after all a standard feature of ASP.

    The problem is with your scripts - please re-configure them.

    I do not use that anywhere in my scripts, compile or otherwise. Please give me access to the domain mapping so I might set it myself.

    I have no idea unfortunately. I did take a look at the web.config file but couldn't see anything in there, I would advise you to contact the devel-opers of the software.

    Here is the debug information:

    Row handle is invalid.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.OleDb.OleDbException: Row handle is in-valid.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [OleDbException (0x80040e04): Row handle is invalid.]
    System.Data.OleDb.OleDbDataReader.ProcessResults(Int32 hr) +63
    System.Data.OleDb.OleDbDataReader.GetRowDataFromHandle() +105
    System.Data.OleDb.OleDbDataReader.FindValueBinding(Int32 index) +34
    System.Data.OleDb.OleDbDataReader.PeekValueBinding(Int32 index) +16
    System.Data.OleDb.OleDbDataReader.GetValue(Int32 ordinal) +40
    System.Data.OleDb.OleDbDataReader.get_Item(String name) +20
    damn_them.CDataHandler.DoGetValue(String pQueryString, String pField-Name) in C:\Inetpub\wwwroot\CDataHandler.vb:90
    damn_them.CRoutines.IsValidLogin(String ptxtRequestEmail, String ptxtPassword) in C:\Inetpub\wwwroot\CQueries.vb:26
    damn_them.login.Button1_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\login.aspx.vb:53
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
    Sys-tem.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sour-ceControl, String eventArgument) +18
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
    System.Web.UI.Page.ProcessRequestMain() +1292

    The path to your web folder is e:\domains\d\damn-them.com\user\htdocs. I would recommend you rebuild your application as this is clearly a scripting error.

    C:\Inetpub\wwwroot\ is the path on the server it was build and it is pro-duced in line with the DLL and symbol debugging code. It does NOT pertain to physical files. I would like someone else to check my IIS settings please.

    Unfortunately, IIS settings on the Shared Hosting servers are set up correctly, and cannot be changed. The path within your .Net Application will need to be updated if it is to be used on the Fasthosts servers.

    I remain wholly unconvinced considering that the debug information re-ports symbolic debugging information at the time of compilation. Is there anyone there who actually knows about ASP.Net 1.1 and the necessary configuration for IIS?

    Source: http://www.livejournal.com/community/aspdotnet/37853.html

  • This community is so dead!

    Date: 07/22/05     Keywords: no keywords

    Share your most annoying code stories.
    Here's one from a few minutes ago!
    There used to be this programmer here who would write the worst code. Ever. Things like this:

    Dim dgDatagrid1 as DataGrid
    If not isTrue Then
    'do nothing <---(he would actually type that)
    Else
    x = y
    End If
    200 lines of else ifs instead of a case statement...

    So things like that. For some reason I just get so frustrated and mad when I see this code... so I was playing with the stapler and my coworker called me over to show me some more of the bad code - i had my finger under the stapler and when i saw the code i stapled my finger out of sheer shock and anger!
    Like, seriously. It's bleeding.

    Source: http://www.livejournal.com/community/aspdotnet/37445.html

  • Simple Question

    Date: 07/19/05     Keywords: database, asp

    Hello,
    I'm totally new to ASP.NET and I'm starting with 2.0. BTW, I bought both the Wrox Book "Beginning ASP.NET 2.0 Databases" and it was okay -- it was a little slow and had a few annoying mistakes but overall the code is decent for referencing. I also picked up the O'reilly book ASP.NET 2.0 A Developer's Notebook by Wei-Meng Lee. It seems like one of the better books available and I'm looking forward to reading it.

    I have a simple question that should be easy to answer. I'm making a hidden field (
    Btw, regarding my last post, we ended up using paging to take only the top 5.

    Source: http://www.livejournal.com/community/aspdotnet/37094.html

  • .NET agent

    Date: 07/14/05     Keywords: no keywords

    Anyone here used .NET's AgentManager class?
    If so, thoughts?

    Source: http://www.livejournal.com/community/aspdotnet/36852.html

  • Limiting Rows and also MSDN Asp.net events

    Date: 07/12/05     Keywords: rss, asp, web

    Hello all,
    MSDN has some ASP.NET Events coming up.. I have a feed specifically set for California but they may be near your town too. RSS feeds can be found here: http://www.msdnevents.com/rss/customFeeds.aspx

    Now I have a question about ASP.NET 2.0. My friend and I are both classic asp developers getting our feet wet with asp.net 2.0. To practice, we are making a portal with some web parts and some of the parts will just be RSS headlines. We have code that works very well but we'd like to limit the results to 5 per feed.. I've looked into using XSL to do the limitation but it seems so bulky. Does anyone have an elegant suggestion? We've scrolled through all of the properties but can't find anything :\


    <%@ Page Language="VB" %>











    <%#XPath("title") %>







    Any guidance is appreciated.

    Source: http://www.livejournal.com/community/aspdotnet/36472.html

  • ASP page not loading correctly

    Date: 07/05/05     Keywords: no keywords

    [Error: Irreparable invalid markup ('') in entry. Owner must fix manually. Raw contents below.]

    the problem


    thats the page in question.

    the problem is that when i go from page one to page two via the 'next' arrows.. it's not resetting the image until i get to the third page...and then it's behind...

    no idea why.. anyone able to help?

    here's the code:
    a href="artistportfolio.asp?aID=<%= Server.URLencode(artistID) %>&UID=<%= Server.URLencode(rsSmallImages("UID")) %>&offset=<%= Server.URLencode(nextoffset) %>">
    X-posted to

    Source: http://www.livejournal.com/community/aspdotnet/36192.html

  • dipshit associative arrays

    Date: 07/01/05     Keywords: asp

    Me: Why does this work? Page.Request.Form["nonexistentkey_klhdta"]

    ASP.NET: A String that contains a comma-separated list of the values associated with the specified key from the NameValueCollection, if found; otherwise, a null reference (Nothing in Visual Basic).

    Me: What kind of dipshit associative array returns null when the key does not exist? Throw a fucking exception!

    Source: http://www.livejournal.com/community/aspdotnet/35917.html

  • Best ASP.NET 2.0 tutorials/books?

    Date: 06/24/05     Keywords: asp

    Anyone have recommendations for great ASP.NET tutorials and/or books? I got the ASP.NET v.2.0—The Beta Version published by Addison-Wesley but the code doesn't work well. :\

    Source: http://www.livejournal.com/community/aspdotnet/35802.html

    1. .Net queries

      Date: 08/25/05     Keywords: asp, web

      Querystring Variables
      I have a component that i call in on several pages and
      in most the activityID is sent by the querystring and i
      pick it up using

      ActivityID = Cint(Int32.Parse(Request.Params("act")))

      but this returns as can't return this null i am assuming
      this is just the same as request.querystring() in normal
      asp I tries the IsNothing command and that didn't work
      so i need to grab the act value from the querysting and
      check if there is a value for it or not so i can call the
      approprate stored procedure what am i missing?


      Checkboxes
      Checkboxes from a datagrid, I have a datagrid with a check
      box field at the end of it so i can select was accomadation
      the user wants to mail to get details about this is basically
      to post the information back to the email builder form so
      that it can post all the infor the the email function. How do
      i pull back out and identify the checkbox values after posting
      them from a datagrid.

      I've been scouring the web and have found a few things that
      don't seem to work, its asp.net (vb.net) and i need to know
      what i am doing wrong, any thoughts?

      Cheers

      Source: http://www.livejournal.com/community/aspdotnet/41344.html

    2. MSDN Roadshow

      Date: 08/19/05     Keywords: asp

      Did anyone go to the ASP.NET MSDN Roadshow in Burbank yesterday? If so, what did you think about it?

      I was pretty disappointed -- the presenter seemed too unknowledgable to be presenting about ASP.NET 2.0. It was the little things really.. for instance, to make the code and it'll make the link for you.. most likely, based off of his example, you'll spend the rest of your time in 2.0 copy/pasting when you want to embed a stylesheet. That is, until you accidently figure it out for yourself, you read it somewhere or someone else says "wtf don't you just drag and drop it?"

      Another thing that he said was completely inaccurate. He was talking about the cool new things you can do with themes/master pages. "You know how you can't use SSI in Classic ASP to make dynamic titles?" At first I thought he was just kidding but he said it again later. I totally use SSI and Classic ASP for my themed site and my tag changes for each page. First I make the variable, then I call the includes file that has <title><%=Title%>. Is that really creative genius? He also said he used .inc files which..I know Microsoft did but it doesn't make sense. People can see your code. All of my include files were .asp in the event that people tried to go snooping.

      He also kept going and going even when it was obvious people needed a break. But I stayed through the first two hours and when he gave the break, I went up to ask him how to make dynamic titles in Master pages. See, he'd type in manually Title=Page1 or Title=Page2 and override what the Master said but I don't always know what the title of my page will be. I gave him an example with my recipe site.. 1 page is in control of all of my recipes so I don't know what my title will be until the person loads up the page. He looked lost. So I just stated "Can the title be a variable?" "Uhmm. Probably, yeah."

      At that point I left because while I knew enough about Master pages for him not to throw me off, I don't think I knew enough about his next 2 subjects and I didn't want to learn how to do it the wrong way and then be stuck in that mindset.

      I wonder what he was stuck in.. Kinda reminds me of this book I'm reading that said this...

      “We were writing a new system in C++, but most of our programmers didn’t have much experience in C++. They came from Fortran backgrounds. They wrote code that compiled in C++, but they were really writing disguised Fortran. They stretched C++ to emulate Fortran’s bad features (such as gotos and global data) and ignored C++’s rich set of object-oriented capabilities.”

      I feel that he didn't go out of his way to relearn 2.0 and he continued to use his 1.1 techniques. So yeah, if you are going to the MSDN roadshow and Bernard Wong is presenting, be warned!

      Source: http://www.livejournal.com/community/aspdotnet/41148.html

    3. 70-300 Exam

      Date: 08/17/05     Keywords: no keywords

      Hey Guys
      I have 2 exams left to get the MCSD certification, they are: 70-229 and 70-300
      I am having much more "fun" studying for 70-300 since we are currently doing a major rehaul of our product
      and I dont really enjoy physical db modeling.... would it be silly to take the 70-300 exam before the 70-229 ?

      Source: http://www.livejournal.com/community/aspdotnet/40937.html

    4. Hide a nested DataGrid in VB.net

      Date: 08/15/05     Keywords: asp

      [Error: Irreparable invalid markup ('') in entry. Owner must fix manually. Raw contents below.]

      Okay ... I am still no closer to understanding how to do this
      so here is my desprate plea, I have a a datagrid nested in
      another datagrid, I need to Hide this datagrid using asp.net(VB)
      without refreshing the page. Each nested DataGrid must be able
      to be hidden and expanded individually.

      DataGrid1
      DG1 Value
      DG2 Value (instance One)
      DG2 Value (instance One)
      DG2 Value (instance One)
      DG1 Value
      DG2 Value (instance Two)
      DG2 Value (instance Two)
      DG2 Value (instance Two)
      DG1 Value
      DG2 Value (instance Three)
      DG2 Value (instance Three)
      DG2 Value (instance Three)

      The current code i am using to hide the details is this from the
      codebehind, but i am not entirely sure how it works It only hides
      the first value.

      Sub dgResortDetails_DataBound(sender as Object, e as DataGridItemEventArgs)
      If e.Item.ItemType = ListItemType.Item OR e.Item.ItemType = ListItemType.AlternatingItem then
      If e.Item.ItemIndex = "0" then
      'Hide the Edit column control
      e.Item.Cells(0).Controls(0).Visible = False
      Else
      e.Item.Cells(0).Controls(0).Visible = True
      End If
      End If

      End Sub


      The aspx file holds the nested datagrid







      AutoGenerateColumns="false">













      AutoGenerateColumns="false">




    Previous page  ||  Next page


    antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home