microsoft.public.dotnet.framework.aspnet Archive - January 2003
Post a message to this list
Messages
Page: 123
XSLT and webforms walkthrough (3 replies)
microsoft.public.dotnet.framework.aspnet
In Visual Studio .NET there is a walkthrough to view XML and XSLT in a web form. There is code for the button to set the Tranformsource property path. The Xml1 object is not found and gives a compiler error. How can I determine the proper object to site? if (CheckBox1.Checked) { Xml1.TransformSource "email headers.xslt"; } else { Xml1.TransformSource "email all.xslt"; } thanks, Gene
data access question (3 replies)
microsoft.public.dotnet.framework.aspnet
I need to query a SQL table and write the results back to a string, not to a control. The result set will contain multiple records, but no more than 3 or 4. Is there a simple method to do this, such as looping through a recordset in legacy ASP? I am using C#... Thanks! *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
using validation summary in grid layout mode (2 replies)
microsoft.public.dotnet.framework.aspnet
I'd like to put a validation summary near the top of my page (after a header but before the form) when using grid layout mode. I don't want to leave a large blank space for the error messages to render into. Is there any way (besides using flow layout) to get the validation summary to push the form down so that it doesn't render on top of the form? Thanks, Dave
Can Datagrid do this? (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I have a SQL server table which has fields fld 1, fld 2, .......,fld 20. I use sqldatareader to read from table, and bind datagrid to the reader at run time. Can I use datagrid to display fld 1 to fld 5 on first row , fld 6 to fld 10 on second, ........? Thanks in Advance
check service start/status (2 replies)
microsoft.public.dotnet.framework.aspnet
Is there a way through a console app or service app, to check if a service in 2k/xp is running, and if not start it?
reading datalist value (2 replies)
microsoft.public.dotnet.framework.aspnet
I have a asp:linkbutton inside the datalist control. And Now...When user click on this link I want to read this value and arttach it to the Querystring and redirect the page? How do i read the value from datalist ? Thanks If i use the following code : string fabric MyDataList.DataKeys[MyDataList.SelectedItem.ItemIndex].ToString(); I am getting this error. Index was out of range. Must be non negati...
htmlencode and textfile (2 replies)
microsoft.public.dotnet.framework.aspnet
I need to output the contents of a text file to an HTML textarea control. The problem is that some of the text includes HTML and VB.Net code elements. I want to display the code in the text area without having it execute. I can used htmlencode to encode strings so they are not interpreted as code. But is it possible to encode and write out a text file? Something like this: textarea % Dim x as stri...
Stretch the Calendar control's SelectedDate capability. (2 replies)
microsoft.public.dotnet.framework.aspnet
I'd like to use the Calendar control to select dates for assigning events to particular dates. Now the Calendar control has three modes of selection as we know. But I don't want to use these modes. I want to have a custom mode where the user may select multiple dates in the Calendar, but they may be scattered all over the course of the month. Does anyone have any suggestions on how best to do this...
How to do a redirect to another page (5 replies)
microsoft.public.dotnet.framework.aspnet
Hi all. I have a form that a user will fill out information and then click the submit button to send. On the click I want the user to go to the conformation page where the see what they sent. What code do I need to write in the onclick event to make this happen. Is it a simple a href tag to the conformation page? Thanks.
Desperate! String method "does not exist"?!? (4 replies)
microsoft.public.dotnet.framework.aspnet
I have a TextBox with an ID of "Question6Answer18". I have a Save button (no form so I'm doing it manually) and in the code behind I'm trying to extract the 6 and the 18 into different variables. However, when attempting to access *any* string methods I get an error message saying that the method does not exist. I say any because I've tried several different ones trying to figure wtf is going on i...
Carriage Return doesnt submit form? (3 replies)
microsoft.public.dotnet.framework.aspnet
Please take a look at the following code and what is the solution to users using the carriage return when in a form to submit the form vs. using the button to click and submit the form. I loved classic ASP.............. **************************** %@ Page Language "VB" % script runat "server" Sub Button1 Click(sender As Object, e As EventArgs) Label1.Text "Hello, " & TextBox1.Text & "You would se...
Can't change Font Color in DataList (2 replies)
microsoft.public.dotnet.framework.aspnet
I have an aspx web page with content rendered from a database. The content renders fine and styles from a CSS file are rendered correctly except for "color." Here's the relevant code: div class "rhscont" ASP:DataList id "myDataList" RepeatColumns "1" RepeatDirection "Horizontal" font size "100%" runat "server" ItemTemplate %# DataBinder.Eval(Container.DataItem, "Announcement") % /ItemTemplate /ASP...
Could not load type '...' (3 replies)
microsoft.public.dotnet.framework.aspnet
I have a virtual web with its root configured as an application. My project has been compiled. ASMX (WebService) files load and function fine, but ASPX (Web Form) files produce an error, indicating they can't load the type in the project assembly. What does this mean? Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service t...
Fire up Checkbox CheckedChanged event without postback (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I have a DataGrid TemplateColumn that has CheckBox controls as ItemColumns. I would like to get notified when a checkbox is checked or unchecked without doing an actual postback (reload the page). I just need to do a simple update to the database when this happens. I experminted with setting AutoPostBack to true but it seemed ridiculous to refresh the entire page every time. Without AutoPostBa...
Accessing URLs on another server (2 replies)
microsoft.public.dotnet.framework.aspnet
I'm having trouble accessing pages on another server from within ASP.NET. The code below setups up a series of XSLT transforms and then uses them to processes a document found at some URL. It cannot seem to load *some* documents from the remote server. For example, when the document URL is http://somehost/toplevel/, it works fine but when the document URL is http://somehost/toplevel/some/path/ an ...
System.Web.Mail.MailMessage and Mutipart/Related Header problems (3 replies)
microsoft.public.dotnet.framework.aspnet
Dear All, I have created a program (Windows Forms not ASP) which uses the System.Web.Mail.MailMessage class and the System.Web.Mail.MailAttachment to create an HTML Email with the images used in the HTML attached to the message. All the correct formats are set for bodytype and content. Problem is that unlike the Messages created by outlook where you do not see the attachments (i.e. each attachment...
Window.Confirm dialog - pause for answer? (6 replies)
microsoft.public.dotnet.framework.aspnet
Hello all: I have the following code in my code behind: fConfirm ClientConfirm(" confirm message goes here" ) If fConfirm False Then Exit Sub End If This code calls a simple function for the window.confirm procedure: Public Function ClientConfirm(ByVal strMessage As String) As Boolean HttpContext.Current.Response.Write(" script window.confirm('" & strMessage & "'); /script ") Return ClientConfirm ...
Session_End event does not fire on Session Timeout (3 replies)
microsoft.public.dotnet.framework.aspnet
I have set the timeout attribute in my web.config file to 1. I have set a breakpoint in VS.NET on the Session End event handler in the Global.asax file and am running the web app in debug mode. I have also opened the System Monitor and am looking at the Sessions Total, Sessions Active and Sessions Timed Out performance counters. When I run the web app in debug mode, I notice that the counters for ...
What wrong with my .NET? (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi all! After I installed VS.NET and want to develop my first ASP.NET Web Application, I cannot even open a new one! The error message is as follow: " Unable to create Web project 'WebApplication1'. The file path ' file path ' does not correspond to the URL 'http//localhost/WebApplication1. The two need to map to the same server location. HTTP Error 404: Object Not Found. " However, I have a folde...
Click Event fires twice! (5 replies)
microsoft.public.dotnet.framework.aspnet
Hello, Submit button is connected to submit click(). When you click, submit click is called twice. Thanks in advance jay
Programmatic POST Operation (9 replies)
microsoft.public.dotnet.framework.aspnet
Ok, this may sound strange, but I have my reasons.... I want to have a form on my page that simply posts to another page on my website (no problem there). Then that other page would have some basic output to the user and a bunch of code behind that handles the POST data (still no problem). That code behind would gather all the POSTed fields, add some more fields, and then do its own POST to anothe...
Resend: Radio button event in a datagrid (3 replies)
microsoft.public.dotnet.framework.aspnet
I have added a radiobutton as a template column in a datagrid in ASP.NET web form. How can I capture the radiobutton CheckedChanged event for this radio button present in a datagrid. Please provide some link or code. Thanks Jagriti
broken link script (2 replies)
microsoft.public.dotnet.framework.aspnet
I have a database with a few hundred links to other webpages. How can I make a script that checks for broken links.? I know there is programs for this but that is not what I am looking for. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Terry
Response.WriteFile problems (2 replies)
microsoft.public.dotnet.framework.aspnet
I have having two problems in regards to the "Response.WriteFile" function in ASP.NET. 1) If the user is on a slow connection there is a very high failure rate but if I have them do a simple download from the server using a direct link the failure rate is greatly reduced or non existant. 2) In the below code if the user select save the file is saved with one prompt. If the user select open the sys...
.aspx problems on Netscape 4.74 on Mac OS9 (4 replies)
microsoft.public.dotnet.framework.aspnet
I've got a wierd drop down listbox scrollbar error when my ASPX.net page is viewed in Netscape 4.74 on a Mac with OS 9. With more than a screen full of options in a HTML dropdown listbox, the scrollbars won't display if the extension is .ASPX, even if I strip the page to the bare essentials. But if I change the page to a ..htm or .asp, the scrollbars magically appear. Sample code: HTML body form n...
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