Mar 14th, 2005, 04:20 PM
#1
PageLayout [Resolved]
What is the better choice for PageLayout? FlowLayout or GridLayout?
Last edited by RobDog888; Mar 15th, 2005 at 09:40 PM .
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 14th, 2005, 09:25 PM
#2
Re: PageLayout
Flow layout. Don't ever use the Grid Layout.
Mar 14th, 2005, 09:32 PM
#3
Re: PageLayout
Thanks, is that because of the absolute positioning of GridLayout?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 14th, 2005, 11:19 PM
#4
Re: PageLayout
Yes, that's the reason. With flow layout, you'll be placing your elements in tables and aligning them yourself. You'll have less problems and it's also more appropriate to be doing it that way.
Mar 15th, 2005, 12:58 AM
#5
Re: PageLayout
Ok, thats what I thought. Thanks for taking the time to answer my question
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 01:00 AM
#6
Re: PageLayout
My pleasure... any excuse to prevent me from working.
Mar 15th, 2005, 02:51 PM
#7
Re: PageLayout
I just use:
Tags, with so layout specified, which means flow layout.
Think the default that .NET adds is:
Code:
<body MS_POSITIONING="GridLayout">
I don't know much about HTML, well not compared to people on here anyways. But it's easy to see that using the ASP.NET web form designer is OK, but only to a certain extent.
Learning HTML and the ASP.NET tags means you can design the form exactly how you want, without the .NET designer adding in properties automatically for you which you don't want.
This is completely the opposite from Win32 apps, since you would use the designer, and would never dream of editting the forms file directly in notepad.
Woka
Mar 15th, 2005, 03:21 PM
#8
Re: PageLayout
I used to use Front Page to generate all my tables and controls. Then I would go into the html
and delete all the crap that M$ would add in there. It would make nested tables easier to
create and thats about all.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 03:38 PM
#9
Re: PageLayout
Bit like the .NET designer
Here's the code for a simple login page:
[CODE]
<body>
<form id="Form1" method="post" runat="server">
<table width="100%" height="100%">
<tr valign="middle">
<td align="center">
<table>
<tr>
<td>
Username
</td>
<td>
<asp:TextBox id="txtUsername" runat="server" Width="150px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
<asp:TextBox id="txtPassword" Width="150" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2" align="right"> <asp:Button id="btnLogin" runat="server" Text="Login"></asp:Button>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
[CODE]
Then in the code behind page you have:
Code:
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
Dim Username As String = txtUsername.Text.Trim
Dim Password As String = txtPassword.Text.Trim
'code to login here
End Sub
Am sorry if you know all this.
Not sure of your level at ASP.NET
Slap me if I am insulting you. Haha
Woka
Mar 15th, 2005, 03:47 PM
#10
Re: PageLayout
I dont mind starting at the begining that way I know Im on the right page. Can I slap you anyways Jk.
How do I get the dumb editor to stop autocompleting the code tags for me! I
cant paste your code in it keeps changing the cheverons to unicode or ?
Ps, I think these last tow posts go to my other thread?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 04:21 PM
#11
Re: PageLayout
Thanks Woka, but how do I make the logins integrated?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 05:07 PM
#12
Re: PageLayout
Originally Posted by
RobDog888
Thanks Woka, but how do I make the logins integrated?
Errr...care to explain???
Woka
Mar 15th, 2005, 05:20 PM
#13
Re: PageLayout
I want to make it a login page to my compnay's network. So I figured I could make it like Outlook Web Access
where you login into the domain using your Windows domain\username and password.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 05:31 PM
#14
Re: PageLayout
Originally Posted by
RobDog888
I want to make it a login page to my compnay's network. So I figured I could make it like Outlook Web Access
where you login into the domain using your Windows domain\username and password.
Errrr...
Can you post a screen shot?
oka
Mar 15th, 2005, 05:48 PM
#15
Re: PageLayout
Attached Images
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 06:11 PM
#16
Re: PageLayout
OK...Here's what I have got. Quick demo for you.
Attached to the zip is the aspx code for the page, the HTML.
Copy this into your page.
In the folder where your app is, copy the Resources folder from the zip.
Hope this helps.
Will add the options buttons now.
Woka
Attached Files
Mar 15th, 2005, 06:22 PM
#17
Re: PageLayout
No need for the option buttons. I just need to figure out how to authenticate the login with the
windows domain/username and password.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 06:38 PM
#18
Mar 15th, 2005, 06:46 PM
#19
Re: PageLayout
Copyright infringement! Here comes M$
Thanks for your help!
How can we get the passwrod textbox to display the password chars?
Ps, I am finally on msn Did you read my last pm?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 06:59 PM
#20
Re: PageLayout
Here's a link for nt authentication.
http://www.vbforums.com/showthread.p...ticate+nt+user
Haven't tested it, as I don't have a domian set up at the moment.
Woka
Mar 15th, 2005, 07:01 PM
#21
Re: PageLayout
Code:
<asp:TextBox id="txtPassword" width="100%" runat="Server" TextMode="Password"></asp:TextBox>
Use the textmode property.
Woka
Mar 15th, 2005, 07:23 PM
#22
Re: PageLayout
What on earth are you doing? Just set the allow anonymous access setting in IIS to false, and they'll be prompted for their windows username/password.
You can then work from there using System.Environment.Username.
Mar 15th, 2005, 07:26 PM
#23
Re: PageLayout
Yes you can...
But it's not very "pretty" is it. A huge ugly popup message box...Hmmmm.
Bad Mendhak *slap*
I would MUCH MUCH prefer a decent login screen, similar to above, instead of the auto popup windows authentication message box.
Woka
Mar 15th, 2005, 07:28 PM
#24
Re: PageLayout
I wouldn't.
Mar 15th, 2005, 07:31 PM
#25
Re: PageLayout
Explain why...?
Is it due to security issues or anything of that nature, is it because you actual prefer the popup message box, or is it because you're too lazy to search for the code and create a nice login screen?
Woka
Mar 15th, 2005, 07:37 PM
#26
Re: PageLayout
The login work's been done for me there. I don't need to put in some extra efforts just because it may look nicer. I can allow and deny certain users right from Windows itself instead of taking care of that in a say, DB/web.config.
Mar 15th, 2005, 07:42 PM
#27
Re: PageLayout
So there is no simple way to use a custom login screen and allow windows to do the authentication?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 07:53 PM
#28
Re: PageLayout
Originally Posted by
mendhak
I can allow and deny certain users right from Windows itself instead of taking care of that in a say, DB/web.config.
Did you look at the code?
It validates the login against the domain server...so it does exactly what your windows login script does.
I think you have more control this way.
Woka
Mar 15th, 2005, 09:28 PM
#29
Re: PageLayout
I missed that link somehow
That code is exactly what I wanted to know! It is exactly the same as the default popup login window?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 15th, 2005, 09:28 PM
#30
Re: PageLayout
Originally Posted by
Wokawidget
Did you look at the code?
It validates the login against the domain server...so it does exactly what your windows login script does.
I think you have more control this way.
Woka
Nope, didn't look at it. Assumed it was a login control like the screenshot. You can prefer your way, they're both apparently the same thing.
Mar 15th, 2005, 09:40 PM
#31
Re: PageLayout
Cool! I feel better using it now since I dont want to let just anybody into my domain!
Thanks Woka & FrogMan
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width