Hi Guffa, Thanks for your info. I understand now. One question thou. I am using Preprocessor flags in my code. 1 Protected Sub MyFunc() 2 Dim nValue As Integer 3 nValue = 1 4 #If DEBUG Then 5 nValue = 2 6 #End If 7 End Sub
When I set debug="false" in my webconfig, will the DEBUG preprocessor be undefined and thus not compile line 5?
desmondling78
Posts
-
Configuration Manager has no Release build -
Configuration Manager has no Release buildTried that. doesn't work. I'm not sure if my post is confusing. I have a picture to make my problem clearer, but I don't know how to upload pics in this forum. Anyway, when I mention I can't set to release mode, I was referring to the following menu: Build -> Configuration Manager The "Configuration Manager" dialog will appear. Here you can set to Debug or Release mode rite? I can't set my http project to Release mode. Thanks
-
Configuration Manager has no Release buildHi, I have an ASP.Net web application. I added some projects in the solution as follows: MyWebApp Solution - OrderLogic project folder (contains .vb files only) - http Project folder (contains aspx files) When I try to configure the build option, I am able to set the OrderLogic project to Release build. But for the http project, it only has Debug build. There's not Release build. The platform only has ".Net" for selection as well. How can I build the http project folder for Release build? Regards
-
Validatoris that the only way out?
-
ValidatorHi, I know and tried that. But the problem is that if I set the CauseValidation of the UserControl's button to false, then it won't activate the RFV inside the usercontrol. Dilemma!
-
Which row in datagrid is being selected?A million thanks to you. I'd never find that out on my own. Guess I need to read up on MSDN library more. Thanks once again
-
Which row in datagrid is being selected?Hi, I have a datagrid with some boundcolumns and one templatecolumn. In the template column, i added a dropdownlist. Now on my page, i created a function to handle the SelectedIndexChanged event of the dropdownlist. And so far I am able to trap the event.
Protected Sub MyDropdownList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim dpl as DropdownList ' How to determine which row's dropdown list did user select? nIndex = 0 dpl = CType(MyDataGrid.Items(nIndex).Cells(7).FindControl("MyDropdownList"), DropDownList) ' Do something with dpl End Sub
The problem (as stated in the comment above) is how do I know which row's dropdown list the user selected? I tried to use the selectedindex of the datagrid, but it seems to store garbage values. Thanks -
ValidatorHi, I am looking for suggestions on validation on a page and usercontrol. I have a webpage test.aspx and a use control UserControl.ascx. Test.aspx txtName (textbox) rfvCheckName (RequiredFieldValidator to check txtName) btnSubmitName (button) UserControl.ascx txtTel (textbox) rfvCheckTel (RequiredFieldValidator to check txtTel) btnSubmitTel (button) Now, the required RequiredFieldValidator (RFV) works fine for the aspx and ascx. However, When I add the usercontrol into the test.aspx, a problem occurs: txtName (test.aspx) is empty txtTel (usercontrol.ascx) has input, When I click on the btnSubmitTel (usercontrol.ascx), it activates the rfvCheckName (test.aspx)! How can I force each button to activate only certain RFV? (If its possible at all) Or is there any work around to this? Thanks
-
PC Requirements for VS2005More information When my VS2005 is running slowly, I checked my Task Manager/Processes tab. And the devenv.exe was using up loads of memory. At some point in time it shot up to 1,000,000k!!!! It started of with around 200,000k and steadily went up Is that the reason why it runs so so so so slowly? But with 1Gb of Ram and 2.0Ghz processor I'm still baffled why it runs so slowly.
-
PC Requirements for Visual Studio 2005Yea I figure my PC specs should be good enough. But it doesn't seem so. HOwever, what does your "ok" means? As VS2005 can still function? Are u developing huge apps with it? Is it slow in opening pages or compiling? Does it crash often?
-
Serial Communication using IE on a Client PCHi, I need to control a device through serial communication on a client PC used a web application. I have no idea how to do this. Can someone point me in the right direction? The following are some brief information about my app: 1) I have a web application developed using ASP.NET in VS2005 2) A device will be connected to one of the client PC. Users will select a command and send that command to the device via serial com port. I need to create a ASP.button to send this command. 3) I only need to support Internet Explorer (for now...) Any help will be appreciated. THanks
-
PC Requirements for Visual Studio 2005Hi, I am currently using a 2.0Ghz processor with 1GB of RAM. And I am using Visual Studio 2005 to develop ASP.NET applications. When I run ASP.Net, the VS2005 IDE runs quite slowly. At times, it takes more than 1 min to compile the application. When it gets worse, it takes ages to display an aspx page! I read that VS2005 is quite processor intensive so what kind of specs would you recommend?
-
PC Requirements for VS2005Hi, I am currently using a 2.0Ghz processor with 1GB of RAM. And I am using Visual Studio 2005 to develop ASP.NET applications. When I run ASP.Net, the VS2005 IDE runs quite slowly. At times, it takes more than 1 min to compile the application. When it gets worse, it takes ages to display an aspx page! I read that VS2005 is quite processor intensive so what kind of specs would you recommend?
-
PC RequirementHi, I am currently using a 2.0Ghz processor with 1GB of RAM. And I am using Visual Studio 2005 to develop ASP.NET applications. When I run ASP.Net, the VS2005 IDE runs quite slowly. At times, it takes more than 1 min to compile the application. When it gets worse, it takes ages to display an aspx page! I read that VS2005 is quite processor intensive so what kind of specs would you recommend?
-
Upgrading to Visual C++.Net 2005Fair enough. Personally, I'd rather hammer nails into my head, but to each his own Haha ok. I get what you mean. There are already lots of nails in my head:laugh: Hey thanx man. You're provided me with lots of info. Kudos!;)
-
Upgrading to Visual C++.Net 2005Garbage collection is worth nothing to me. haha its funny you said that. I thought its quite a useful thing considering we need not worry about memory leaks. No, I'm asking why you don't write ASP.NET apps in C# instead of VB.NET, because the C# syntax is easier for a C++ programmer, because C#2.0 has compelling features for a C++ programmer, and because VB.NET is full of really crappy legacy stuff. Ohh. Because I wish to pick up VB.Net as well. I suppose I can learn C# on my own time and it will be easier since I know C++. The main reason is I wish to be all-rounder...hoping to jack up my value! hah What are the improved features of Visual C++.Net 2005 compared to Visual C++.Net 2003 anyway?
-
Upgrading to Visual C++.Net 2005One other bit of good news, if you use the STL, the STL that comes with .NET is a world away from the VC6 one, the VC6 one is crap. Really? Then I have to check it out. Cos STL is a really useful tool. Why not C#, given that you have a C++ background ? VB.NET syntax is really hard to get used to, compared to C#, if your background is in programming ( that is, C++ rather than VB6 ). Well, people have been asking me that question. Reason is for market value. There seems to be less work for vc++. Also, I wish to move to web applications. and VB.Net seems to be the way to go. But like you said it takes time to get used to VB syntax (and frankly i prefer C++ syntax). So you will KNOWINGLY make your app rely on .NET I see. Just one more last question then. The main reason for using Managed code is that it helps us handle garbage collection right? And that is provided by the .Net framework? Oh and one more question. When Visual C++.Net 2005 is released, will Microsoft still sell Visual C++.Net 2003? I am deciding on which to buy, but I wish to wait for the release of Visual C++.Net 2005. (I heard from some Microsoft Spokes person that it is slated for July~Aug released.) I'm just afraid by then, will they stop selling .Net 2003 (as is threatened by my suppliers).
-
Upgrading to Visual C++.Net 2005Hi, Thanks for your reply. How well do you know/code to the C++ standard ? Well, I do a fair bit of development in C++. I suppose I would rate myself an average developer? Currently, I'm learning VB.Net including ASP.Net. And I have a basic understanding on .Net framework. (.Net's Quite cool actually!) For the example you gave, luckily I don't do that. (Phew). Since .Net has changed a lot, where do you think I should start so as to get myself up-to-date? No, C++ is the only language that you can use the .NET compiler for and not require the runtime. You can choose to use/require it if you want to, but you don't have to. I'm a little bit confused. Because there are people telling me this: If I develop an application that uses the .Net framework (such as the Systems namespace), then I need to ensure Win98 has the .Net framework installed before it will run. is that right?
-
Upgrading to Visual C++.Net 2005Hi all, I am a Visual C++ Developer using V6.0. Mostly I deal with MFC creating windows application. What are your opinions about me upgrading to Visual C++.Net 2005? It seems to be quite different from V6.0 from what I see. If I develop applications using MFC in .Net 2005, are there any issues that I should watch out for? What about manage and unmanaged code and the .Net framework? When I distribute my software, do I need to distribute the .Net framework for older OS such as Win98? Please give me your comments.