|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP.NET web controlsmicrosoft.public.dotnet.framework.aspnet.webcontrols
Display a record - several questions
David Thielen -
8 Apr 2006 10:11 PM - 3 messages
Hi; I have a page that displays a record. What is shown is based on the record values - for example there is a MultiView and the View shown depends on a value in the record. So I cannot use a DetailsView or FormView - it's just a bunch of fields on ...
One page - edit & insert
David Thielen -
8 Apr 2006 9:51 PM - 6 messages
Hi; I want to have a page where Datasource.aspx means create a new datasource and Datasource.aspx?ID=5 means edit the datasource who's PK is 5. I am not using a GridView or DetailsView for this data - there are a bunch ...
using 'sender' object on event fires
Phil -
8 Apr 2006 9:36 PM - 3 messages
I understand using the 'sender' object allows you to right a single function to handle multiple events, but in the instance that you are righting a function for a single event does it buy you anything? For instance (as is my case...), when handling a FormView PreRender event, ...
FormView - initial template
David Thielen -
8 Apr 2006 9:03 PM - 2 messages
Hi; I call a page that has a FormView from 3 different buttons - view, edit, and create. So I need to set the initial template when the page is called. Is there a way to do this in the url for the page? Or if I have to do it in ...
Gridview can't format a date
Steve -
8 Apr 2006 7:48 PM - 3 messages
I have a gridview bound to a SQL Server table. One of my columns is bound to a datetime field. I set the column's dataformatstring property to {0:yy-MM-dd} or {0:d} or {0:D} it doesn't matter. The dates are shown as ...
Confirm delete in GridView - the easy way
David Thielen -
8 Apr 2006 6:08 PM - 2 messages
Hi; I think this is the easiest way to do this - [link] ...
Eval in an OnClick?
David Thielen -
8 Apr 2006 4:02 PM - 2 messages
Hi; How can I do the following (inside a GridView)? <asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick='return confirm("Delete the datasource <%# Eval("Title") ...
HyperLinkField and FindControl
David Thielen -
8 Apr 2006 3:47 PM - 2 messages
Hi; I have a HyperLinkField inside my GridView and it works great. I use DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Datasource.aspx?ID={0}" so I really want this control. However, I need to access this control in the RowDataBound in the code-behind. There is no ID="name" for HyperLinkField so how do I get this ...
DataMappingType in the DataSet Designer
Alexander Walker -
8 Apr 2006 1:39 AM - 8 messages
Hello I'm trying to set the DataMappingType of columns on a typed dataset that I have created using the DataSet designer in visual studio 2005, is there a way that I can set the DataMappingType of the columns? I've tried editing the code that it ...
Gridview Pager Modes
David D. -
7 Apr 2006 11:33 PM - 2 messages
I have a user that would like a "NumericNextPreviousFirstLast" type of paging mode on the GridView. That's not on option out of the box. Is it doable without a lot of effort? Thanks, David ...
UserControl
Ben Schumacher -
7 Apr 2006 2:48 PM - 2 messages
If I place a usercontrol .ascx on a webform .aspx, is there a way to access the clientid propery of controls on the webform .aspx from within the Page_Load of the .ascx. For example, I have a webform with ... <asp:textbox id="txtOne" runat="server"> ...
UserControls and Collections Property
CMM -
6 Apr 2006 10:32 PM - 6 messages
With a Web *UserControl* (not composite control) how do you make a collection-- either custom col derived from CollectionBase or a .NET 2.0 generic List(Of MyClass)--- accessible as a property? MyClass is a simple class with just a ...
Problem in designing layout of website
gudiya -
6 Apr 2006 2:56 PM - 2 messages
Hi everyone, I am new to web designing using visual web developer 2005.I want my web page to have a frame on left with all me links as a tree structure and the contents of the link page must open on the right frame.How ...
I do I remove the style attribute from Image controls?
J055 -
6 Apr 2006 2:33 PM - 4 messages
Hi A number of controls which use images seem to render html with a default style attribute: style="border-width:0px;" e.g. <input type="image" name="ctl00$Main$ImageButton1" id="ctl00_Main_ImageButton1" src="images/address_book.gif" style="border-width:0px;" /> ...
project or website location in design time
newbie -
6 Apr 2006 2:04 PM - 2 messages
Hi, is it possible to determine project or website location (folder) in design time? ...
.NET 2.0 TreeView control vertical align problem
shelly -
5 Apr 2006 11:28 PM - 3 messages
Each node's text is two lines, and I want the expand image to align with top vertically. Right now, it's aligned in the middle. I've looked through all properties of the treeview, but couldn't find one. Please help help ...
Link to download a file.
Doru Roman -
5 Apr 2006 10:13 PM - 6 messages
Hi, I am a beginner and I try to find out how to create a link so that the user can download a file. Thanks, Doru ...
dynamic controls
pduncan -
5 Apr 2006 9:59 PM - 2 messages
I'm creating a calendar control in Page_Init, setting it's date, and adding a handler to it Dim bdp9 As BasicFrame.WebControls.BasicDatePicker = New BasicFrame.WebControls.BasicDatePicker bdp9.DisplayType = BasicFrame.WebControls.DisplayType.Button bdp9.SelectedDate = DateTime.Today bdp9.AutoPostBack = True ...
Passing data into a custom control
Steve -
5 Apr 2006 7:08 PM - 2 messages
I made a custom web control (ascx) that contains a bound gridview in a scrolling panel with a datasource control. This control will be used by several pages in my site. Each time it is used a different SQL query ...
Please help ..... GridView
pargat.singh@gmail.com -
5 Apr 2006 6:58 PM - 2 messages
I have a Gridview.I wunna make a link to products detail at popup window. Gridview such as <columns> .... <asp:HyperLinkField DataNavigateUrlFields="MalzemeID" DataNavigateUrlFormatString="javascript:var w =window.open('detay.aspx?ID={0}','','width=400,height=400,location=no')" ...
Dynamically move control.
Shawn -
5 Apr 2006 3:22 PM - 2 messages
I am trying to find a way to move a button control to a location where the mouse is clicked. I got all the code in to find the coordinates and populate a hidden control with the values, but when I try to move the button on ...
How to reach the object connected to repeater
Karl-Inge Reknes -
5 Apr 2006 11:18 AM - 2 messages
Hi I have a repeater that is connected to an objectdatasource. I can reach the item control like this. foreach (RepeaterItem item in Repeater1.Items) { CheckBox c= (CheckBox)i.FindControl("checkbox1"); Label l = (Label)i.FindControl("label1"); ...
validating user control
l.holmes -
5 Apr 2006 10:21 AM - 2 messages
Hi I have a user control which is made up of an Infragistics web date chooser and a text box. What I would like to do is validate the date selected in the web date chooser using a required field validator and also a range validator control. ...
RE: Checkbox data binding on Checked property
Phillip Williams -
4 Apr 2006 11:07 PM - 4 messages
I tend to believe that you cannot do a 2-way databinding where you have to change the field values from one type to another. I would have replaced it with one-way Eval("ColumnName")=="Y" and then consumed the GridView.RowUpdated event or the FormView.ItemUpdated event to ...
Accessing FormView template controls
Arturo Buonanni -
4 Apr 2006 9:35 PM - 5 messages
Hello, I've a question about how to access FormView template controls. I've some dropdownlist controls in the EditItem template of a FormView control. These dropdownlist controls are populated by database table and the dropdownlist's SelectedValue property is bound to fields in ...
clicked event never fires
chambersdon -
4 Apr 2006 2:37 PM - 5 messages
I have a webControl that extends the dataGrid with a button added. When this butotn is clicked I don't get the clicked event. I've removed almost all the code and I'm down to a very basic example. ...
Atlas UpdatePanel with Webparts
Prashant Majhwar -
4 Apr 2006 1:40 PM - 3 messages
<atlas:UpdatePanel ID="UpdatePanel1" runat="server"> <contenttemplate> <-------webpartcontro------l> </contenttemplate> </atlas:UpdatePanel> My webpart contains a dropdown list and linkbuttons. Dropdown list becomes ...
interactive Pivot-tables with OWC11
Jens Hofmeier -
4 Apr 2006 11:10 AM - 2 messages
Hello, is it possible to display a interactive pivot table with asp.net using OWC/Pivot control where the user can play with the date, e.g. group data, swap columns and rows etc. This is no problem when using the owc in an ...
events inheritance
Arturo Buonanni -
4 Apr 2006 9:25 AM - 3 messages
Hello, I'm writing a web app in wich I'm using some Web User Controls. Now I want these controls to have some basic properties so I've defined my own class that inherits from System.Web.UI.UserControl, defined some ...
"Cannot have multiple items selected in a DropDownList" Error
Vi -
3 Apr 2006 11:04 PM - 12 messages
Hi, I'm getting the error "Cannot have multiple items selected in a DropDownList" when I'm trying to select a specific value in a System.Web.UI.WebControls.DropDownList by using the code: ddl.SelectedValue = "3"; I'm not setting it to any other value anywhere in the code. All I'm doing ...
edit attribute values of a web control just before control rendered to the page (control's Load even
TJ -
3 Apr 2006 8:02 PM - 5 messages
I am using a third party web control that doesn't let me access to the control's attributes. This is a rookie question, but is there way to essentially look at, find/replace a control's attributes just before it gets ...
Problems Updating GridView when bound to datatable
john -
3 Apr 2006 7:20 PM - 3 messages
I am having problem updating when GridView is bound to datatable. Can enter edit mode fine but when I extract new and old values they are the same (ie. the old and new values are exactly the same!!!) any help would be greatly appreciated. ...
<<< Connection Problem with SQL Server + C#.Net on Local Area Network >>>
gndzkdr@gmail.com -
3 Apr 2006 7:12 PM - 2 messages
hi all, i m new on Sql and i have a project related to C# and Sql. i have to do a project which must work on LAN, and there must be only one database file on main computer(Server Computer) and other ...
Problems with dynamically created GridView/DetailsView
Martin Simard -
3 Apr 2006 6:48 PM - 4 messages
Hello there, I have some problems when trying to create dynamically (in code behind) a GridView and DetailsView. Both datasources of the controls are ObjectDataSource objects. First problem, when I run my page I got the following error when I click the ...
How to get ListItemValue and ListItemText from a Combo using SendMessage
ME -
3 Apr 2006 6:41 PM - 8 messages
I am new to interop services as well as the Windows API in general. What is the proper way to obtain the ListItemValue and the ListItemText using the windows API? I would like to be able to read a combo's list values from a ...
Rendering a Treeview Control
lumazi -
3 Apr 2006 6:17 PM - 5 messages
Everyone, I'm having a bit of trouble with the Treeview control. Here's the section of code I'm working with ... StringBuilder defectCodeTreeSB = new StringBuilder(); TreeView defectCodeTreeView = new TreeView(); StringWriter defectCodeTreeSW = new StringWriter(defectCodeTreeSB); HtmlTextWriter defectCodeTreeHW = new HtmlTextWriter(defectCodeTreeSW); ...
DataGrid item dropdownlist javascript disable
bnlockwood -
2 Apr 2006 7:58 PM - 2 messages
Hello all,. I have a datagrid and one of the columns has a static dropdownlist which means each column has the exact same dropdownlist. On the c# side values are pulled from the database and depending on the value ...
Removing columns from Gridview(2.0) databinding on templatefileds dont work?
Maarten -
2 Apr 2006 1:51 PM - 8 messages
Hi, I have a gridview (2.0), in the page load I remove a couple of columns from the gridview which I dont need. (All the columns are databound) This works fine. But after a postback all the templatefields are not bind ...
|
|||||||||||||||||||||||