Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 92
Search took 0.01 seconds.
Search: Posts Made By: weicco
Forum: ASP.NET 2.0 Basics May 23rd, 2008, 06:25 AM
Replies: 2
Views: 1,486
Posted By weicco
Well, of course you can't change string...

Well, of course you can't change string "picture1.jpg" to an image. You need to have the image data somewhere. So the question is, where does the actual image come from?
Forum: ASP.NET 2.0 Professional May 16th, 2008, 12:34 AM
Replies: 3
Views: 9,197
Posted By weicco
You mean if you move that Page_Load method from...

You mean if you move that Page_Load method from master page to content page it doesn't work? How does it not work? It doesn't compile? What is the error?
Forum: ASP.NET 2.0 Basics May 16th, 2008, 12:28 AM
Replies: 2
Views: 1,209
Posted By weicco
Why would you want to stop it from encoding? URLs...

Why would you want to stop it from encoding? URLs must be encoded or otherwise servers can't parse HTTP requests. Luckily most (all?) browsers do this automatically but I'd still do it on the server...
Forum: ASP.NET 2.0 Professional May 14th, 2008, 03:35 AM
Replies: 2
Views: 1,150
Posted By weicco
Well the COM component on the other machine...

Well the COM component on the other machine doesn't support that interface. Make sure that component versions are the same in both environments.
Forum: ASP.NET 2.0 Professional May 13th, 2008, 04:23 AM
Replies: 1
Views: 1,234
Posted By weicco
Don't format datetime values when you are storing...

Don't format datetime values when you are storing them. Just store them in DateTime datatype and be happy about it. Things get a lot easier. You don't need to do any tedious casting/formatting when...
Forum: .NET Framework 2.0 April 18th, 2008, 05:20 AM
Replies: 2
Views: 1,307
Posted By weicco
You have Express edition or not? Express lacks...

You have Express edition or not? Express lacks publishing functionality but you can probably use command line utility aspnet_compiler.exe found in C:\WINDOWS\Microsoft.NET\Framework\v2.0.xxxxx folder.
Forum: ASP.NET 2.0 Professional April 18th, 2008, 05:16 AM
Replies: 3
Views: 3,661
Posted By weicco
So what is the error?

So what is the error?
Forum: ASP.NET 2.0 Basics April 18th, 2008, 04:58 AM
Replies: 2
Views: 1,014
Posted By weicco
Are you using AutoGenerateColumn? If yes, then...

Are you using AutoGenerateColumn? If yes, then skip the following.

Open the form in designer view. Select grid and click F4 (properties). Click that ... button besides Columns (collection) and...
Forum: ASP.NET 2.0 Basics April 15th, 2008, 04:40 AM
Replies: 1
Views: 1,147
Posted By weicco
Of course you can't get return value that way....

Of course you can't get return value that way. You are creating new parameter _after_ the procedure has been executed. You should check SqlDataSourceStatusEventArgs class and...
Forum: C# April 10th, 2008, 01:46 AM
Replies: 6
Views: 2,030
Posted By weicco
You have to create dynamic controls at Page_Init....

You have to create dynamic controls at Page_Init. If they are created after that they disappear during page load just like samjudson said.

If you can't create controls at that point you can at...
Forum: C# April 9th, 2008, 01:51 AM
Replies: 6
Views: 4,185
Posted By weicco
If I understood correctly he just want to make...

If I understood correctly he just want to make some web page which controls service's internal scheduling. What I would do is that...

1. Make the service read scheduling values from some config...
Forum: C# April 8th, 2008, 07:23 AM
Replies: 6
Views: 4,185
Posted By weicco
Control Panel -> Scheduled Tasks Create a...

Control Panel -> Scheduled Tasks

Create a little program that calls the Web Service and use Scheduled Tasks to run it.
Forum: ASP.NET 2.0 Basics April 8th, 2008, 07:17 AM
Replies: 1
Views: 6,063
Posted By weicco
Here is one way to do it. First add Image control...

Here is one way to do it. First add Image control to the view:

<asp:Image runat="server" ImageUrl='<%# Eval("PictureID", "pic.ashx?id={0}") %>' />

Take notice image's url: pic.ashx?id=<picture...
Forum: .NET Web Services April 7th, 2008, 01:00 AM
Replies: 2
Views: 1,229
Posted By weicco
You mean like your WS files goes to ...

You mean like your WS files goes to

c:\users\<username>\documents\visual studio <version>\websites\<sitename>

folder and the solution file goes to

c:\users\<username>\documents\visual studio...
Forum: .NET Framework 2.0 April 4th, 2008, 01:12 AM
Replies: 10
Views: 2,444
Posted By weicco
It depends. If you need to use threads then of...

It depends. If you need to use threads then of course you need to use them and that's that. If there is some lengthy work and you don't want your GUI to get stuck threads could be the answer.

But...
Forum: .NET Framework 2.0 April 3rd, 2008, 02:39 PM
Replies: 10
Views: 2,444
Posted By weicco
Could you tell us what you are trying to do with...

Could you tell us what you are trying to do with that thread? There could be better ways to solve your problem.

Threads are horrible little things that should be avoided at almost all cost and...
Forum: C# 2005 April 3rd, 2008, 02:30 PM
Replies: 2
Views: 1,948
Posted By weicco
CAPS! My eyes! Thery're burning! But I'm in...

CAPS! My eyes! Thery're burning!

But I'm in a nice mood and my crystall ball shows something like this:


StringBuilder sb = new StringBuilder();
foreach (Control ctrl in Controls)
{
if...
Forum: ASP.NET 2.0 Basics April 3rd, 2008, 02:25 PM
Replies: 2
Views: 8,903
Posted By weicco
Can't you count subtotals in SQL query? Just add...

Can't you count subtotals in SQL query? Just add field to your query: SELECT *, count(something) FROM Foo; and add new field to gridview.

Or if you can't do that, add new field to gridview, add...
Forum: .NET Framework 2.0 April 2nd, 2008, 12:57 AM
Replies: 8
Views: 10,883
Posted By weicco
I would suggest that you use String.Format method...

I would suggest that you use String.Format method to build those paths.

Dim pathF As String = String.Format("{0}B{1:0000}F.{2}", imgpath, Img_count, CtmpExt)

If you do many of those inside a...
Forum: C# April 2nd, 2008, 12:53 AM
Replies: 2
Views: 959
Posted By weicco
Ah. Stupid me. You could just add unique index to...

Ah. Stupid me. You could just add unique index to s_test field and catch the exception which is thrown when you try to insert duplicate value :)
Forum: C# April 2nd, 2008, 12:51 AM
Replies: 2
Views: 959
Posted By weicco
First of all, never concatenate SQL strings like...

First of all, never concatenate SQL strings like that! Use @param place holders and SqlCommand.Parameters collection. For example:

SqlCommand cmd = new SqlCommand("SELECT * FROM MyTable WHERE Foo...
Forum: .NET Framework 2.0 April 1st, 2008, 04:49 AM
Replies: 8
Views: 10,883
Posted By weicco
Maybe there are some non-alphanumeric characters...

Maybe there are some non-alphanumeric characters in your paths. Try something like:

pbFrom.Image = Image.FromFile(pathF.Trim())
pbRear.Image = Image.FromFile(pathR.Trim())
Forum: C# 2005 March 29th, 2008, 05:45 PM
Replies: 5
Views: 1,206
Posted By weicco
To put it simply, you can't.

To put it simply, you can't.
Forum: C# 2005 March 29th, 2008, 05:42 PM
Replies: 8
Views: 4,378
Posted By weicco
Well then you have to dig it out from the...

Well then you have to dig it out from the interface table. Call GetAdaptersInfo to get the table, search for the LAN interface and read it's default gateway. That should be the correct one.

Take...
Forum: ASP.NET 2.0 Basics March 27th, 2008, 03:06 PM
Replies: 1
Views: 850
Posted By weicco
Maybe your HTML page is serving different DOCTYPE...

Maybe your HTML page is serving different DOCTYPE than ASP.NET page? That could explain the difference.
Showing results 1 to 25 of 92

 


All times are GMT -4. The time now is 07:46 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.