| More Dynamic Controls Questions (5 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| (Happy Easter!!!) History. I'm teaching myself C# with the goal of creating a website that is VERY metadata driven, and most if not all of the controls will be dynamically generated. Problem: I've spent a lot of time playing with this, and the only way I can get the EventHandler to work is to include the following code in Page Load. LinkButton btnSubmit new LinkButton(); btnSubmit.Text "Submit Cha... |
|
| difference between <script> tags and <% %> code render blocks? (3 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Can someone explain the difference between script tags and % % code render blocks? Can variables and objects be used between the two, for example : Can code from the script tags be used later in the page in the % % code render blocks? Whenever I try to do this I get errors. script language "c#" runat "server" string mystring "somevalue" /script % mystring% Philip |
|
| Microsoft Webcontrols (2 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| I've installed the set of IE Webcontrols from the Microsoft site and trying to use in simple test application designing in VS .Net. Here's the Error I am getting when trying to reference first controls in aspx page: Line 1: %@ Import Namespace "Microsoft.Web.UI.Webcontrols" % Line 2: %@ Register Tagprefix "web" Namespace "Microsoft.Web.UI.Webcontrols" Assembly "Microsoft.Web.UI.WebControls" % Pars... |
|
| Catching SMTP Mail Exception (2 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| The following code loops through and does mailings, although some of the addresses cause exceptions in the loop. How can I catch An unhandled exception Mail error like this within code? The server response was: 550 5.1.1 user@somewhere.net User unknown; rejecting 'Code for Mailings objMessage.From "me@company.com" objMessage.Headers.Add("Reply To", StrFrom) objMessage.Subject StrSubject objMessage... |
|
| Reposted : I have same problem as "FYI-Events execting twice" (3 replies, VIP) |
| ASPFriends.com 'aspngfreeforall' list |
| Santos listed in some detail a problem he ran into with InitializeComponents() that caused certain code to execute twice. I have the same issue. Has anyone else experienced this? So far we had one response from Aron who theorized what could cause that. I'm actually interested in finding people who have had the same experience as Santos and I did, and would like to hear what, if any, resolutions th... |
|
| Isolated Storage in win xp pro (7 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi all, I am creating a file in IsolatedStorage. Does anyone know where teh Isolatedstorage directory is located in WinXP pro. For Example, In the following code where is the filled called colors.txt created.. i did a search files in XP but couldnt locate it.. %@ Page Language "VB" debug "true"% %@ Import Namespace "System.IO" % %@ Import Namespace "System.IO.IsolatedStorage" % script runat "serve... |
|
| SOS: Need ASP / .NET Messageboard (8 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi all, We want to replace a Perl Messageboard with a ASP or ASP.NET full featured pretty messageboard. 1. Can someone suggest some excellent free or shareware versions that can be customized ? 2. What are the licensing issues of shareware versions for a corporate intranet. 3. Suggestions on how best to undertake this project. I need to post some of the specs in a bit. Thanks, Paul |
|
| printing a string of html in a page (2 replies, VIP) |
| ASPFriends.com 'aspngfreeforall' list |
| How would I go about printing a string of html in a certain part of a page? The string is from the Page Load event: Here is the code protected void Page Load(Object Src, EventArgs E) { string sqlfrom "news"; string sqlselect "*"; string stroutput; StringWriter writesql new StringWriter(); Console.SetOut(writesql); oledbaccess oda new oledbaccess(); oda.Run(sqlselect, sqlfrom); output.InnerHtml wri... |
|
| Passing a variable to a User Control (2 replies, VIP) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi, I have all my sites navigation etc in a header.ascx user control: SCRIPT LANGUAGE "VB" RUNAT "SERVER" Public sTitle As String /SCRIPT html head title % sTitle % /title meta http equiv "Content Type" content "text/html; charset iso 8859 1" link rel "stylesheet" href "/alexcampbell/AlexASP.css" type "text/css" /head In each page I specify what the page's title should be with this code: %@ Regist... |
|
| ASP.NET cookie problem (3 replies, VIP) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi, I'm trying to use Cookies to store authentication data for my web site... my problem is that when (in global.asax, Session Start) I try to read to see whether the cookie has been written, I get a "Value null was found where an instance of an object was required." The code I'm using is: Line 5: Sub Session Start(Sender As Object, E As EventArgs) Line 6: Line 7: If Request.Cookies("UserEmail").V... |
|
| Redirection does not work (4 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| I am writing an ASP.NET app which runs fine in the PC running a local copy of IIS. When I move the app. to the web server, redirection does not. I can load the different pages manually once I logged in, but the links that are suppose to take you to different pages don't work. Any ideas? |
|
| Include, code behind or user control (3 replies, VIP) |
| ASPFriends.com 'aspngfreeforall' list |
| in regular old asp we used include files to hold db connection functionality thus only having one file what is the best way to emulate this in asp.net ? cheers Bryan |
|
| How can I send a value (hidden?) from one aspx page to another, without using querystring? (3 replies, VIP) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi Is there any one who has an example of this..? (sending a number, an ID in a link from a datalistlink to a select statement in another aspx page) Eivind |
|
| Displaying contents of a file in a text box when a hyperlink is clicked (2 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi All, There are two set of codes below. The first one displays the files and directories in a particular drive or path on the hard drive while the second one displays the code of an .aspx file in a text box which can be modified by the user. Now What I want to do is combine this two files in a frame, and then when i click on the hyperllink of a particular file in the first file, its code should ... |
|
| OT: .NET Logo (2 replies, VIP) |
| ASPFriends.com 'aspngfreeforall' list |
| This may be a little off topic, but here's a shot. Does anybody know if Microsoft actually has a page with the .NET logos on it that is meant for developers (etc) to put on their websites? I know I could take the one off of the .net page, but that wouldn't be too kind. Thanks, Jonathan |
|
| Combo box server control (5 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| I first sent this to aspngfreeforall@asplists.com. If it got anywhere I apologize. I have the correct address now. I am very new to ASP.Net I have created a webform and placed a dropdownlist and populate it with contents of a database table. I have managed to do this using a datareader and databinding. I have a couple of requirements and questions. Requirement 1: My list consists of around a thous... |
|
| Databind ListBox with multiple Selected Items (2 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Does anyone have an elegant way to databind to a ListBox and show multiple selected items? Basically, I have articles that I'd like to associate with one or more categories, and the way I did this in ASP was to use a ListBox and have the user hold down ctrl and pick as many categories as fit. Then when I rendered the page, I would insert HTML to mark the associated categories as "selected" and it ... |
|
| Determine PostBack (7 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| 20 I have two buttons in a page. In codebehind how can I determine which button fires the PostBack ?. 20 20 |
|
| What is a low surrogate error? (in StreamWriter.Write) (2 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Does anybody know what this error means? A fatal error has occured in the Application. Additional Information: System.ArgumentException: Found a low surrogate char without a preceding high surrogate at index: 738. The input may not be in this encoding, or may not contain valid Unicode (UTF 16) characters. Parameter name: chars at System.Text.UTF8Encoding.GetBytes(Char* chars, Int32 charIndex, Int3... |
|
| SV: Full Souce (ASP.NET > VB.NET) (2 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| I suggest you download the iBuySpy (portal, store) solutions: http://www.asp.net/default.aspx?tabindex 3D3&tabid 3D42 Regards/H E4lsningar Andr E9 Colbi F6rnsen 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail:... |
|
| ASP.NET Saving as A Word Doc (2 replies, VIP) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi All, I am dynamically creating a display page from DB information. I need to give the user the ability to save this display page as a Word.doc I have been searching and haven't got anywhere with this.. Any help at all will be greatly appreciated! Thanks Rel |
|
| XML as Datasource (2 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Could someone give me a example of using an xml string as a datasource for a repeater. I want to show the contacts in the repeater. Below is a sample of the xml I am using Thanks, Jason COMPANY CONTACTS CONTACT ID "1" FNAME Some First Name /FNAME LNAME Some Last Name /LNAME PHONE 555 555 5555 /PHONE FAX 555 555 5555 /FAX EMAIL email@domain.com /EMAIL TITLE CFO /TITLE /CONTACT CONTACT ID "2" FNAME ... |
|
| Colors (4 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| I am building a control dynamically. I can set the color using color.AnyColor; But how do I set a color that is not predfined: "#ADC6E7" Thanks, Scott |
|
| Counter (8 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Moved from [aspngcs] to [aspngfreeforall] by Dan Hurwitz dhurwitz@stersol.com I am working on writing a counter that grabs information about a user visiting the page. I remember a long time ago when I wrote one you could see what country the user was from by doing something with there IP or getting something like there host name. Any help or suggestions of interesting info that can be obtained wou... |
|
| User control persistance (3 replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Howto? I have a default.aspx dynamically loading ascx controls into a placeholder... How can I play with the user control without losing it? Emil Chr. Melar |
|