control

C#.Net - RadioButton Control adapter and postback

I have a radio button control adaptor that attempts to render the radio button control with the CSS class as part of the input tag, rather than as a surrounding span. public class RadioButtonAdapter : WebControlAdapter { protected override void Render(HtmlTextWriter writer) { RadioButton targetControl = this.Control as R...

enable ribbon control

Menu Items and all other menus are not enabled` <r:RibbonWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" xmlns:Custom="http://schemas.microsoft.com/wpf/20...

In listview control make line like horizontal and vertical?

hi, how can draw line in listview control like horizontal and vertical? advance wishes.. ...

Make all sundays Red on month calendar in c#

Hi, i was wondering if anyone knows how to make all sundays on the .net month calendar have the back colour of red? ...

How to tell if a .Net control is visible using windbg

I got a crashdump where we're debating whether a control was visible to the end user or not. Looking with !do I can't see any explicit field that holds the true/false value matching up with the Visible property, which doesn't surprise that much as we're probably down in win32 teritory. Does anyone know how to deduce what Visible would ha...

WebBrowser control caching issue

Hi Friends, I'm using the WebBrowser control inside a Windows Form to display a PDF. Whenever the PDF is regenerated, however, the WebBrowser control only displays its local cached version and not the updated version from the server. I'm using the Refresh() method shown below to try and force the control to reload the PDF, but it does...

How to create a custom ASP.NET control with automatic validation

I am building an ASP web site that contains a large section that represents a database front end. I need to build forms to manipulate the database and obviously there would be much repitition i.t.o the type of input field and rules pertaining to the field. For example there are many tables where I have take on varchar(n) fields that coul...

Passing gridview values(data) to textbox fields... [C#]

Hello. For my view, In the page: 1) I have a gridview with the select hyperlink in it. The gridview data is from the SQLDataSource. 2) And, I also have a few textboxes (abt 5) - not in the gridview. What I would like to do is to use the select hyperlink to select the row that i want to edit. And when i click select, the data in the ro...

(C#) Does SuspendLayout cascade to child controls?

C#: Does SuspendLayout cascade to child controls? Do I have to iterate the child of the control myself to call suspendlayout on them? and on their grand child? grand grand child?? grand grand grand child? Thanks ...

Create ASP.NET ReportViewer in a child control in ASP.NET; Document Map button breaks

We are having a strange issue with the Visual Studio 2008 ReportViewer control. Specifically, when we have a child control on a page, and the child control itself hosts a report viewer, and the report has a document map, the postback on the show/hide document map button seems to be lost, so the document map never disappears. I played w...

Visual Basic Application Help

I want to make an application witch involves logging into google. It is basically a small application to always have your gmail with you without always having to go to the web browser and log in. Basically what I want to do is, when the person signs into their google account (or the page url changes) I want the webbrowser to refresh and ...

ASP MVC storing page states for later restoring

I have a fairly complex ASP MVC set of controls that set a data filter (account ID range, cost range, carrier, dates etc). This also creates a data table object with the standard result set type object. The user might wonder away from the page and then come back. I want to restore the previous filter control states and also pull the cur...

C# Mouse Right Click and Control Focus

I have a form which users can add controls to and when they right click it brings up a context menu which has an option to display the properties of the control they right clicked on. The problem I am having is trying to decide how to find out what control the user right clicks on since it could be any number of them and then giving tha...

Multipage Control in ASP.net MVC

I am working with asp.net mvc framework. In my application I want to have a master page and multiple child pages. All the child pages should load if any one page gets loaded. Say i have 4 child pages i want to have link 1 2 3 .. in the master page. If i click on any one link the related page must be immediately available with out reque...

C# Asp.Net User Control button click

In my code I load a user control (uc) in the page_load event. The uc contains a button which sets a label text to the textbox value. (lblTest.Text = txtText.Text) . This works fine in the load event of my page. But when I set the loading of the uc in my Init event, the label isn't set. When I set breakpoints, I see the button event is fi...

how to navigate application using MKMap View in Iphone?

Hi, In my iphone application i have used MK MapView to navigate from different pages. But when the MKMapView controll run at that time the the control is not going back again in the application.so i am loosing the application flow,and i have to run the application again. /* [[UIApplication sharedApplication] openURL:[NSURL URLWithStri...

ASP.NET Server Control based on RadComboBox - Postback issue

I am trying to create a custom control that extends the RadComboBox from Telerik to create a Dropdown Checkbox List with default templates. The plan is to use the control in several places so I wanted to consolidate all of the logic in one spot. However I am experiencing a couple of weird issues on postback. If you check a couple of i...

Access to DataTemplate Control of WPF Toolkit DataGridCell at Runtime, How?

I have a DataGrid defined with WPF Toolkit. The CellEditingTemplate of this DataGrid is associated at runtime with a custom function that build a FrameworkElementFactory element. Now I have to access to control that is inserted inside DataTemplate of CellEditingTempleta, but I do not know how to do. On web I found a useful ListView Hel...

At which point and how do rebind datalist inside usercontrol on button click?

I have a usercontrol (Imageselector.ascx) that consists of a datalist. The datalist's itemtemplate contains another usercontrol (selectoricon.ascx) that contains an imagebutton. In default.aspx page i include the Imageselector.ascx and populate its datalist from db with DataBind(). In the datalist's onItemdataBound event I populate the s...

null reference error in telerik Grid

I always get a null reference error ( "Object reference not set to an instance of an object.") when try to edit a row in telerik rad control in runtime. I use asp ajax version. Any help is really appreciated! ...