Search:

Type: Posts; User: hellswraith

Page 1 of 13 1 2 3 4

Search: Search took 0.97 seconds.

  1. Replies
    5
    Views
    3,366

    Re: Line cannot exceed 2046 characters

    You can do this with C# (pretty cool for sql statements):



    string myString = @"
    SELECT *
    FROM myTable
    WHERE ID = 5";
  2. Replies
    2
    Views
    543

    Re: Trim a DB field

    Try something like this:

    Dim myString as string
    myString = DataSet1.FieldValue("ListNum", Container).Trim()
    myString = myString.Substring(myString.Length-2, 1)
  3. Replies
    5
    Views
    1,649

    Re: interesting...missingmethodexception?

    I will look at some code I have at work tomorrow and see if I notice anything special.
  4. Replies
    9
    Views
    2,305

    Re: AutopostBack

    If you will notice, that post is over a year old (04-02-2004). This thread was brought back to life. I use custom javascript to set focus after postback now, as I did have some problems with...
  5. Replies
    5
    Views
    1,649

    Re: interesting...missingmethodexception?

    You are using a SqlCEConnection object and not the regular SqlConnection object right?

    There are so many variables, can you show some code?
  6. Replies
    3
    Views
    3,364

    Re: serializing empty xml element

    You can add an attribute above your property:


    <XmlElement(isnullable:=True)>
    public string Something;
  7. Replies
    9
    Views
    2,367

    Re: label scope, goto statement question

    I think you should definately restructure your code. How do you ever troubleshoot that...

    I have no idea what exactly you are trying to accomplish, but if you have multiple conditions, why don't...
  8. Replies
    5
    Views
    1,649

    Re: interesting...missingmethodexception?

    Not sure of the exact name, but have you referenced the System.Data.Common? (the CE version, not the standard one)
  9. Re: Can we open Two SQL Command Object at a time

    Try creating two different sql connections if you absolutely must have two readers open at the same time.
  10. Replies
    2
    Views
    617

    Re: Inheritance and Collections

    Doing this is a more safe way to do it so you don't accidently get a Car trying to be cast into a Truck:

    Truck t = myVehicle[0] as Truck;
    if(t != null)
    {
    t.Trailer = new Trailer();
    }
  11. Replies
    25
    Views
    1,578

    Re: slow performance

    That will only cut about 1/10 of a second off the page load, not really worth the effort unless he has millions of people showing up at the site every month. There are only 20 label controls on that...
  12. Re: Separate dynamic controls with a ""

    Take the time to scroll down your toolbox until you find the Literal Control. That control is rarely seen because you normally have to scroll down to it. You see, it literally outputs what you put...
  13. Replies
    11
    Views
    2,170

    Re: distributable standalone exe with VB.NET

    It seems like everyone is missing the point in this thread, his application threw an unhandled exception:



    This isn't an error for not having the framework. Also, you can create a EXE and run...
  14. Replies
    2
    Views
    604

    Re: Strange SQL Problem

    As said above, but with this as well:
    DataGrid1.DataSource = ds.Tables("tblStatus")
    DataGrid1.DataBind()
  15. Replies
    6
    Views
    879

    Re: Data Classes

    You want to look into generating code, have a look at this:
    http://www.ericjsmith.net/codesmith/
  16. Replies
    30
    Views
    2,145

    Re: store credit cards for customers

    Storing credit card numbers is a horrible idea if you are not aware of what you are doing. Most companies can not dedicate the resources to handle the security aspects of things.

    People, the...
  17. Replies
    11
    Views
    1,812

    Re: MsgBox versus Messagebox.Show

    Agreed. C#, Java, and C++.Net developers don't use MsgBox, why should VB.Net developers? Learn the framework and not the compatibility features they threw in to help shave off 30 minutes of...
  18. Replies
    21
    Views
    1,611

    Re: Search Enhgines

    Check this out:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/urlrewriting.asp

    It might help you solve everything about the search engines.
  19. Re: Maintaining State is really confusing me !

    Yep, the Global.asax file contains those events.

    Also, you can configure how the aspnet worker process behaves and session timeouts behave by adjusting settings in your web.config, or the...
  20. Replies
    2
    Views
    505

    Poll: Re: Dev with what?

    I understand what you are saying, but if you want the cleanest approach (with .net anyway) you are probably looking to have your UI in one project for all of them. Now, that doesn't mean you are...
  21. Re: Maintaining State is really confusing me !

    Session, Application, Cache, and even using a static member in a module are powerful things, but if you don't know how they work, you will be left with odd things happening. I suggest you take some...
  22. Replies
    5
    Views
    1,358

    Re: VB.NET vs. C#.NET

    The XML comments is a big one. I think operator overloading is another.
  23. Replies
    12
    Views
    1,163

    Re: My first ASP.NET project!

    Ensure your site isn't in annoynomous access mode. If it is, network credentials won't be passed on by IIS to the asp.net worker process. You can open up the IIS manager, go to your virtual...
  24. Replies
    2
    Views
    2,132

    Re: Serialize DataTable

    I haven't tried it, but the DataTable (according to MSDN Library) is serializable:

    <Serializable>
    Public Class DataTable
    Inherits MarshalByValueComponent
    Implements IListSource,...
  25. Replies
    3
    Views
    729

    Re: Impersonation - Is this possible?

    You are doing somthing wrong if you need to impersonate someone in your application. First of all, you will need to store the identity information in your application. This is just wrong for all...
  26. Replies
    4
    Views
    691

    Re: VB.Net or VC++/VC# Which One

    I went from VB6 to C#. THE BEST THING I could have done for myself. I see so many taking the easy road with .NET and going with VB.NET. The problem is you tend to not learn the framework as much,...
  27. Replies
    2
    Views
    710

    Re: Session End Event

    I have heard of it working, but only spotty at best. But as plenderj said, the browser really doesn't have to report back. What if it crashes? Don't ever count on this event to work right when the...
  28. Replies
    21
    Views
    1,611

    Re: Search Enhgines

    By the way, I liked the site. I just breezed through it, and it looks pretty good.
  29. Replies
    21
    Views
    1,611

    Re: Search Enhgines

    Man,

    That document of hers is sooo bad, I don't know what to tell you.

    Here you go, this is my advice:

    First, ask her if she knows what .NET is in front of the boss. Of course, she will say...
  30. Thread: Singleton

    by hellswraith
    Replies
    14
    Views
    1,276

    Re: Singleton

    http://www.dofactory.com/patterns/Patterns.aspx
    It is in C#, but has implementations of all different kinds of patterns.
  31. Replies
    9
    Views
    1,131

    Re: Losing Session (annoying me!)

    Is the server running in a web farm or web garden mode? If so, I know that session isn't shared between processes. So if you have multiple processors running a worker process, those processes don't...
  32. Replies
    21
    Views
    1,611

    Re: Search Enhgines

    Who are you doing business for? These guys have absolutely NO clue on what they are talking about obviously. It seems like you are getting pushed in a corner when you should be pushing them in a...
  33. Replies
    21
    Views
    1,611

    Re: Search Enhgines

    Search engines don't index the raw aspx pages. They only index what is served to them from the server. This tool you are talking about, do you run it locally on the aspx files? If they are...
  34. Replies
    6
    Views
    879

    Re: Data Classes

    Cool, this is fun exercise. After using mine for a while, I have found that I want to change quite a few things. It works really well (although I never have polished it or did the error corrections...
  35. Replies
    12
    Views
    944

    Re: form layout

    Well, the first time I tested, labels were faster. The results are below.

    Subsequent tests yielded that the plain html was faster. But, it was only 25 milliseconds faster. So unless you are...
  36. Replies
    3
    Views
    14,194

    Re: Replace enter with space

    That code works, but this might be better for future proofing:


    string text = textBox5.Text;
    text = text.Replace(System.Environment.NewLine," ");
    textBox5.Text = text;
  37. Replies
    14
    Views
    1,290

    Re: Is C# low-level lang ?

    If you use it to write unmanaged code....sure. You have a lot of power when you use it to write unmanaged code, much like C++. But, if you needed to do any large amount of unmanaged code, why not...
  38. Re: How often do you make a break at work and how many hours do you work per day?

    8am - 5pm

    8-9 Email, Surf
    9-11 Program (goes in spurts, take couple minute breaks during that time).
    11-12 Programming winds down, email, get ready for lunch.
    12-1 Lunch
    1-1:30 email, surf....
  39. Re: Can vb.net code be integrated with c# code?

    In Visual Studio .NEXT (2005?) you will have the ability to have VB and C# code files in the same project. Right now, you need two seperate projects (one a vb, and the other a C#).

    I REALLY think...
  40. Replies
    11
    Views
    1,050

    Re: Define CSS (Newbie)

    You can take your stylesheet in the solution explorer and drag it onto the aspx page on the design surface. This stops you from having to paste the html on every page, you can just drag a stylesheet...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width