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

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

draw vertical line

Posted By:      Posted Date: October 17, 2010    Points: 0   Category :ASP.Net

how can I draw a vertical line in ASP.NET betwwn two as:TableCell to occupy 100% height?

View Complete Post

More Related Resource Links

gridview vertical line not coming

hi all, i have an Grdiview within that two table is there, one is for header another is for body section, now the horizontal line  is coming on the gridview but vertical line is not coming, below is my code <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"                             CellSpacing="1"  CellPadding="0" AllowPaging="True" PageSize="200"                             CssClass="searchResult" OnRowCommand="GridView1_RowCommand"                             OnRowDataBound="GridView1_RowDataBound"> <HeaderStyle CssClass="searchResultHeader" HorizontalAlign="Center"/><RowStyle BackColor="#ecf5ff" ForeColor="#333" Font-Size="11px" Height="30px"/>                     &n

Add a vertical Line somewhere in the middle of line chart ?

Hello, We have a line chart in SSRS 2005 with dates across the x-axis and dollar amounts on the y-axis for three different series. The dates run from the past through the future and we need a vertical line drawn at the current date from the x-axis to the top of the chart so the users can easily see where the data lines cross the current date. For the life of me I can't figure out how to create this line. The closest I have been able to achieve is moving the y-axis "cross at" property to the current date, which moves the y-axis labels to the current date, but no line appears.  I believe in SSRS 2008 I could programmatically position a vertical line image in the graph, but the documentation seems to indicate this cannot be achieved in SSRS 2005 charts, only other report items. Any ideas how I can add a single vertical line to the chart at a specific position am I missing something simple ? Thanks, Mark

strange black vertical line

Hi all,I have link : http://ie9.vn/men/men.htmlmy layout include 3 part:left,center,rightcenter => file flash :Now it appears black vertical line in border of flash.I dont' undertand what cause of problem.Anyone help me ?Thank you very much.

Draw text on screen, one line and then next (GDI+)


I want to draw some lines on screen, one line and then next, just likes you see the subtitle of a movie.

but they overlaped, and I just get a black rect in the end.

It is not repainted between every drawing, so i want to know how to force to repaint.

It is to screen, not form. thx.


private void Show(string line)
  IntPtr desk = GetDesktopWindow();
  IntPtr hdc = GetDCEx(desk, IntPtr.Zero, 1027);
  //RedrawWindow(desk, Rectangle.Empty, IntPtr.Zero, 0x85);
  Graphics g = Graphics.FromHdc(hdc);
  g.DrawString(line, this.Font, new SolidBrush(forecolor), new PointF(Screen.GetWorkingArea(this).Width - 500,
  Screen.GetWorkingArea(this).Height - 60));

WPF: what control we should use if we need draw a line between to textBlock?


We need draw a line between two textBlocks.

The two textblocks position will change base on the given space.

So we hope the line width will automatically change base on two textblocks position.

We use Path, however, when the textblock positions change, the path will off (not connect to) two textblocks.

What control we should use in this case? thx!


Draw lines excactly on physical device pixels

When you draw a line in WPF you will experience that they often appear blurry. The reason for this is the antialiasing system that spreads the line over multiple pixels if it doesn't align with physical device pixels.

Draw Graphs in .net application

JavaScripts in .Net
Simple Logic to Limit number of login attempts
Security in Urls in .net application

Article commenting by line number


I'm wondering what's the best way to approach an online article system that allows users to comment by clicking on the line they are commenting about? Essentially the same way Adobe Acrobat works with comments where you can click anywhere and the text is saved for that location.

I'm assuming a mix of jQuery would be the crux of the interface. The system would need to save comments so that when another user logs in, they will also see the other comments but they can´t edit them - only add their own.

Any suggestions would be great.

New off line application working with sdf file. Need advice


Hey Folks

I am working on a project currently where I need to get data out of a 3rd party vendor's software that uses a .sdf file I looked this up and its a SQL CE file. I was hoping to just link to with with access but thats apparently not going to happen. I need to link to the database extract data from it to a csv file for later use. I also and most important I need to get the data from it and create a report that can be printed while on a customers site that my or may not have web access so I need for this program to be on and off line. I had my webapplication that I have been working on open and was able to bring up the sdf file under the server exploere however I can't seem to get anything out of it when I try to do grid views or detail views errors out.

Can I use one of Visual Studio projects to create this sort of applicaiton if so what would be the best approach. I would love to get an access odbc driver since office is allready installed on the employee's laptop's



Line Break Problem in XSLT


Hi All,

I want to add line break in the xslt but it not working.

Below is the code for adding the line break.

</P> <P>
&lt;xsl:variable name="Collection7"&gt;</P> <P>&nbsp; &lt;xsl:value-of select="$13932"/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;</P> <P>&nbsp; &lt;xsl:value-of select="$31042"/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;</P> <P>&lt;/xsl:variable&gt;</P> <P>&lt;td&gt;&lt;xsl:value-of select="$Collection7"/&gt;&lt;/td&gt; </P> <P>&lt;/code]</P> <P>I have tried the below code as well:</P> <P>&lt;xsl:variable name="newline"&gt;
&lt;/xsl:variable&gt;</P> <P>or</P> <P>&lt;xsl:variable name="break"&gt;&amp;lt;br&amp;gt;&lt;/xsl:variable&gt;</P> <P>or </P> <P>addign &lt;br/&gt;</P> <P>then also it not adding the line break.</P> <P>But If I write code like below then it is adding the line break and it works fine.</P> <P>

crystal report -visual studio 2008 dual axis chart (bar & line)


dear all, 

i use crystal report integrated with  vs.2008, and i want to make chart with dual axis (bar & line).

i have used bar chart and input the data with 2 values..

then in chart options > template, i activated the dual axis..

my question is, how i can change the 2nd value with line chart not bar chart??

i'd tried to find the right settings in "chart options" but still can't find the solution.

for information in "chart options" there are 4 sub menu : template, general,titles,grid..

i read in a tutorial there's more sub menu called "series" in crystal report (stand alone version)..

is it possible doing it in Crystal Report VS. 2008?

please,, i need your advice and solution..

Thanx before..


Extreme UI: Line Charts with Data Templates


Charles Petzold continues his investigation into robust XAML coding made possible by Windows Presentation Foundation, this time tackling the complicated process of creating line charts.

Charles Petzold

MSDN Magazine January 2010

Silverlight: Build Line-Of-Business Enterprise Apps With Silverlight, Part 2


Here we wrap up the call center client application we began last month. The techniques we illustrate will help you build real-world enterprise solutions using Silverlight.

Hanu Kommalapati

MSDN Magazine February 2009

Silverlight: Build Line-Of-Business Enterprise Apps With Silverlight, Part 1


Take a walk through the creation of a call center client application to learn how to build real-world enterprise solutions using Silverlight.

Hanu Kommalapati

MSDN Magazine January 2009

Write On!: Create Web Apps You Can Draw On with Silverlight 2


We build a Silverlight 2.0 application using the InkPresenter to let users annotate a pre-defined collection of images, perform handwriting recognition, and save the annotations and recognized text into a server-side database.

Julia Lerman

MSDN Magazine August 2008

Add an empty line in Gridview on specific dayofweek


Hey all,

Havin quite a bit of trouble with this one.  I have a bunch of days that I worked in my database...mostly monday-friday and some saturdays.  What I want the gridview to do is add an empty line between each sunday and monday so that it seperates out my work weeks and makes it easier to read in the gridview.  I got some help here a few days ago on how to clone the db etc and I have all that working properly but I can't seem to wrap my head around how to do add these empty lines in the proper spots.  Here is my code so far:

private DataTable AddEmptyRow()
        DataTable originalDataTable = GetItems();
        DataTable newDataTable = originalDataTable.Clone();
        DateTime testdate = Convert.ToDateTime("7/20/2010");

            for (int i = 0; i < originalDataTable.Rows.Count; i++)
                DayOfWeek day = testdate.DayOfWeek;

                if (day == DayOfWeek.Sunday)
                    DataRow newDataRow = newDataTable.NewRow();



Autoscroll down to a specific line on the webpage



I wonder about how this autoscroll is working on a page. For example when entering a page that I have set up named "test.aspx",

I want to 'autoscroll' down to a specific textrow that I have so that textrow exactly will be on the very top of the browser window.


I wonder how you do this task? Thanks! 

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