Click here to Skip to main content
16,005,038 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Answerthere is the help Pin
Shuaib wasif khan11-Apr-07 1:11
Shuaib wasif khan11-Apr-07 1:11 
Questionweb service setup, getting user information on installing [v-urgent] Pin
steve_rm11-Apr-07 0:07
steve_rm11-Apr-07 0:07 
QuestionInclude image in hyperlink [modified] Pin
netDeveloper11-Apr-07 0:07
netDeveloper11-Apr-07 0:07 
AnswerRe: Include image in hyperlink [modified] Pin
thomasa11-Apr-07 2:06
thomasa11-Apr-07 2:06 
GeneralRe: Include image in hyperlink Pin
netDeveloper11-Apr-07 3:05
netDeveloper11-Apr-07 3:05 
GeneralRe: Include image in hyperlink Pin
thomasa11-Apr-07 3:40
thomasa11-Apr-07 3:40 
Questiononly one line in datagrid cell Pin
haytham_mohammad10-Apr-07 23:47
haytham_mohammad10-Apr-07 23:47 
AnswerRe: only one line in datagrid cell Pin
thomasa11-Apr-07 4:07
thomasa11-Apr-07 4:07 
Hers a custom control you can use:
<br />
using System;<br />
using System.Web.UI.WebControls;<br />
<br />
namespace My.Controls{<br />
<br />
	public class TruncLabel :Label	{<br />
		public TruncLabel() : base (){}<br />
<br />
		protected override void Render(System.Web.UI.HtmlTextWriter writer){<br />
			this.CssClass="fxS";<br />
			this.ToolTip = this.Text;<br />
			base.Render(writer);<br />
		}<br />
	}<br />
}<br />


Your stylesheet should then contain the following:
<br />
.fxS<br />
{<br />
 overflow:hidden;<br />
 white-space:nowrap;<br />
 overflow-clip:rect(auto, auto, auto, auto);<br />
}<br />


The page containing the datagrid
<br />
<%@ Register TagPrefix="mi" Namespace="My.Controls" Assembly="MyProjectOrSomething" %><br />
.<br />
.<br />
asp:datagrid id="myDataGrid" runat="server" CssClass="grid" GridLines="None" AutoGenerateColumns="False"><br />
Columns><br />
	asp:TemplateColumn HeaderText="Name" ItemStyle-VerticalAlign="Top"><br />
	ItemTemplate><br />
		mi:TruncLabel id="tlblName" Font-Bold="True" runat="server"><br />
			<%#DataBinder.Eval(Container.DataItem, "strCompanyName").ToString()%><br />
		mi:TruncLabel><br />
	ItemTemplate><br />
	asp:TemplateColumn><br />
Columns><br />

GeneralRe: only one line in datagrid cell Pin
haytham_mohammad11-Apr-07 4:16
haytham_mohammad11-Apr-07 4:16 
Questionpopulate dropdownlist box Pin
monuSaini10-Apr-07 23:40
monuSaini10-Apr-07 23:40 
AnswerRe: populate dropdownlist box Pin
enjoycrack10-Apr-07 23:43
enjoycrack10-Apr-07 23:43 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 0:45
monuSaini11-Apr-07 0:45 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 0:49
enjoycrack11-Apr-07 0:49 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 0:59
monuSaini11-Apr-07 0:59 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 1:07
enjoycrack11-Apr-07 1:07 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 1:12
monuSaini11-Apr-07 1:12 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 1:19
enjoycrack11-Apr-07 1:19 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 3:12
monuSaini11-Apr-07 3:12 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 4:39
enjoycrack11-Apr-07 4:39 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 4:45
monuSaini11-Apr-07 4:45 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 4:51
enjoycrack11-Apr-07 4:51 
QuestionSet Password Default Value in LoginView Pin
Abubakarsb10-Apr-07 23:28
Abubakarsb10-Apr-07 23:28 
AnswerRe: Set Password Default Value in LoginView Pin
enjoycrack10-Apr-07 23:42
enjoycrack10-Apr-07 23:42 
GeneralRe: Set Password Default Value in LoginView Pin
Abubakarsb11-Apr-07 0:11
Abubakarsb11-Apr-07 0:11 
QuestionAdult website with ASP.NET Pin
Bulky Fellow10-Apr-07 23:15
Bulky Fellow10-Apr-07 23:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.