|
Hi,
I've was given an old ADO.NET websystem project. They built this project in old ASP (using recordsets such and so forth) and they want me to convert all the ASP code to ASP.NET if they won't work together. When I included some ASP pages into my new ASP.NET project I got this error.
Error 1 'Let' and 'Set' assignment statements are no longer supported. C:\Documents and Settings\mhomsey\My Documents\Visual Studio 2005\WebSites\MyWebSite\dbconnection.asp 15
Does this mean, this old code doesn't work anymore and I have to rebuild that file or is there a way around this sort of error?
I appreciate all your help as I hope someone out there in this world knows a quick easy solution to this problem rather than rebuilding it all.
Michael - Cheers
FYI - I'm using VS2005 and I'm trying to convert it to ASP.NET 2.0
|
|
|
|
|
Michael101 wrote: 'Let' and 'Set'
I think this is the old way of writing the property in VB. so, you can just change it as a property in ASP.NET.
|
|
|
|
|
Okay, this is probably a dumb question... but here it is...
I need to do a bunch of processing on an image after it is uploaded to a web site. I looked around for a NET 2.0 solution, and Atalasoft DotImage looks great -- but I can't afford it. I didn't see anything else which would do what I wanted.
However, I already have an existing image library I created, that took years of work, written in C++ -- and it could accomplish everything I need.
So here is my dumb question...
From an ASP.NET class, written in C#, can I call a function in a native VC6 C++ type DLL, and have it do the work for me?
For example, if the DLL simply has a function like:
void ProcessTheImage( LPCSTR lpcstrFileName );
Can I call this from ASP.NET? And if so, how?
I already figured out that I can create a command line app, written in C++, put it in the (WebSite)/Bin directory, and call it passing the filename as a parameter ... but I figured that a DLL call would be more efficient (???) ... and I haven't figured how to do the DLL call yet. I assume P/Invoke must be involved somehow (but I've never used that feature before).
Thanks for any assistance or guidance you can offer.
BTW, I'm using Windows Server 2003, NET 2.0, ASP.NET 2.0, SQL Server 2005, C#, etc. on a dedicated server.
|
|
|
|
|
DotImage rocks. I use it.
Yes, you can call a native dll, p/invoke is the name of the technology you use to do this. www.pinvoke.net[^] has lots of examples
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I agree, DotImage looks great, but unless I'm missing something ... I have to pay $499 for the most basic SDK, then another $329 to use it on a server ... which is $828 ... for 1 person ... as the cheapest option. And when I look in my pants pockets, I can't find $828 in them. Telerik and CodeJock already got it.
The stuff that DotImage does though, I already have created, and have used for the last decade in MFC/C++ type code... including writing my own convolution filters, of different matrix sizes, by experimenting with Adobe Photoshop (as it has a feature to play around with that), etc.
In any case, thanks for the link to pinvoke.net. I'll check it out. Although my most basic question is how to get from something like this:
(WebSite)/App_Code/MyClass.cs
public class MyClass
{
public static void ProcessImage( String ImageFileName )
{
}
} And assuming ImageProc.dll exists as:
(WebSite)/Bin/ImageProc.dll
To do something that works. I assume there is some simple trick or technique for using P/Invoke to do this? Obviously there is going to be some sort of conversion problem between the C# String type and the Win32 LPCSTR type. Is there some sort of super easy bit of wisdom you can provide? And also, as to how I can call the function in the first place?
If not, thank you. I will check out pinvoke.net further. Your help is appreciated greatly however. Regards.
|
|
|
|
|
hi guys, i have loaded a table which contains a list of products into a dataset but now i want to select various items and put them in a cart(list) can someone please give us some ideas? thanks
|
|
|
|
|
|
hi all
i have a grid view with some field like
CategoryID, CategoryName, NoOfSubCategory
1st Row: 101 Business 10
2nd Row: 102 Computer 12
Now I want to do something like, On NoOfSubCategory click event will show another grid view under that selected row
how can i do it, any instruction will be really helpful
thanks in advace
Sarfarj Ahmed
|
|
|
|
|
|
thanks for your quick reply
what im looking for is
on click event it will show another grid view under the row selected
thanks in advance
Sarfarj Ahmed
|
|
|
|
|
Check this out
http://forums.asp.net/t/1071521.aspx[^]
A cool little JavaScript onClick should be easy to implement over there.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
i have database oracle and i want to make connection from my web site to oracle database ??
and what is the best ??
working with oracle data base or sql server database ?
|
|
|
|
|
|
all dears,
iam developer vb.net2005 and i want to learn asp.net2005?
if you have any media or books not deep but beter for learning send to me
sadagc2002@yahoo.com
thanks for all
saad badr
|
|
|
|
|
|
hi,
I am trying to use AJAX for my two dropdown lists for my project using ASP.NET. On selecting an item in one dropdown(say dropdown1), the items for other dropdown(say dropdown2) should populate. Dropdown1 items are retrived from database using C#. My question is I need the selected item value of dropdown1. If I use dropdown1.SelectedItem.Value in C# side means error occurs. I need the selected item value.How can I get it using either javascript or C#.
Just now I am populating all the items in dropdown2. But I need the selected item value of dropdown1, so that I can able to filter and populate items in dropdown2 corresponding to dropdown1 item.
Can anyone help me. Please..........
nask
|
|
|
|
|
This should work just fine. Are you using AJAX, or the ASP.NET AJAX library ? The book AJAX in Action has a good article on how to do what you're trying to do. Or, post some code so we can see where the error is.
Arun Senthil Kumar wrote: If I use dropdown1.SelectedItem.Value in C# side means error occurs.
What error ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If you are using Microsoft Ajax Framework you may use the CascadingDropDown[^] extender which does exactly what you are trying to achieve. Maybe it will be easier?
|
|
|
|
|
Guys,
We have a major problem here at work.
We installed a new product on our servers (Win 2000 server, 2Gb memory) last week, with an increase of users. (read, a couple of hundreds, not thousands)
At first sight it seems to work fine, but occasionally it crashes. other services stop as well.
My boss thinks that our code does not dispose of the connections we create, but I'm certain it does.
Also the cpu seems to be fine (so not constantly @ 100%) and memory does seem to saturate, but applications crash before that time.
My two cents go out to one of these two:
1 -> Network traffic problems
2 -> # of Oracle connections exceeded
Any tips and/or tricks or ideas somebody can give us would be great. We're kinda stuck.
I went over some possibilities already, but I always come down to the two mentioned above.
many thanks !!
|
|
|
|
|
Troubleshooting a production webserver is an involved process. You may need to go through a very systematic procedure like:
1) Analyzing the file system logs
2) System Eventlogs
3) Database Performance
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
hey thanks for the reply.
Stupid question maybe, but what's the difference between 1 and 2?
We did 2 already and it only gave some "unhandled Http request" error. nothing really specific.
thanks.
|
|
|
|
|
V. wrote: Stupid question maybe
No. Not at all. The line of demarcation between your application logging events and System EventLogs may at times be very thin. Your application would log events strictly pertaining to any issues only related to it.
If there is a generic I/O problem or load with the system, that would be caught by IIS or OS Subsystem and placed in the eventlog.
V. wrote: unhandled Http request
Didn't you find any equivalent unhandled exceptions in your application log?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
mmm, I didn't notice anything 'out of the ordinary' going on. The application seems to work fine, most of the time. We didn't see any significant errors in the application's log.
I'm trying hard to get some feedback from the users
|
|
|
|
|
Can you post the error you find in your logs?
|
|
|
|