ASPFriends.com 'aspngbeta' list Archive - October 2001
Messages
Page: 12
Hyperlink to fire event (2 replies)
ASPFriends.com 'aspngbeta' list
This message, which was originally sent to "aspngdata", has been moved to "aspngbeta" mailing list by the List Master When I click hyperlink which is meant to fire A1 Click event, there is an error "Object required line 0". 20 Does anyone have this problem before? 20 20 ProjDetail.aspx: 20 a href 3D"project.aspx" runat 3Dserver ID 3DA1 onserverclick 3D"A1 Click" Go Forward /a 20 ProjDetail.vb: 20 ...
How do you assign and ID to a user control created programmatically? (3 replies)
ASPFriends.com 'aspngbeta' list
Hi all, I am considering creating user controls programmatically, using code similar to what I saw in another thread on this newsgroup: foreach (Product p in allProducts) { // load in the User Control template ProductControl productControl &# (;ProductControl) LoadControl("ProductControl.ascx"); // now set the properties of the user control ((ProductControl ascx)productControl).Price &# p;.Price; ...
Users, Roles etc... Question to Scott G. (2 replies, VIP)
ASPFriends.com 'aspngbeta' list
Scott, In your message given below, you had spoken of building a simple sample to demonstrate the concepts that you were speaking about... Did you ever get a chance to do this? I am definitely one of those who gain a better understanding after looking over code samples... So any help along these lines would be appreciated. Anil One way to store roles without having to rehit the database on each re...
Accessing a Network Drive with Directory Object (10 replies)
ASPFriends.com 'aspngbeta' list
I have the following code which steps through a directory and adds each file in the directory to a DataTable. This works all and great for instances where the directory is set to a local directory such as "C:\winnt" however, if I want to access a network drive, such as "\\machine\c$" I get an "Access Denied to Path" error message. I know that I can get to the path however. Anyone have any ideas? T...
DataSet Caching (2 replies)
ASPFriends.com 'aspngbeta' list
This message, which was originally sent to "aspng", has been moved to "aspngbeta" mailing list by the List Master Three questions: 1) Do my .asmx and .aspx programs share the same Session and Application scope ? 2) Is it a generally a good idea to store DataSet objects at Application scope assuming they do not get too large ? How do I determine how much memory it takes up ? 3) With Connection Pool...
email (8 replies)
ASPFriends.com 'aspngbeta' list
Hello, I try to use the following code to send a email, but nothing happen. can some one tell me what's wrong. Thanks, Fang public void Button1 Click (object sender, System.EventArgs e) { MailMessage mmMessage new MailMessage(); mmMessage.To "demo@orcm.com"; mmMessage.From "demo@orcm.com"; mmMessage.Subject "This is a test e mail"; mmMessage.BodyFormat MailFormat.Text; mmMessage.Body "This is a te...
Adding Dates? (2 replies)
ASPFriends.com 'aspngbeta' list
How can I add, subtract and determine the difference between dates in .NET. I'm thinking DateAdd & DateDiff in VB6. Please, jh ******************************************************************* This E mail message (including any attachments) is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received the message in error, please notify...
passing hidden values (8 replies, VIP)
ASPFriends.com 'aspngbeta' list
This message, which was originally sent to "aspngcommunity", has been moved to "aspngbeta" mailing list by the List Master I have created a form in which I pass hidden values through the form. The problem is that when I have Visible "false" the values do not get passed, but when Visible "true" it works. How can I pass visible "false" text boxes through the form? Thank you in advance
Return Entire DataSet to Display Code? (6 replies)
ASPFriends.com 'aspngbeta' list
Hi, I'm creating a 3 tier asp.net application and I've come across a potential problem. My first tier is aspx pages and csharp codebehind files. The second tier is a .NET assembly (dll) and the third tier is, of course, my database. I'm trying to make the second tier as abstract as possible regarding representation of the data in the database. For instance, I create a class in the first tier and f...
NOT ANSWERED BEFORE (and pretty desperate!): Trouble using user control code-behind class name to load user controls (2 replies)
ASPFriends.com 'aspngbeta' list
Hi, I've read many threads on this subject, and I tried to follow the examples in them, but I'm still getting the error: The type or namespace name 'OptionsSelectorRow' does not exist in the class or namespace 'DCS.OptionsSelector' So, I'm probably doing something stupid or have overlooked something. Anyway, what I have is a user control with a code behind class written in vb called OptionsSelecto...
User control Example needed (7 replies)
ASPFriends.com 'aspngbeta' list
Hi All, Does anyone have a working example of programatically loading a user control in code behind, then setting some properties of the user control, where the user control itself is written with code behind? I am having all kinds of trouble getting this to work and I would greatly appreciate an example with all the pieces of code user control GUI, user control code behind class, container GUI, c...
HttpContext vs Page class? (4 replies)
ASPFriends.com 'aspngbeta' list
I asked this question before, but I don't think anyone tackled it.... Anyway, my confusion is this: as far as I understand it, all pages are derived from the System.Web.Ui.Page class, which provides our references to built in objects like Request, Response, and so on. But why do these same objects turn up in HttpContext and in HttpApplication? Better yet, what is the real meaning of HttpContext, a...
Error When Using Validator (3 replies)
ASPFriends.com 'aspngbeta' list
This message, which was originally sent to "aspng", has been moved to "aspngbeta" mailing list by the List Master When the RequiredFieldValidator control is implemented in my asp.net page, I get an error message when accessing the page through my browser. The message pops up in a separate message box. It says: Warning! Unable to find script library WebUIValidation.js. This error only shows up when...
How do I access parent page properties and methods from one of its dynamically loaded usercontrols? (6 replies, VIP)
ASPFriends.com 'aspngbeta' list
I'm trying to access and use the properties (or public variables) and methods in a page's codebehind from within a usercontrol dynamically loaded into that page. If I declare an instance of the webform's codebehind in my usercontrol's codebehind I can access the page's properties and methods, e.g.: Protected WithEvents myPage As FooBarWebFormCodebehindClass Protected WithEvents lblEmail As System....
Raising Events on a UserControl that are Handled by a WebForm (3 replies)
ASPFriends.com 'aspngbeta' list
I'm trying to raise an event on a usercontrol that gets handled on the webform that consumes usercontrol. I dynamically load the usercontrol in the Page Load event. I cannot figure out the syntax to handle this event on the WebForm. Here is the relevant code from my usercontrol: Public Delegate Sub ucBN UpdateEventHandler(ByVal sender As Object, ByVal e As EventArgs) Public Event ucBN Update As uc...
ASP.NET can't read UTF-8 Data from Database properly (2 replies)
ASPFriends.com 'aspngbeta' list
Hi, I am trying to read data from an Oracle Database using ASP.NET and C#. The data is text in many different languages (like Japanese, Russian etc.). The encoding is UTF 8. Using "old" ASP everything works fine, but when using ASP.NET it seems to try to read the data as unicode and screws it all up. Is there a possibility to access the data in binary form, before it gets screwed up? Or can I tell...
Calendar Question (2 replies)
ASPFriends.com 'aspngbeta' list
Hi All, I am working with the Calendar control and have adapted some sample code from the .Net Framework library. The adapted code is shown below. If you run the aspx page, you will see there is a dropdownlist with the months of the years, a label which shows the number of days selected, and a button to select all the Fridays in the month. The problem is that if you click the button, the label upd...
Web Farm Question (6 replies)
ASPFriends.com 'aspngbeta' list
This message, which was originally sent to "aspngdata", has been moved to "aspngbeta" mailing list by the List Master This question is about webfarm. How to update an application variable in all webservers[in webfarm] if anyone of webserver's application variable was modified by user. ie i want to synchrnoize the application variable in all the web servers [in webfarm]. i think we are using hardwa...
Passport Authentication (2 replies)
ASPFriends.com 'aspngbeta' list
Hi, I am trying to implement Passport authentication on a site that I am developing using .Net beta 1. I am having problems in getting the Puid and the profile. Can anyone share code snippets of implementing Passport and getting the Puid and profile of the user. Thanks and Regards, Martin Johnson Software Engineer Satyam Computer Services Ltd MCG
doubt abt asp .net HtmlInputFile ctrl (4 replies)
ASPFriends.com 'aspngbeta' list
This message, which was originally sent to "aspngcommunity", has been moved to "aspngbeta" mailing list by the List Master Scenario: I have HtmlInputFile ctrls File 1 to File 5 In the Button Click method with Script language as VB and runat server i have to upload the files. How do i loop thru the HtmlInputFile ctrls w/o having to write seperate code for all the ctrls??? Is there any method like t...
IConfigurationSectionHandler - how does one implement it? (2 replies)
ASPFriends.com 'aspngbeta' list
I'm having trouble with a custom configuration section handler, and I found some posts to the aspngconfig list that indicate that others are, too. However, there were no responses to the questions raised in aspngconfig, so perhaps with a larger audience someone who can help will be found! Basically, to implement a custom configuration section handler, you're supposed to implement the IConfiguratio...
style property (7 replies)
ASPFriends.com 'aspngbeta' list
hi all, I'm looking to add style attributes to an asp:boundcolumn / tag. so something like: asp:BoundColumn style "border right:1px solid #336699;" HeaderText "Author" DataField "aulname"/ will render td style "border right:1px solid #336699;" Frost /td but i get the error: Type 'System.Web.UI.WebControls.BoundColumn' does not have a property named 'style' Any suggestions? Thanks, dave ~~~~~~~~~~~...
Data Set Version of RS.RecordCount (2 replies)
ASPFriends.com 'aspngbeta' list
In the Data Set/Binding of Datagrid what is the ASP.Net equivalent of RS.Recordcount?
Sample HttpHandler Code (2 replies)
ASPFriends.com 'aspngbeta' list
Hello, Does anyone have a sample code for a custom HttpHandler class? Upon compiling the following: Public Class MyHttpHandler 20 Implements System.Web.HttpHandler 20 Public Readonly Property IsReusable() As Boolean 20 Get 20 Return True 20 End Get 20 End Property 20 09 Public Sub ProcessRequest(byval context as System.Web.HttpContext) 20 'custom code here 20 End Sub End Class 20 20 I get the foll...
Runat=server Vs. asp controls (4 replies)
ASPFriends.com 'aspngbeta' list
which one is better... a normal HTML control having attribute runat server ... or to use pure aspcontrol??? cheers paritosh
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com