header row

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
dennisc
User
Posts: 5

header row

Post by dennisc »

Hello,

On our website, in the header row, we can see the latest person that made an account on the website with some info. On the right side we have a couple of buttons.

Now when the info gets too long it wil push the button down, it wil get divided in 2 lines.
Is there any way to keep this in just 1 line?

Thanks in advance.

Dennis


vincenthung
User
Posts: 88

Post by vincenthung »

Can you show the code of the header row ?


Danny
User
Posts: 139

Post by Danny »

@If IsLoggedIn() Then

@If (Werknemers_laatste_inschrijvingen Is Nothing) Then
Werknemers_laatste_inschrijvingen = New cWerknemers_laatste_inschrijvingen()
End If

Dim s0 = Werknemers_laatste_inschrijvingen.TableCaption.Replace("<br>", " ")

@<text>
$("div.ewHeaderRow").append("<div class='agenda'></div>").append("<div class='agendas'></div>");

@If ew_ExecuteScalar("SELECT UserLevelPermission FROM dbo.[UserLevelPermissions] WHERE UserLevelTableName like '%Werknemers_laatste_inschrijvingen' AND [UserLevelID]='" & CurrentUserLevel() & "'") <> 0 Then

@<text>

if (EW_LANGUAGE_ID == "en")
{
$("div.agenda")[0].innerHTML += "<a style='color: #FFFFFF; text-decoration: none; background: inherit' href='Werknemers_laatste_inschrijvingenlist.vbhtml' alt='@(Html.Raw(s0))' title='@(Html.Raw(s0))' target='_blank'><span class='Werknemerslaatsteinschrijvingen'>@(ew_ExecuteScalar("SELECT top 1 Overzicht_en FROM dbo.[Werknemers laatste inschrijvingen] WHERE [Kantoor]='" & CurrentUserID() & "'"))</span></a>"
{
$(".Werknemerslaatsteinschrijvingen").css({'font-weight': 'bold','color':'white','background-color':'inheret','font-family':'helvetica','font-size':'125%'});
}
}
</text>End If
$("div.agenda")[0].innerHTML += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
$("div.agenda")[0] += ($(".ewLanguageOption").removeClass('ewForm').addClass('agenda'));
</text>End If


vincenthung
User
Posts: 88

Post by vincenthung »

have you tried to remove the line of code to reduces the size of the text ?

e.g.
$("div.agenda")[0].innerHTML += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

Or can you limit the result of "Overzicht_en" by using Left() function ?

e.g.
@(Left(ew_ExecuteScalar("SELECT top 1 Overzicht_en FROM dbo.[Werknemers laatste inschrijvingen] WHERE [Kantoor]='" & CurrentUserID() & "'"),<Length>)) '*** replace the <Length>


Post Reply