Asp Dot Net's Journal
20 most recent entries

Poster:[info]coolashell
Date:2004-08-11 12:48
Subject:
Security:Public

Can someone please help me. I swear I used to be able to build without loosing session variables.....but now everytime I build I loose session variables and it's driving me batty.

I have tried using InProc, StateServer, and what I usually use SQLServer.

Thanks in advance for any suggesions.

And I uninstalled the 2.0 CLR, I couldn't figure out how to specify which CLR to use.

2 comments | post a comment



Poster:[info]natpea
Date:2004-08-11 09:55
Subject:Windows installer
Security:Public

Hey there,
I am using microsoft's windows installer on my asp.net app. I want to allow the user to choose their physical path to install to. It seems to me that using this installer means that their virtual directory and IIS registration is done automatically. Is this true or is there a way to allow the user to choose where to install to?
Thanks!

post a comment



Poster:[info]coolashell
Date:2004-08-09 14:31
Subject:
Security:Public

Unable to use SQL Server because it was not installed using the installation scripts from ASP.NET version 2.0. Please upgrade the ASP.NET Session State SQL Server installation to version 2.0 or above.

I've installed vs.net 05 beta 1 and it has hosed an app I'm working on. My session state db is still there and I can't find an upgrade script anywhere.

Anyone have suggestions???

Thanks.

Edit: I was able to temporaliy resolve this by switching to InProc session state. I've scoured and cannot find a fix for this or a script to upgrade my session state. It does this whether I'm using the 1.1 CLR or 2.0 which doesn't make sense to me. Also, how do you specify which CLR to use in web.config - I can't find that anywhere either.

post a comment



Poster:[info]kw34hd1
Date:2004-08-05 18:34
Subject:
Security:Public

i'm having a problem with ssl, httpxml object from msxml3, and apache/mod_ssl.

any help or ideas are appreciated.

description: http://sneak.datavibe.net/blog/read/606

-j

post a comment



Poster:[info]natpea
Date:2004-07-28 10:36
Subject:
Security:Public

Hello, I am new here. I am building an asp.net app, and I have a problem that I cannot figure out. I would really appreciate any advice you people may have.
I have a page which posts back twice, once on a button click and once on a datagrid sort. What I need is to determine which postback it is, and I need to do this on the client side. My button on_click event is already being used server side, so am I correct in saying that I cannot write a client side event for this?
If this is true, does anyone know of a way to get around this?
Thanks a lot.

13 comments | post a comment



Poster:[info]coolashell
Date:2004-07-23 14:43
Subject:
Security:Public

Does anyone have Whidbey yet (vs.net 05 beta 1)?

I really would love to get my hands on it? Can anyone help me out, we don't have an MSDN!!!!

Sorry to xpost but this is urgent!

6 comments | post a comment



Poster:[info]etyrniti
Date:2004-07-19 18:39
Subject:.net authentication
Security:Public

I have a question about authentication.

I have an application that needs to utilize both Digest and Passport authentication. Is this possible? I can't find any documentation about using both types in one app.

Greatly appreciate the help.

1 comment | post a comment



Poster:[info]coolashell
Date:2004-07-15 14:17
Subject:
Security:Public

[info]sqlserver

1 comment | post a comment



Poster:[info]dana
Date:2004-07-09 10:18
Subject:
Security:Public

Hey guys I have a question for you.  I'm new to using ASP and have been given a project at work and am implementing it in VBScript.

I have a .txt data file that is being FTP'd to the webshare and I am suppose to write a script that parses this info and places it into an HTML table (updating the current data) on the group website.  Problem is, I need this to update once daily.  I've found a bunch of code that can do this, but it is all based on users accessing the webpage.  Do you know any way to do this that doesnt require a hit (it needs to be updated on weekends)?

2 comments | post a comment



Poster:[info]fiala_tech
Date:2004-07-07 12:18
Subject:Javascript and validators...
Security:Public

If you've got some javascript that you need to turn off an ASP.NET validator in, Microsoft has provided this function : ValidatorEnable : to do it in!

Coolness. There's more at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp.

Useful! And now, back to work...

post a comment



Poster:[info]klausboop
Date:2004-07-07 14:17
Subject:Why is Page_Load running twice, or, Why am I getting two blocks of the same data?
Security:Public
Mood: chipper
Music:Mike Keneally - Dog

The moral of this post: if you have AutoEventWireup set to true in an ASPX page, you should not also have a delegate (i.e. this.Load += new System.EventHandler(this.Page_Load);). If you do, your page may load twice.


Just remember that and you'll avoid what I had to do today, which was...


I was freaking out today as a bug report came in for one of my applications that's being tested. Basically it is a survey where you answer stuff with textboxes and dropdownlists, submit it, then have the option of looking at a printer-friendly page (with labels instead of input controls).


What was happening was that the header would appear, but then the questions (with their answers) would appear twice. For example:

Question 1Yes
Question 2No
Question 3Yes
Question 1Yes
Question 2No
Question 3Yes

This happened in both the main and the print version.



I stepped through the ASP.NET code and everything was fine...until my Page_Load function ended. Because after it ended, it ran again. The headers weren't touched because those values were directly assigned. The repeaters I was using were duplicated exactly, because the xx.DataBind() method was being called a second time.


I was truly stumped, so I turned to Google. I had to experiment with the phrases I looked for, but asp.net "Page_Load" twice was what Google needed to show me the answer.


The bottom line: if you have AutoEventWireup set to true in an ASPX page, you should not also have a delegate (i.e. this.Load += new System.EventHandler(this.Page_Load);). If you do, your page may load twice.

3 comments | post a comment



Poster:[info]mugsy1274
Date:2004-07-06 19:03
Subject:good news sites for Windows Server products?
Security:Public
Mood: curious

So I'm wondering...what "news" sites do you all use to keep up to date on Windows Server products?

I'm thinking of things like Slashdot or MacSlash. Is there a "WinSlash", for example? (I know there isn't, but something like that)

Thanks!

1 comment | post a comment



Poster:[info]coolashell
Date:2004-06-14 15:31
Subject:
Security:Public

Can anyone hook me up with a copy of Whidley or whatever it's called (Beta vs.net 2005). I'm itching to play around with it. I have an FTP server you could upload too, I know it's fat.

Also if the person that can hook me up needs gmail I have several invites.

TIA!!!

3 comments | post a comment



Poster:[info]klausboop
Date:2004-06-10 12:14
Subject:Rearchitecting your apps for ASP.NET 2.0
Security:Public
Mood: contemplative
Music:Air America Radio streaming over the web

Probably a fairly important MSDN Article called Rearchitect Your Web Applications for Microsoft ASP.NET 2.0. "ASP.NET 2.0 provides 100-percent backwards compatibility but some redesign, and subsequently a bit of headache here and there, is required in order to get all the new goodies."

2 comments | post a comment



Poster:[info]yuckapoo
Date:2004-06-10 11:33
Subject:Is this even possible??
Security:Public
Music:random Radiohead

Here's one for you way more experienced types...Can I do this?

I've got a dataset with multiple datatables bind-ed to a repeater. Each datatable has the same columns, just different data. Quick example: A dataset called "Cars", and each datatable is named a different make ("Ford", "Toyota", "Isuzu"). Each datatable has a column called "Models", such that Ford.Models includes Bronco, F150, Explorer; Toyota.Models includes Prius, Avalon, Camry; Isuzu.Models includes Trooper, Rodeo.

I'd like my Repeater to display

Ford


  1. Bronco

  2. F150

  3. Explorer


Toyota

  1. Prius

  2. Avalon

  3. Camry



    Isuzu

    1. Trooper

    2. Rodeo



    Unfortunately, my puny brain has only been able to have the repeater render info from the first datatable. I'd like to know if any of you out there have tried something similiar, and if it's even possible to do. If you're feeling especially generous, I'd appreciate a point in the right direction.

    Thanks, guys!

16 comments | post a comment



Poster:[info]coolashell
Date:2004-06-08 16:55
Subject:
Security:Public
Mood: bitchy

What's the point of ANY programming style or coding standards if they aren't followed throughout the application. Personally I don't care what the style is.....as long as it CONSISTANT. And who uses inline SQL for anything besides searches these days? When I write an application EVERY query is in stored procs, except for searches where I've found adhoc queries are much faster than passing a load of paramenters into a WHERE clause. Not only that but to render a page sometimes you go through 16 cfm files and sometimes you redirect randomly it seems. I'm in include hell.

I'm doing Coldfusion development, specifically mostly bug fixes and enhancements to an existing app. And I wanted to warn all of you that COLDFUSION SUCKS. Don't code in it unless you absolutely have to. I'd rather be coding in Perl/CGI than Coldfusion MX. PHP, JSP, regular ASP, they are all better than MX.

And of course there just isn't any comparasion of asp.net to Coldfusion on ANY level. It's the difference between amatuer scripting for the web, and true object orientated event driven programming.

Someone please shoot me and put me out of my misery. Thank got it's 5PM and I can get out of here.

PS: And my box's cd player doesn't even work and i don't have a phone at my desk and my cell doesn't work in this building. How much longer can i do the consulting gig?????

9 comments | post a comment



Poster:[info]mugsy1274
Date:2004-06-04 13:30
Subject:HTTP Compression in IIS 6?
Security:Public

I have recently enabled HTTP Compression on our 2003 IIS server.

It seems to be working great, except one user is having all sorts of problems with what appear to be local caching.

For example, one of the sites is a bulletin board running dotNETBB - all users (except the problem user) get updating content and everything is working great.

This user keeps running into issues where the main forum pages don't seem to update for him. He is running IE 6, latest and greatest patches, etc.

I don't have this problem with Firefox, IE for Mac, or Safari. I've had other Windows/IE users test it, and it works fine.

What has been your experience with HTTP Compression under IIS 6?

7 comments | post a comment



Poster:[info]klausboop
Date:2004-06-02 14:24
Subject:Questions on n-tier and presentation layer
Security:Public
Mood: bitchy
Music:Air America Radio

I've already typed these questions on my blog but it dawned on me that I should post them here in case they're of use to anyone here, or if anyone has answers.

Great example of what spins my head, and maybe typing/talking it out will bring me to some kind of Nirvana:

One of the things I read early on about n-tier architecture is that your business layer should be passing properly formatted stuff to the presentation layer. For instance, your database may store dates in the format yyyy-mm-dd 00:00:00.00. You shouldn't force your users to enter stuff in that format in the presentation layer. Similarly, maybe you're really only interested in the Date of something, but the SQL-92 standards dictate that datetime values store the time as well (and I've made the choice not to use a proprietary datatype like SQL Server's smalldate)

So the problem is that you want users to enter or view only a date but your database stores both the date and time. Obviously some kind of translation should occur. But where? My thinking is that the situation calls for a business rule, first of all. We have the possibility that
random times might junk up the place when people are just entering dates. So we need a rule that dictates what time is going to get used when the user has entered a date only. I'm going to say that the time will be 00:00:00.00, Midnight.

It seems clear enough that the business rule should be enforced in the business layer. When it gets a date, or a date/time, from a field where we only care about the date, the business layer is going to make sure that 00:00:00.00 is used as the time.

What I'm still grappling with, because both ways will work, is where the date vs. datetime thing should happen.

First, from presentation down to data
Should the presentation layer make sure that the user has only entered a date? If so, what format? Should the presentation layer force the US style of mm/dd/yy(yy), or should it maybe force the ANSI style of yyyy-mm-dd? What if this is a web page and someone in England is using it, and when they see 04/02/2004 they think it means Februrary 4th rather than April 2nd like an American would? Does that matter, as long as it's posted on the page what the expectation is? Since 04/02/2004 is valid either way, are we screwed no matter what?

Second, from data to presentation
Similarly, let's go retrieve that date now. The database gets 2004-04-02 00:00:00.00, April 2nd 2004 and gives that value to the business layer. Once again the quandary: does the business layer take that and convert it to a string in American short date format before it passes the value to the presentation layer? Or should the business layer pass the database value untouched to the presentation layer and let the presentation layer figure out how it should display it?

Not particularly well-typed, but so it goes. My current thinking is that from the presentation to data direction, I'll have a validator check to make sure that the user has entered a valid date. If they've (or the server) have entered a time, who cares: the business layer is going either add the 00:00:00.00 when a time is missing, or it's going to strip out the time and use 00:00:00.00 instead. Going from the data to presentation direction, I'll let the business layer leave the value untouched, passing the ANSI-standard datetime to the presentation layer. The presentation layer will have the burden of figuring out what display format to use (i.e. American shortdate, hieroglyphics) and to make sure the time isn't in there when we don't need it.

So, I've typed it out, but no Nirvana. Again, as far as I can tell, what I've outlined in that last paragraph will work fine, but the question of whether it works best, and the practically more important question of whether I'm going to have to do a REWRITE at some point because I've made the wrong choice, THAT question is what I still grapple with.

On a semi-related note, check out Scott Hanselman's nifty blog entry called A reminder on "Three/Multi Tier/Layer Architecture/Design" brought to you by my late night frustrations It gives a nice overview of 3-tier, but it's an OVERVIEW and I'm wallowing in specifics. I'm using the book ASP.NET Website Programming, which is helping a lot but is still leaving me with these questions.

2 comments | post a comment



Poster:[info]sqlnerd
Date:2004-05-19 17:06
Subject:blogger
Security:Public

I'm looking for a project logger.. but I think i'll have to just do with a regular blogger. Whats your favorite asp.net blogger app?

2 comments | post a comment



Poster:[info]nyat
Date:2004-05-17 21:09
Subject:Crystal Reports | asp.net
Security:Public

I have a report based on stored procedure. Inside the stored procedure a temp table is being created, that contains some data grouping/sorting and ImageContent column of image data type.

Inside my report I have picture field that displays a product.

Here is how my report looks after it was exported from Crystal Reports into a PDF file (and this is perfect, exactly what I need) :
59Kb )

Now, as soon as I try to run it from the aspx page, I get the following error:
error message )

and if I run same report but do not include ImageContent column into my temp table and respectfully - Picture field in my report, it perfectly runs from aspx page.

Please, does anybody know, how to display images in Crystal Reports on the web? And what am I doing wrong...

post a comment


browse
my journal