ASPFriends.com 'aspngfreeforall' list Archive - February 2002
Messages
Page: 12345678910
Try..Catch BUG - What is going on here? (3 replies, VIP)
ASPFriends.com 'aspngfreeforall' list
I have just seen something I cannot believe. Response.redirect fails when placed in a try..catch with the release version of .NET. We just wasted two hours chasing this one down. I have managed to isolate it to a very simple web application. To recreate, do the following: 1) Create an empty web application 2) Add two forms WebForm1 & WebForm2 3) Put some text on each form so you can tell them apar...
Need Advice on using Modules in ASP.Net (2 replies)
ASPFriends.com 'aspngfreeforall' list
Hi All, I'm planning to use Global modules extensively, to store common procedures used by many of the pages. Is it advicable to use modules in asp.net like we do in visual basic6(BAS modules) ?. What is the funda behind the modules in ASP.Net ? Thanks, Sakthi.
get under the hood (5 replies, VIP)
ASPFriends.com 'aspngfreeforall' list
I am wondering if anyone knows a tool that let you see what .exe is running and what are the dlls that's running when starting a process? For example, I fire up a hello.aspx page, I want to see all the system process that's kicking off w/ it, say inetinfo.exe, aspnet wk.exe, aspnet isapi.dll, etc, etc. Is there anyway I can see that? TIA, George.
Arrays again.. (4 replies)
ASPFriends.com 'aspngfreeforall' list
Hi all... I cannot find anywhere in the online help how to increase the size of an array and perserve the current values in the array. I want to create a dynamic array of type int and add values to the array as and when I want to so I never know the exact size at design time. To give you an idea of what I am after I would do this in Delphi var i: array of integer; begin // Simplified for demonstra...
Web Application Root vs Web Server Root (3 replies)
ASPFriends.com 'aspngfreeforall' list
At TechEd last year Scott Guthrie mentioned that there is a new character that can be added to the beginning of a server side URL that will return you to the Root of a Web Application instead of the Root of the Server. Does anyone know what that Character is? / Root of Server ../ Parent Directory ./ Current Directory ??? Web Application Root
Grabbing a page from the net. (3 replies)
ASPFriends.com 'aspngfreeforall' list
Moved from [aspngstart] to [aspngfreeforall] by Charles M. Carroll charlesmarkcarroll@yahoo.com Hi. I want to grab a page from another webserver, and put it in a string variable for further manipulation. Something like Server.Execute(file, writer), but with an url instead of a local file. In AOLServer i can do set html string [ns geturl "www.myotherserver.com/page.html"] . How i do that in .NET? T...
C# module equivalent. (2 replies, VIP)
ASPFriends.com 'aspngfreeforall' list
Moved from [aspngcommunity] to [aspngfreeforall] by Rob Caron robcaron@microsoft.com Does anyone know what the equivalent to a vb module is in c#? I would like keep a set of generic functions that I can just add to my projects without instantiatng objects of a class to use it's methods. Is there a way to do this in c#? Elvie Get your own "800" number Voicemail, fax, email, and a lot more http://ww...
getting to the word object model. (2 replies)
ASPFriends.com 'aspngfreeforall' list
OK, either freecell has ate my brain or something is different between .Net and Office XP. I have posted this question in various renditions over that last few days and here I am three days later with nothing working and I never received any comments either. I am going to try wording the problem differently and maybe that will help. Problem Space. 1. Develop a module that will push the contents of...
Forms-based authentication question (2 replies)
ASPFriends.com 'aspngfreeforall' list
If my application uses forms based authentication and it will only authenticate users under the credentials section of my web.config, how I am supposed to do forms based authentication dynamically, i.e pull usernames and passwords from the database? I can't see writing the credentials section on the fly with the XMLWriter object cos I don't see the web.config as being a file that can be autogenera...
Asc and Chr function in .net? (2 replies)
ASPFriends.com 'aspngfreeforall' list
Hi All, What should I do if I want to use some function like Asc() & Chr() in C#? Thanks Amy
AdRotator (4 replies)
ASPFriends.com 'aspngfreeforall' list
For something to do this afternoon, I started playing with the adRotator control. Now the big question, in addition to showing the add, tracking the number of times displayed and the number of clicks throughs, what other functionality should it have? Thanks for any guidance and help. Gfw
sessionIDs remain the same after the Session times out? (2 replies)
ASPFriends.com 'aspngfreeforall' list
I have a custom User class for visitors to my site. One of my properties is SessionID, which is set when the object is constructed, which is construced when Sesison Start runs. I set my Session timeout to 2 minutes, so I could watch the numbers change, and voila, the SessionID doesn't seem to change when the Session times out. My object is Disposed at Session End, so I know it's a new object. Also...
help me (3 replies)
ASPFriends.com 'aspngfreeforall' list
Moved from [aspngstart] to [aspngfreeforall] by Charles M. Carroll charlesmarkcarroll@yahoo.com My error : 20 The View State is invalid for this page and might be corrupted. 20 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 20 Exception Details: Sys...
Character function? (3 replies, VIP)
ASPFriends.com 'aspngfreeforall' list
Moved from [aspngcommunity] to [aspngfreeforall] by Charles M. Carroll charlesmarkcarroll@yahoo.com Does anyone know of a C#/VB.NET function for recieving a ASCI code as an argument and returning a charcater representing the ASCI code? Thanks
Error message from beta 2 to Final (3 replies)
ASPFriends.com 'aspngfreeforall' list
I install final version VS.net to replac beta2(unistall beta2, then install). When I open the object which made by beta2, and build it and no error hapen. But when I run it in debug, it give me following error, even I remove system.data in reference and re refrence system.data.dll. Anyone has the same experence? File or assembly name System.Data, or one of its dependencies, was not found. Descript...
Datalist question (5 replies)
ASPFriends.com 'aspngfreeforall' list
Hi, I created a method inside a business object that takes a string as the arguement. I then used the method as so: %# businessLayer.ConvertToText(DataBinder.Eval(Container.DataItem, "isDone"))% businessLayer.ConvertToText : where the class is businessLayer and the method is ConvertToText() I am assuming that DataBinder.Eval(Container.DataItem, "isDone") will return a string? At this time I got th...
escaping single quotes in a sql string (8 replies)
ASPFriends.com 'aspngfreeforall' list
how would you fix this SQLStatement to be able to read and compare the two strings when a single qoute is causing a Incorrect syntax near 'my'. SQLStatement.Text "Select ID from dwKnowledgeBase where Problem Like '" DataList3.DataKeys[e.Item.ItemIndex].ToString() "'"; How Do I Run A Query against a DataSet.Tables ('my Table') to find a Min / Max value of a field ? Server Error in '/dotnetSolutions...
ASP:Literal vs. Response.Write (2 replies)
ASPFriends.com 'aspngfreeforall' list
This is a multi part message in MIME format. InterScan NT MIME Boundary Content Type: multipart/alternative; boundary " NextPart 001 01C1AA1E.BA0E8D28" NextPart 001 01C1AA1E.BA0E8D28 Content Type: text/plain; charset "us ascii" Content Transfer Encoding: quoted printable Hello all, 20 Wrote a little test script... %@ Page Debug 3D"false" trace 3D "true" Language 3D"C#"% 20 html body % Trace.Warn (...
Building up a Page Using User Controls Dynamically Loaded at Runtime (2 replies, VIP)
ASPFriends.com 'aspngfreeforall' list
Hello to all, My question is based on Scott Guthrie's example on "Building up a Page Using User Controls Dynamically Loaded at Runtime", (see article on http://www.dotnet101.com/articles/art020 DynamicUserControls.asp). I have tried to add controls by clicking on a link button, the code bel ow works fine if I do not need to enter any data in these new controls, otherwise the data is lost at each n...
Dynamic Arrays (10 replies)
ASPFriends.com 'aspngfreeforall' list
Hi ppl... I have a need to store a variable number of integers in an object or array. Being relatively new to C# I am not 100% which is the best method. What I mean, should I use a dynamic array of Integers or is there a class already in existance in .NET that can handle this for me. If I have to go the Dynamic Array route, please someone kick start this for me. I am not familiar enough with C# to...
variables (3 replies)
ASPFriends.com 'aspngfreeforall' list
Hello, Say a .aspx page has 2 User controls on it. Question: If you grab a queryString variable in a control #1, do you have to call Request.QueryString in Control #2 also? In the iBuySpy Store there is a page which grabs it from the querystring in one control, but in another control on the same page it just merely creates a variable and sends it to a function...but it doesn't initiliaze the varia...
Upload Code (2 replies)
ASPFriends.com 'aspngfreeforall' list
Hello all, I found this code on the NET for uploading files via .NET. It used to work before I update to Release 1, but now it doesn't. Below is the code along with the error message . Any ideas? CODE: %@ Import Namespace "System.IO" % html SCRIPT LANGUAGE "VB" RUNAT "SERVER" ID SCRIPT1 Sub UploadFile Clicked(Sender as Object, e as EventArgs) Dim lstrFileName as string Dim lstrFileNamePath as stri...
Hidden HTML Control - Equivalet in ASP.net (6 replies)
ASPFriends.com 'aspngfreeforall' list
Can someone tell me the equivalent of the HTML hidden control in ASP.net controls. If there is not one then how do I maintain data from page to page? Thanks Dot Net Guru
HTMLInputFile and RequiredFieldValidator (3 replies)
ASPFriends.com 'aspngfreeforall' list
Hi! I noticed that the RequiredFieldValidator validation control does not seem to work with the HTMLInputFile control. I've decided to use the custom validator but that does not seem to work either. I've included my code below. By the way, what does the accept attribute of the HTMLInput control do? I thought it was supposed to only allow certain file types to be uploaded. Thanks very much group fo...
global variable (7 replies)
ASPFriends.com 'aspngfreeforall' list
How can I in one function set a variable to a value and then in another function reuse it? I tried dimming a variable outside of any functions but within the script tags but can't seem to set it's value from within a function. any help would be appreciated Morkai
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification