microsoft.public.dotnet.framework.aspnet Archive - November 2001
Post a message to this list
Messages
Page: 12345678910
UserControls and Events (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I've got a Text Box on a User Control, double click and you can add the TextBox1 TextChanged, add the following: TextBox1.Text "Changed"; When you reference the User Control from a WebForm it will not fire the event back. If you do the same but not on a User Control it fires the event back correctly. Any got any ideas? Kind Regards, Chris Bond
Doesn't RadioButton have a Value property? (2 replies)
microsoft.public.dotnet.framework.aspnet
Greetings, Isn't the RadioButton class (System.Web.UI.WebControls.RadioButton) supposed to have a value property? The corresponding HTML control has one (System.Web.UI.HtmlControls.HtmlInputRadioButton). What is the equivalent of value in the server controls? Or is there any Tag property? I just need a placeholder to store some data in the control. Thanks.
Is there a better way to loop thru controls? (2 replies)
microsoft.public.dotnet.framework.aspnet
Greetings, I have a server side function to clear a form. All this is supposed to do is uncheck the radio buttons and clear out the text boxes. The reason is that we don't want any client side code in the browser. Following is the code that I wrote to loop thru the controls. This looks horribly inefficient to me, particularly with so many foreach. Can any one suggest a better way? Note: the hierar...
Page won't display DataGrid... (4 replies)
microsoft.public.dotnet.framework.aspnet
I've written and ASPX page that contains text, a datagrid, and more text. When I "build and Browse" the top and bottom text is displayed but the DataGrid is not displayed. In the .cs file for the ASPX, I have a Page Load method which retrieves a DataReader and sets the dg.DataSource to the DataReader. The Bind method is then invoke which is supposed to build the table. Any help would be appreciate...
Click event is not raised when an ImageButton server control is clicked (5 replies)
microsoft.public.dotnet.framework.aspnet
On my aspx page when I move the mouse over this ImageButton control it turns into a clickable hand. But when I click nothing happens. I even have an eventhandler for this ImageButton but absoultely nothing happens. This is how the control looks in the .aspx file: asp:ImageButton id "home" OnClick "home clicked" ImageUrl "clickable home.gif"Runat "server" /asp:ImageButton this is how the eventhandl...
Session state in web services. (7 replies)
microsoft.public.dotnet.framework.aspnet
I'm trying to get a web service to remember state information but for some reason nothing seems to be saved between service function calls. I'm using visual basic and I am placing WebMethod(EnableSession: True) before all of my web service functions that need to use session variables. But none of the session info is being remembered. Any ideas of why this isn't working or what I'm doing wrong? Tha...
DataGrid Web control question (2 replies)
microsoft.public.dotnet.framework.aspnet
I'd like to combine three columns (addr1, addr2, addr3) from my result set into a single column in my dataGrid. Is this possible? I don't think it is using a Bound column. I tried using a Template column but I wasn't sure how to get any actual data into there. Thanks for any help. joe
HTTPWebRequest under ASP.NET (2 replies)
microsoft.public.dotnet.framework.aspnet
I'm having a problem that I hope someone out there can shed some light on. I'm using the HTTPWebRequest and HTTPWebResponse to go get a web page. It's actually one of our very early web services (using it's own protocol though.) When I put the code in to a command line, it runs just fine. But, when the code is in the ASPX page, I get a HTTP timeout or it simply goes away and never returns. I think...
Two User Controls Interacting?! (2 replies)
microsoft.public.dotnet.framework.aspnet
I've been trying to get two user controls to interact with each other for a while now and I just can't get it to work! The first control (ServerControl.ascx) has a DataGrid that I want to be able to select and send the selected database ID to the second control (ClientControl.ascx). Both of the controls are contained in a third control (ContainerControl.ascx) I've included some code snippet from m...
User control & drop down list (2 replies)
microsoft.public.dotnet.framework.aspnet
I have created a very simple user control. It only contains one drop down list with entries that are meant to be used as navigation links around the site. In the code behind in the control (during the index selection changed event) I check to see which item has been selected and then do a response.redirect to take a user to the desired web page. However, it doesn't work. The control generates fine...
Multiple parameter in the HyperLinkColumn (3 replies)
microsoft.public.dotnet.framework.aspnet
Has anyone solved the problem for multiple parameters in the HyperLinkColumn since the class does not have a definition for the HyperLinkColumn class. Brynjar
Server-side HTML Code Creation (6 replies)
microsoft.public.dotnet.framework.aspnet
Is there any way to get ASP.NET to just create HTML WITHOUT trying to format it all nicely? For example, in my HTML table ASP.NET outputs the following: TD FONT size 2 /FONT /TD What I want is this: TD FONT size 2 /FONT /TD Does anyone know how to get ASP.NET to stop trying to make the code all pretty?
aspx syntax question (2 replies)
microsoft.public.dotnet.framework.aspnet
As a newcomer to ASP, I am confused as to the proper syntax regarding values and properties. In many books code examples show values and properties [example align "center"] always enclosed by quotes. Yet the Visual Studio ..NET IDE gives you drop down list boxes of selectable properties immediately after the equals sign and accepts the parameters without using quotes. Also control names and method...
ERROR RC1: ......must be placed inside a form tag with runat=server? (2 replies)
microsoft.public.dotnet.framework.aspnet
I am now getting this error with RC1 ERROR MESSAGE Control 'SQLListbox' of type 'ListBox' must be placed inside a form tag with runat server. 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 in the code. Exception Details: System.Web.HttpException: Control 'SQLLis...
UserControl vs Custom Control opinions? (4 replies)
microsoft.public.dotnet.framework.aspnet
Anybody wanna weigh in on the benefits and pitfalls of each?
Format strings (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi All , I need to format a string. For example "123456" as "123 456".How to do that? I'm using c# Thanks
Create XML file from SQL Server stored procedure (2 replies)
microsoft.public.dotnet.framework.aspnet
I need to do this once a day at certain time of the day automatically and put it out on my webserver. Any one seen these type of examples?
Real time data-binding (2 replies)
microsoft.public.dotnet.framework.aspnet
Greetings from DOWNUNDER, Can anyone Help? Reward Eternal gratitude. The Goal: RealTime Data Representation in ASP.NET The ASP solution: We have used RDS with a mixture of client side scripting using RDF.DataFactory and ActiveX controls to achieve real time updates from relational data sources. That is when a change occurs in a database field the Control on the web page updates when a background t...
How do I upload files (3 replies, VIP)
microsoft.public.dotnet.framework.aspnet
How do I upload files to a server using the input type file control or any other way using ASP or ASP.net Jarrod Goddard Junior Programmer/Analyst VS Visual Statement Inc www.visualstatement.com
Reading DropDown List Selected Items don't work (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi guys, I have a drop down list that I am trying to read the selected value from in order to populate a database but it is always passing me the first item, not the one that I have selected. Here is my code in my aspx file. asp:DropDownList ID "ddlApplication" runat "server" DataValueField "AppID" DataTextField "Application" /asp:DropDownList This is in the code behind aspx.vb file in the page lo...
AllowCustomPaginig (2 replies)
microsoft.public.dotnet.framework.aspnet
I'm trying to avoid to load the entire data source each time the data grid is paged setting AllowCustomPaging property to TRUE , and retrieving the data in page size chunks...(example from the ASP.NET QuickStart Tutorial) Is there a way to create and save the DataView in whole, bind to the DataGrid once, (no open, query, close conn. x times) and then page group of records from data in memory?
PostForward vs. Postback (5 replies)
microsoft.public.dotnet.framework.aspnet
I know that Web Form are architected to do Postback. But there are a lot times that passing information to the next page from Form elements would be nice...Post Forward. An example of this would be a verification page that give the user a chance to review all of his/her selections before making a purchase. Sure there is Session State and "Maintaining State" tips, but what if I want something simpl...
Hiding of DataGrid AutoGenerateColumns (5 replies)
microsoft.public.dotnet.framework.aspnet
Hi All, I am developing a small Web Application using ASP.NET and C#. I have a DataGrid Server Control in the form. The AutoGenerateColumn property is set TRUE since the number of columns to be displayed is dynamic. What I am looking for is one of the column in the grid is a unique id field which should not be visible for the user but I need it in DataTable. I want to make this column of DataGrid ...
ASP.NET Newbie (3 replies)
microsoft.public.dotnet.framework.aspnet
I am following the ASP.NET Quickstart Tutorial "datagrid1.aspx" example but keeping getting an error when trying to run it. The Build Errors are: Type is not defined: 'sqlconnection' & Type is not define: 'sqladapter'. These is coming from the statements in my *.aspx.vb file Page Load Event. Dim myconnection As sqlconnection & Dim mycommand As sqldatadapter I have the: %@ Import Namespace "System....
Customizing DataList output (2 replies)
microsoft.public.dotnet.framework.aspnet
In traditional ASP, I have a routine that performs a query based on another query. Then based on those records, will customize the output. I'm struggling with finding a .NET equivalent. It seems like a Datalist is the way to go, but I must be missing something. (joins won't work in my case) paraphrased Traditional ASP ie: Select AppID, AppName From AppTable Do while not RS.EOF Select UserID, UserN...
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