ASPFriends.com 'aspngfreeforall' list
Up to: Discussion Lists

  • RSS Syndication
  • Latest Discussions Archive
    DataList (10 replies)
    ASPFriends.com 'aspngfreeforall' list
    Am trying to fill a DropDownList within the Edit Template of a DataList. Is there any reason I shouldn't have access to the control or be able to find the control in code. The following errors occure with the attached code: Error Value null was found where an instance of an object was required. Description: An unhandled exception occurred during the execution of the current web request. Please rev...
    Trying to set the width of an asptable cell..... (4 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi All, I have an asp:table that I am adding cells and rows to dynamicly. All is going fine except that I am trying to tell the cell that it's with is 120px using the cell.width property. Like this: imagecell New TableCell() imagecell.VerticalAlign VerticalAlign.Top imagecell.Width 120 'ERROR I have also tried using a sting value: imagecell.Width "120" However, both times I get an error stating th...
    Manually Ordering Elements within a Listbox (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hello I have a listbox that lists fields in a database. On my aspx page, I want an up arrow button and a down arrow button. If a user selects an item in the listbox and presses the up arrow, then that item moves up the listbox order, the opposite for the down arrow. What is the best way to create this functionality in ASP.NET? My thought was that I'd just create some client side javascript that ma...
    Response.Write (6 replies)
    ASPFriends.com 'aspngfreeforall' list
    Moved from [aspstatemanagement] to [aspngfreeforall] by Victor Von Doom doctordoom@aspelite.com Hi, I have got a normal aspx page with codebehind. How Can I Response.Write a Variable from the Codebehind (c#) into this situation. object classid "clsid:D27CDB6E AE6D 11cf 96B8 444553540000" codebase "http://download.macromedia.com/pub/shockwave/cabs/flash/swflas h.cab#version 6,0,29,0" width "100%" h...
    Screen scraping and transforming (2 replies, VIP)
    ASPFriends.com 'aspngfreeforall' list
    I have used the WebClient object to obtain the text of a web page. What I would like to do is to take the page and obtain only certain link objects for display. I am not certain how to do this other than doing basic string manipulation, which I would like to avoid. How would I take the results of DownloadData and walk a DOM tree to obtain the links? Or is there a better method of doing this? I hav...
    Automatically Start Download (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi All, I think this is a simple question really. I have an application that exports my crystal reports to .pdf and saves them on my server, what I would like to do now is to begin an automatic download of this file to the client but can't seem to get that to work. If I just point the clients browser at the file then it just opens it, I don't want this I want it to come up and ask them where they ...
    LinkButton CSS Class (4 replies)
    ASPFriends.com 'aspngfreeforall' list
    Anyone out there have any ideas how to change the css class of a link button when you click it? The trick here is, I'm creating the linkButtons dynamically. Mike Collins *********************************************************************** NOTICE: This e mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of...
    Visitors IP Address (REMOTE_ADDR) (4 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hey its me again im looking for a way to use the System.Net.?? to get the visitors IP Address.. got a web site link for me? or code sample? Thanks my fellow Neters.
    Updating cookie erases previously set values (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi I'm setting a cookie as follows: 1: Dim ckCA As New HttpCookie("ckCA") 2: ckCA.Values.Add("ID", CType(m Prof ID.ToString, String)) 'm Prof ID is a Guid from a SQL query 3: ckCA.Values.Add("URL", HttpContext.Current.Request.RawUrl) 4: HttpContext.Current.Response.Cookies.Add(ckCA) Then, I update the ("URL") key in another page: 1: HttpContext.Current.Response.Cookies("ckCA").Values("URL") HttpCo...
    Form submission problems... (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    I am having a time trying to figure this one out.... I have two aspx files, done using CodeBehind. The first one is a standard HTML form with several input type text boxes and a submit button. The second is the action of the first page. The first textbox on the form I am submitting looks like this: input class "textbox" style "WIDTH: 182px" tabIndex "1" type "text" maxLength "10" name "txtClientNu...
    TextMode Property - asp:textbox (4 replies)
    ASPFriends.com 'aspngfreeforall' list
    I want to set an asp:textbox TextMode property to Password but also populate it with characters(so the user doesn't have to re enter their password). If I set the TextMode property to Password at design time and then try and set the Text property on my Page Load event, no characters appear. If I try and set the TextMode property after setting the Text property, no characters appear: txtPassword.Te...
    Viewstate not working for listboxes... (6 replies)
    ASPFriends.com 'aspngfreeforall' list
    I have two listbox controls on a page that are databound when the page loads the first time, if the page is posted back, the controls are not rebound again because the viewstate should keep the listbox information. Well this is not happening, when I call a server side function to read the items sitting in the listbox, the listboxes reset to their original values, even though I have checked for a p...
    Deploy fails on production server (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi, I got a strange problem. I have a page where I dynamically load web controls to. The code works great on my development server but now when testing it on the production server it fails with this error: Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review...
    Pull out the check box values designed at run time. (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    script runat "server" Public objDatabase as new Waide.DataUtility Public ds as new System.Data.DataSet Public count as Integer dim strSQL as String Sub Page Load() personid.Text request("id") DataBind() SetData() End Sub Sub DataBind() If ((personid.Text "") or (personid.Text "null")) then 'do nothing... Else objDatabase.strsql "spGetPersonRolesNew " & Request("id") objDatabase.Initialize() ds obj...
    Not Answered: Querystring modification (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    Just wondering if anyone has ever had to do this...... redirecting works fine, just seems kind of expensive. Original Message From: Jason Peterson Sent: Friday, 09 August, 2002 11:10 AM To: aspngfreeforall Subject: [aspngfreeforall] RE: Querystring modification After reading this thread and a little playing around, I'm curious if there is a way to remove an item from the QueryString after you're d...
    Error Message (8 replies)
    ASPFriends.com 'aspngfreeforall' list
    Does anyone know what the follwing error message means "Object must implement IConvertible" many thanks Paul
    How can I reference a object created by other user control in a web page ? (10 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi all, I have a web page (aspx) with tree (3) user controls (Hedear01,ascx,Header02.ascx,body01.ascx), in the codebehind of control body01.acsx I want to use a dropdownlist that control Header02.acsx create, but the compiler show me the error : The type or namespace named my dropdownlist01 could not be found (are you mi....) How can I reference a object created by other user control in a web page...
    Not Ansered: I would like to know how to dymamically register user controls .ascx onto a parent user control (6 replies)
    ASPFriends.com 'aspngfreeforall' list
    I would like to know how to dymamically register user controls .ascx onto a parent user control from a dropdownlist of user controls, i would like to build a user control that would dynamically register (place) user controls within its own body. this is just an idea or what I want. It most likely is not in any way the way to do it. I just need some guidance on how to allow a user to select a contr...
    Creating Labels dynamically (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    html div style 'background color:' DIV P BR Hi everybody, /P P How do you create an array of labels dynamically at Page Load or at runtime.  The labels should be BR Label1 or Label(1) BR Label2 or Label(2)  etc... /P P I tried in the Page Load event the following code: /P P   For count 0 To maxcount BR    Dim lbRolenamenew() as Array BR    lbRolena...
    Is there any sample ASP.Net user activity code out there (13 replies)
    ASPFriends.com 'aspngfreeforall' list
    Like how many users are on line and stats. http://aspalliance.com/dotnetsolutions/ Dennis West West Design MS .NET Developer www. westontheweb.net westdh@attbi.com
    How do I get Windows Environment Variable USERNAME from an Intranet App? (5 replies)
    ASPFriends.com 'aspngfreeforall' list
    I've tried using the Environment class, but the UserName property returns ASPNET, the windows user that started the thread. I've tried other combinations, such as using a WindowsIdentity to populate a WindowsPrincipal object, but with the same end result. I would like to get the %USERNAME% environment variable to transparently identify the current user of an intranet app. I'd like to do this witho...
    accessing session in a server control (5 replies)
    ASPFriends.com 'aspngfreeforall' list
    Is it possible to access Session information from within a server control? If so, what is the best way to do so? Thanks in advance, Chris
    Calendar Control - Odd/Error Behaviors? (5 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi All, I have successfully used the Calendar control in the past, but now I am experiencing some odd behavior from it. First, sometimes (inconsistent, it seems) the Next and Prev month links don't work they produce client side errors that read "Invalid Syntax", and claims the problem is in the JavaScript produced, which is: script language "javascript" ! function doPostBack(eventTarget, eventArgu...
    RichTextBox - similar controls exist? (5 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hello, Does anyone know of any controls similar to the RichTextBox that exist? Int erested in the product, but want to compare to see if thier is a better dea l out there. Thanks, Robert M.
    Is This Bad Practice? (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hello All I want to keep a FileStream object cached in an application object for central logging thoughout my web app. Is this considered good practice or should I be creating a new FileStream object each time my "log" method is called? Thanks Jay Do You Yahoo!? HotJobs Search Thousands of New Jobs http://www.hotjobs.com
    Error when project was deployed (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    I have a project that is functional on my DEVSERVER but when I deployed it to my IPP, I'm getting an error. THe Error is this: Insert Error: Column name or number of supplied values does not match table definition. 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 ...
    MemoryStream Return Jibberish (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hello, I'm trying to use a MemoryStream in my application and am not having any luck. Below is a simple example that reads a file, writes it to a Memorystream and then writes it to another file. My objective is not to copy a file but to use the memoryStream object, Im reading and writing a file to illustrate this broken example. I greatly appreciate any you can provide! FileStream fs 3D new FileSt...
    Regular Expressions (12 replies)
    ASPFriends.com 'aspngfreeforall' list
    20 Hi all, I'm using VS 7 and in a regular expression validator control, there is a mask for U.S. Phone # ((\(\d{3}\) ?)|(\d{3} ))?\d{3} \d{4} 20 As a regular expression novice, I want to change this to make the Parenthesis around the area code optional 20 How would I do it. 20 20 Thanks 20 Scott
    Simple question about comboboxes (4 replies)
    ASPFriends.com 'aspngfreeforall' list
    I have a combo box server control. I would like to databind it to one of my methods. However, I would also like to add "Please Select" with a null value to the box. What is the best way to do this? Here is my code: With cboStatusCode .DataSource oEstimate.GetAllEstimateStatusCode .DataValueField "ID" .DataTextField "Name" .DataBind() End With If I try to add .Items.Add("Please Select") it doesn't ...
    Convert String to Int (12 replies)
    ASPFriends.com 'aspngfreeforall' list
    I need to convert a string of 1234 to an INT of 1234 so I can use it a vbscript sql query. Got clues?
    user control interaction (7 replies)
    ASPFriends.com 'aspngfreeforall' list
    Here is my setup: index.aspx has 2 user controls on the page. UserControl#1 Has a dropdownlist UserControl#2 Is suppose to visible only when the user selects a value from the dropdownlist(uc#1) and clicks the button. How can I check for a value or post back from user control one for the dropdownlist?
    JScript Confirm Box (extra functionality) (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi All, I have a button: asp:Button id "CmdDeleteArticle" Text "Delete Entire Article" CommandArgument "CmdDeleteArticle" OnClick "CMDButtonClick" visible ' %# CheckDelete()% ' runat "server"/ and I use the following Sub for the onclick: (I stripped non relavent code) Sub CMDButtonClick(sender As Object, e As EventArgs) Dim arg As String CType(sender, Button).CommandArgument Select Case arg Case "...
    EDIT ? (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    How to edit data if i using data table ? can i using ONEDITCOMMAND, like usually used in datagrid ?? any sampel ??
    Where does Combobox's Itemdata Property go? (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    Moved from [aspngstart] to [aspngfreeforall] by Swoop Doggy Dogg IronMan@aspelite.com In VB6 it was really easy to load a ComboBox with data and then use the ItemData property to associate a key value or something with the item in the list. There looks to no longer be an ItemData property... So, how do you load manually (for example) Customer Names and Customer ID's into a ComboBox showing the Cus...
    SV: Re: SV: Re: SV: Code behind error (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Is this all the code you have? W Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malmö Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail: colbiornsen@sonnenburg.se Web.: www.sonnenburg.se B2B Web Solutions Specializing in .Net hat are you trying to achieve? Do you have a Global.asax using the Classanme Global? Ursprungl...
    messageboard (4 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi All Has anyone got any information or a good example on developing a message board in ASP.NET, and if possible not using web services. may thanks Paul
    How does a component determine what other internally referenced component to use (4 replies)
    ASPFriends.com 'aspngfreeforall' list
    Question 1: I'm trying to get a handle on the "order of usage" that a .Net component uses to determine what internally referenced .dll to load at run time. If I had component A that referenced another component B, and I built component A against component B while they were both in the same physical directory .... I then install component B into the GAC while leaving component B's .dll in the same ...
    Is this true: Web Applications, by default, do not look in the GAC to resolve assembly references at runtime. (4 replies)
    ASPFriends.com 'aspngfreeforall' list
    Is it true that ASP.Net web Applications, by default, do not look in the GAC to resolve assembly references at runtime? If this is, by default, so ... is it possible to set up an application build so that at run time an ASP.Net application will look for shared assemblies in the GAC at run time? Or am I always forced to put a copy of commonly used .dlls (such as a third party components) in the loc...
    Problem with session timeout (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hello, I got my session timespan set in 10 minutes. I interact with my site and after 10 minutes the timeout is reached; But the point is that I kept interacting with the site all that time up to the last second. I store my users id in a session var, so after some minutes they got to log on again even if they are using the site. I wonder if there is a catch in the way asp.net manages sessions, com...
    Parse HTML and strip tags leaving only text? (3 replies, VIP)
    ASPFriends.com 'aspngfreeforall' list
    There are a few components that I remember (vb6) that would parse html and strip out tags, and leave certain formatting... All I'd like to do is strip all the tags, and maybe pop carriage returns in where there is a /p or a br . Anyone know of any .net components or existing functions that do this kind of thing? 20 Thanks!
    ASP.NET FSO Copyfile method? (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    There was no copyfile method in FSO (there was move, but no copy). Is there something now in the new improved FSO.NET? 20 I'm currently creating a folder based upon a users database name and then their page runs based upon the folder name. All I want to do is copy the template file tc template.aspx to the newly created folder... How can I do that? I really don't fancy writelining 800 lines of code...
    using a .net assembly from an asp page (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    Is it possible to create an instance of a .net assembly from with a asp page (not an aspx page). The reason I ask is this, I have a custom dll that I reference from with an asp page using CreateObject (late binding\automation). I need to extend this dll. I would like to re write it as a .net assembly dll as we plan to migrate to .net soon (all new development is with .net). However, since the asse...
    Relative to Application Root (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hello I'm trying to create links in my web application that are relative to the application root. I thought I heard about some syntax that uses the tilde (~) to do this, but I haven't gotten it to work. Am I on the right track? If so, what is the correct syntax? Thank you. Regards Eric
    ASP.NET Certification (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    Has anyone out there done MS certification tests? Can you give me any advice on how to prepare? I don't want to pay a forture for some crap course. I want to buy a book or two and get some practice exams. I'm planning on doing exam 70 305 VB.NET web applications which MS say will be released next month. Thanks
    Int to bool conversion problem (7 replies)
    ASPFriends.com 'aspngfreeforall' list
    I have a piece of c# code like so: int numbercols 3D reader.FieldCount; 20 int row 3D 1; 20 while (reader.Read()) { 20 for (int i 3D0;i numbercols;i ) 20 { if (row 3D 1){ xlsheet.ActiveSheet.Cells[row,i] 3D reader.GetName(i).ToString(); } else{ xlsheet.ActiveSheet.Cells[row,i] 3D reader.GetValue(i).ToString(); } } row ; } 20 Now VS.NET keeps telling me that the (row 3D 1) portion is wrong because ...
    IE BUG! - javascript updates not being loaded (6 replies)
    ASPFriends.com 'aspngfreeforall' list
    This is really frustrating.... My browser keeps viewing old versions of javascript source files that have been included in my .aspx pages using the script language "javascript" src "myfile.js" /script command. I can even delete a javascript file and my browser will still load it up. The only way I can get past this is to save the javascript file under another name, and then change all refernces to...
    aspnet user (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    Does anyone know how to change the username that an asp.net application runs under to a domain account? Chat with friends online, try MSN Messenger: http://messenger.msn.com
    URL Masquerading (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    Hello I saw an article online, but have been unable to find it again. It talked about how to let the URL www.mysite.com/images/12 be synonymous with www.mysite.com/images/getImage?id 12. The purpose was to allow browsers to cache the image (no '?' in the URL makes it cacheable on the browser). My purpose is to create more human readable URLs for customized content. Does anyone know how to masquera...
    Buried Controls (3 replies)
    ASPFriends.com 'aspngfreeforall' list
    T2ssIGhlcmUncyBhIHRvdWdoIG9uZToNCg0KSSdtIGNyZWF0aW5nIGR5bmFtaWMgZm9ybSBlbGVt ZW50cyBpbnNpZGUgYSBkeW5hbWljIGFzcHRhYmxlLiAgSG93IGRvIEkNCmdldCB0aGUgdmFsdWVz IG9mIHRob3NlIGZvcm0gZWxlbWVudHMgd2l0aG91dCBrbm93aW5nIHRoZWlyICJwYXRoIiBhbmQN CmRvaW5nIGFib3V0IGVpZ2h0IG5lc3RlZCBmaW5kY29udHJvbHM/ICBJcyB0aGVyZSBhIHdheSB0 byBkbyBhDQpmaW5kY29udHJvbHMgb24gdGhlIFdIT0xFIHBhZ2Ugb3Igb25seSBvbiBmb3JtIGVs ZW1lbnRzPw0KDQp...
    Java Classes in ASP.NET (2 replies)
    ASPFriends.com 'aspngfreeforall' list
    Moved from [aspngstart] to [aspngfreeforall] by Devin dmrader@sseinc.com Hello everybody !!! I would like to know how can i call java Class inside ASP.NET. Is there any way to call a java Class in ASP.NET ? What i need to do in this case ? How can i make a reference to my java class ? thanks. []s, Gustavo.
    Visit the archive for messages from this site.
  • October 2001 (291 items)
  • November 2001 (369 items)
  • December 2001 (255 items)
  • January 2002 (329 items)
  • February 2002 (238 items)
  • March 2002 (205 items)
  • April 2002 (194 items)
  • May 2002 (211 items)
  • June 2002 (159 items)
  • July 2002 (154 items)
  • August 2002 (80 items)
  • June 2004 (1 item)
    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