Search:
Type: Posts; User: hellswraith
Search:
Search took 0.83 seconds.
-
You can do this with C# (pretty cool for sql statements):
string myString = @"
SELECT *
FROM myTable
WHERE ID = 5";
-
Try something like this:
Dim myString as string
myString = DataSet1.FieldValue("ListNum", Container).Trim()
myString = myString.Substring(myString.Length-2, 1)
-
I will look at some code I have at work tomorrow and see if I notice anything special.
-
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...
-
You are using a SqlCEConnection object and not the regular SqlConnection object right?
There are so many variables, can you show some code?
-
You can add an attribute above your property:
<XmlElement(isnullable:=True)>
public string Something;
-
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...
-
Not sure of the exact name, but have you referenced the System.Data.Common? (the CE version, not the standard one)
-
Try creating two different sql connections if you absolutely must have two readers open at the same time.
-
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();
}
-
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...
-
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...
-
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...
-
As said above, but with this as well:
DataGrid1.DataSource = ds.Tables("tblStatus")
DataGrid1.DataBind()
-
You want to look into generating code, have a look at this:
http://www.ericjsmith.net/codesmith/
-
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...
-
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...
-
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.
-
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...
-
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...
-
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...
-
The XML comments is a big one. I think operator overloading is another.
-
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...
-
I haven't tried it, but the DataTable (according to MSDN Library) is serializable:
<Serializable>
Public Class DataTable
Inherits MarshalByValueComponent
Implements IListSource,...
-
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...
-
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,...
-
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...
-
By the way, I liked the site. I just breezed through it, and it looks pretty good.
-
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...
-
http://www.dofactory.com/patterns/Patterns.aspx
It is in C#, but has implementations of all different kinds of patterns.
-
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...
-
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...
-
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...
-
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...
-
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...
-
That code works, but this might be better for future proofing:
string text = textBox5.Text;
text = text.Replace(System.Environment.NewLine," ");
textBox5.Text = text;
-
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...
-
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....
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|