.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

2 questions about Up Down Control for LED Display.

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :JQuery

I'm creating my first control and got a start from Inder Gujral. What I have so far is THIS  and still not what I want.

Question # 1 The button heights together should be same height as the LED display with the bottom of the top button lined up with the top of the lower button. Whether I use stackpanel or grid I can't figure that out.  XAML is below and a Solution with a MainWindow.xaml that displays the UserControl.

Question # 2 is related to refactoring the code to take all the code out of the code behind and put in Model and View Model and access the View Model Increase/Decrease directly from the XAML.  I may post that as a follow up since that is asking alot of one post!!!!

This could be a useful control using the nice looking Teroid LED display however for others working with instrumentation. T

View Complete Post

More Related Resource Links

Passing Primary Key to User Control to Display Record Detail


I'm building a user control to display detail information on a parent record. The user control will be displayed via an Ajax Modal Popup. The user control works and is displayed when expected. The problem that I'm having is that I'm not able to pass in the primary key for the parent. The control is displayed via the _ItemCommand event of a Repeater. In the markup for the user control, I explicity set the ContactId to 0 to avoid an error when the control loads (its still underdevelopment, eventually that I'll check if the value is valid).

I was assuming that I could change the property in the _ItemCommand event, but obviously its not working.

In the Page_Load event this code successfully sets the ContactId property of the control. The _ItemCommand event appears to set the value. However when I set a test label on the user control to the Me.ContactId, its showing '0' as if it was never passed in.

        UserControlContactDetail.ContactId = "1462"
        test.Text = UserControlContactDetail.ContactId

    Protected Sub RepeaterDirectory_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles RepeaterDirectory.ItemCommand

Protected Sub RepeaterDirectory_ItemCommand(By

Microsoft Report Viewer control to display data on one page


Hello everyone,

I am wondering if the Microsoft Report Viewer control allows for display changes.  Say for instance a user wants would like to see all the data requested then another time would like to toggle thru the pages of infomation.  So does anyone know if the control allows for display changes from complete view to paginated viewing.  I am using MS VS 2008 with ASP.NET 3.0.  Thanks for your response.


Microsoft ListView Control 6.0 cannot correctly display multibyte characters when running on a 64 bi

With all the regional settings set to Russian and the OS being Russion the ListView Control 6.0 does not display the column headers correctly on the Windows Server 2008 64 bit OS. If we switch to using Microsoft ListView Control, version 5 the columns (text strings) are displayed correctly. I am concerned that using an earlier version is going to cause problems. Is there a better solution other than using version 5? Thanks!

few questions about fileupload control

hey im currently using this to save pictures to a certin folderImgUpload.SaveAs(Server.MapPath("../Img/") + ImgUpload.FileName); my questions is 1. how do i avoid rewriting an image, in other words how do i check if there is another file using the same name? 2. how do i iterate on each image in the folder so that i can print certin html code for each img like for each image print this -> (<img src="Image_Path/Image-name.jpg/gif" width="?" height="?">   tnx

A reportviewer control bug to display unicode?

  1 Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + ASP.Net + IIS 7.0 with reportviewer control. The report created by reportviewer control is very simple, just a single line of Chinese characters (I wrote the line of characters statically in a textbox control, no addtional dynamically generating or fetching from database). I upload the error PDF file exported by the report viewer and screen snapshot here, and my most confusion is why the exported PDF file is just 2k bytes size? Is this issue caused by font not embedded in PDF file? Actually I did not find how to embed font in PDF file. Appreciate if anyone could give me some good ideas. This is the error PDF displayed screen snapshot, http://www.4shared.com/photo/gs_KvxSW/characterissue.html This is the error PDF itself, http://www.4shared.com/document/4Fs5rCH_/characterissue.html thanks in advance, George

Calender control to display dates of one month only

How to make calender control to display dates of one month only like for month of June it shows 25 to 31 of May and 1 to 5 of July. like this-   25 26 27 28 29 30 31 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 2 3 4 5   I want it to be displayed like this- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30   Any ideas

Display a Web User Control in the Web Browser control of WinForms

Does anyone have an example of how to do this, or can you point me to a good tutorial that explains how to do this? Thanks

Tab Control won't display


I put a tab control on a page but it doesn't show up.  I viewed the source of the page and it shows the markup of the control but the visibility style is set to hidden.  I set the control Enabled and Visible properties to true but still doesn't display.  I'm sure I'm missing something simple and obvious but I can't figure out what it is.  

Display N-Heirarchical Menus Using Dynamic Repeater Control


I want to Display N-Heirarchical Menu using Dynamic Repeater Control along with CheckBoxes.

If Suppose i am having 3 level Menus i need to create 3 Repeaters Dynamically along with CheckBoxes beside of that sub Menus

display image in asp.net image control from image path


I know how to display an image in gridview from image path in database. Now, I want to display an image in an asp.net image control from image path in database. Can anyone point me to a tutorial? I haven't been able to find one that explains how to do it when I don't know what the image path will be. The images are in the root folder. Thanks in advance!

Listbox control display property


Iam using vb.net 2.0. I have implimented  Autocomplete textbox using  textbox and listbox.These are part of grid view controls. 

If i enter data in 1st row textbox the suggestions listbox  box it is coming in between the 1 st and 2nd row of grid.So alignment is getting disturbed. How can i display the suggestions list box over the second row of grid.

I have tried chaging the display property of listbox..but no change in display..i think some other property is obveriding this.


Please help me in this.

Thanks in Advance,


MS Chart Control ( Does not display all labels in X Axis - Column Chart )



I am facing one problem while using MS Chart Control.. In Column Chart When i am finding minimum no of records chart displays properly.

But When i finding more than 20 records, in X Axis records display randomly(i have 20 records, chart is coming but x axis labels does not appear for all 20.it display 4 or 5 lables only) .. I increased the chart size also. Still it is happeing...

Any one give me idea about to fix this problem..

Thanks in Advance.

want to open popup screen on button on user control and and display same user control on pop up


Hi i have page where i am calling user control, on user control i want to give button when i click button same user control should appear on popup screen

but not able to do , here code






void Page_PreRender(object sender, EventArgs e)//some value set as hard coded






string defLayer = "1";//Build the params to be passed to gdd xaml file.







defLayer =


control to display information about image onmouseover thumbnail



How can we display information about an image onmouseover including large size, description etc.


Display rating control in xslt list view webpart without table header



In the same code, pasted above if I want to display rating control using xslt list view webpart what I need to write.

I have created few xslt list view webparts for my site but I am not able to display rating control using xslt. I am writing something like this

<xsl:apply-templates select="$Fields[@Name='AverageRating']" mode="PrintField">
              <xsl:with-param name="thisNode" select="."/>
              <xsl:with-param name="Position" select="$Position"/>

But for this I think i need to include some parameter or any particular template. Using the above type of code in xslt this is not working. I do not want to display table header row. Please guide me on this.


CQWP - how display rating control



My question is - how display a rating control in the CQWP? Is it supported?

or may be I need check the rating and draw stars in the cycle? But it will a fake and not clickable((

Thanks in advance for any help!

how to display xml file in gridview control



iam using asp.net 2.0 with c#.net with sql server


iam having table InvoicesDetail 


BranchKey int (4)
InvoiceNo  int (4)
SerialNo  int (4)
IDCode     nvarchar(15)

BarCode    nvarchar(50)
ItemKey    nvarchar(50)
ItemName    nvarchar(100)
UnitPrice   money(8)
Quantity    float(8)

DiscountPerc  money(8)
ItemPrice     money(8)

Rowguid       niqueidentifier(16)
BatchNo       nvarchar(50)
ExpiredDate    smalldatetime(4)
PSetNo          int(4)



and iam having the xml file


- <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend