| abt htmlinputfile ctrl (3 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| 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. I want to loop through these controls and want to access the properties and methods of the htmlinputfile objects.. How do i go about this ? Is there any method like there was "eval" in javascript ?? Thanks Sampada |
|
| CompareValidator for dates (2 replies) |
| ASPFriends.com 'aspngbeta' list |
| a.. I'm using date in dd mm yyyy format as below. But the system seems to allow only m/d/y format. What should be done to change the I/P format and the value in ValueToCompare to accept dd mm yyyy format? b.. For Operator value what should be used to implement (greater than or equalto) ? asp:CompareValidator id "FromDateCompare" runat "server" ControlToValidate "txtFrmDt" ValueToCompare "17 05 200... |
|
| Frameset runat server tags? (5 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| I was curious.... It looks liek most of the HTML tags have .NET versions, with the ability to alter them programmatically. All except FRAME and FRAMESET. Am I missing something? Soulhuntre email: soulhuntre@soulhuntre.com url: http://www.soulhuntre.com corp: http://www.dotpublishing.com life: http://www.the estate.com |
|
| Templates (3 replies) |
| ASPFriends.com 'aspngbeta' list |
| Hi all, When I create a template using Page.LoadTemplate(...) I get the following error Compiler Error Message: BC30456: The name 'DataItem' is not a member of 'System.Web.UI.Control'. Source Error: Line 1: %# DataBinder.Eval(Container.DataItem, "Key") %  is  Line 2: %# DataBinder.Eval(Container.DataItem, "Value") % So what is the directive for the acx file I load as a template? This is ... |
|
| web services and CDATA elements (7 replies) |
| ASPFriends.com 'aspngbeta' list |
| Hope someone can shed some light on this as I've been utterly frustrated in trying to find a solution.. I think I just need some fresh eyes on the problem as I'm probably myopic to my own code right now.. I'm guessing this *has* to be something simple I'm overlooking... First, let me show you a working production example of what I'm talking about... http://services.buy.com/Affiliate/BuyAffiliate.a... |
|
| Does .net framework support multiple inheritance? (4 replies) |
| ASPFriends.com 'aspngbeta' list |
| Hi List, Does .net framework support multiple inheritance? Can I derive my code behind class from 2 other base classes? Now by default its derived from System.Web.UI.Page. Can I derive it from one more class ? Let it be a code behind class of another aspx file. So that I will have a virtual function in the base class and can be overridden in the derived class. ?????? pl help if anybody knows about... |
|
| Form Variables (3 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| What is wrong with this? I have a simple Login form that contains Name & Pswd boxes, on PostBack, I will verify them against the DB. This is the line that failed: String sSQL "SELECT * From authors where au lname '" frmRegister.txtName.Text "' And au fname '" frmRegister.txtPassword.Text "'"; It will work if I hard coded to String sSQL "SELECT * From authors where au lname 'Liaw' And au fname 'Den... |
|
| Is is possible to disable Validation controls on client side? (2 replies) |
| ASPFriends.com 'aspngbeta' list |
| I have a form that contains two options which are selected by a radio button. If Radio Button A is selected, then I want to require an answer to TextBox A and not TextBox B. And vica versa, if B is selected, A will not be required. Radio Button A TextBox A Radio Button B TextBox B Is it possible to turn off the validation controls for TextBox B if TextBox A is selected? One possible solution I see... |
|
| 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 |
|
| 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... |
|
| 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? |
|
| 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 ~~~~~~~~~~~... |
|
| 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... |
|
| 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... |
|
| 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 |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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.... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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 |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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; ... |
|
| 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 ... |
|
| Out-of-proc question (5 replies) |
| ASPFriends.com 'aspngbeta' list |
| All, We have a COM object wrapping a single threaded dll. This worked fine for individual clients; in the web world, it locks when more than one user tries to hit it at the same time. For various reasons we cannot modify the dll. We are thinking about rewriting the COM wrapper as an out of proc .exe instead. I realize this breaks the ability to run tlbimp against it to create a .NET assembly/dll. ... |
|
| Languages Supported by .NET (3 replies) |
| ASPFriends.com 'aspngbeta' list |
| Is there a URL with the latest updated list of languages supported by .NET? I checked at www.microsoft.com/net/ and didn't see anything. Thanks, Steve |
|
| Garbage Collecting Pooled and Cached Objects (2 replies) |
| ASPFriends.com 'aspngbeta' list |
| Can anyone tell me the process of how pooled and cached objects are garbage collected? Is there a special process for these objects? Thanks! |
|
| Optional parameters of a COM component in C# and VB.NET (11 replies) |
| ASPFriends.com 'aspngbeta' list |
| I supposed that I'm doing something wrong so it can be so bad If you instance and object that has optional parameter you have to introduce all parameters in C# (it's a nightmare) In VB.NET it isn't necessary but you loose the tags for documentation and so on ... An example: ADODB.Connection m dbConn new ADODB.Connection(); m dbConn.Open(ConnectionString,"","", 1); I just want to pass the Connectio... |
|
| Dynamically Set UserControls (2 replies) |
| ASPFriends.com 'aspngbeta' list |
| I found this example on http://www.123aspx.com. (http://www.123aspx.com/resdetail.asp?rid 937) Is it possible to set the MyTitle value using a variable instead? i.e., could I set it equal to a variable called ABC and not "ABC" litterally? Scott in myuc.aspx % declare any namespaces % %@ Register Tagprefix "Channel" Tagname "Title" src "myuc.ascx"% Channel:Title MyTitle "ABC" / In myuc.ascx script ... |
|
| Changing Visible Status Dynamically with a boolean value (3 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| Is it possible to have a boolean value in the visible status of let's say a text box or a label? I am trying something like this : asp:label id TestNumberLabel runat Server visible "myVisibleStatus" Test Number /asp:label Anyways, I'm getting the following : Parser Error Message: 'myVisibleStatus' is not a valid value for Boolean. Source Error: Line 85: asp:label id TestNumberLabel runat Server vi... |
|
| Reading Internet Text File (3 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| How do you read from a text file at an Internet http address (not local to server). I use to use a lot of the InternetOpenUrl wininet api calls. I am sure there is a better way now. Some sort of stream reader? Any examples? thanks, chuck |
|
| Viewing Namespaces... (2 replies) |
| ASPFriends.com 'aspngbeta' list |
| Is there a way to view the namespaces supported by ASP ? Gordon R. Durgha Web Developer www.vslink.net gd@vslink.net |
|
| IE 6? (3 replies) |
| ASPFriends.com 'aspngbeta' list |
| Would installing IE6 screw up my .net installation? Get your FREE download of MSN Explorer at http://explorer.msn.com |
|
| Application_Start (2 replies) |
| ASPFriends.com 'aspngbeta' list |
| Hi Everytime I hit a page on my website the "Application Start" event fires!?!?! Are there anyone who has any ideas on what I might have done wrong? Regards Alf Gaba |
|
| Annoying Message - TagPefix is not registered (2 replies) |
| ASPFriends.com 'aspngbeta' list |
| Does anybody know how to get rid of this message? I put a custom control into a (consuming) .aspx page like this: %@ Register tagPrefix "MB" Namespace "Dick.Utils" % MB:SomeFunction runat "server" id "XXX" Click Me! /MB:SomeFunction Then I keep on getting the following message This control cannot be added because its tagprefix is not registered in this Webform. Add a register to the page for TagPr... |
|
| send attachement aspx by email (2 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| I try to send attachement aspx file by email I could not Please help hue Do You Yahoo!? Yahoo! Auctions buy the things you want at great prices http://auctions.yahoo.com/ |
|
| Calling Server Methods on the Client? (3 replies) |
| ASPFriends.com 'aspngbeta' list |
| Hello All... 20 Does anybody know if it is possible (and how) I can call a C# Server method from a Client java script block. For example, If I have a class called DisplayTable that I instantiate as myTable. Can I somehow call the function myTable.Process(), for example, from the JS function doUpdate() ? 20 20 %@ Register TagPrefix 3D"OneCirc" NameSpace 3D"Tier2" % %@ Import Namespace 3D"System.Dat... |
|
| Setting focus in control (4 replies) |
| ASPFriends.com 'aspngbeta' list |
| Hi All, I'm using the ValidatorSummary control in my web forms. I want to set focus in the first control in my form where there is some error. Like we use to do when using javascript in ASP. Regards, Deep |
|
| DataGrid - Allow Sorting (2 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| I've been going through the properties & methods of the Datagrid and found 'AllowSorting" (true or false) If true it creates links on the field names in the header, but nothing happens on my system when I click them....is there somewhere on the web that shows how to implent this feature? |
|
| Related Question on DateTime Formatting (4 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| In my calendar application I want to format the time to 12:00 PM. I am using myTime.format("whateverformattype", null) but it tells me that null is no longer supported and that I should use System.DBnull .... but when I try that the compiler says that DBnull is not a part of System? What am I missing? Thanks, Jamie Get your FREE download of MSN Explorer at http://explorer.msn.com |
|
| Can users supply viewstate data for a control prior to render time? (6 replies, VIP) |
| ASPFriends.com 'aspngbeta' list |
| Hi, I'm trying to figure out how to allow users to navigate to an aspx page with some viewstate information encoded in the query string of the url... For example, given the following URL: file.aspx? VIEWSTATE blahblahblah blahblahblah could be the viewstate information that tells several controls on the page how to render their html output...How would I go about grabbing that query string paramete... |
|