What is the better choice for PageLayout? FlowLayout or GridLayout?
Printable View
What is the better choice for PageLayout? FlowLayout or GridLayout?
Flow layout. Don't ever use the Grid Layout.
Thanks, is that because of the absolute positioning of GridLayout?
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.
Ok, thats what I thought. Thanks for taking the time to answer my question :thumb:
My pleasure... any excuse to prevent me from working. :afrog:
I just use:
Tags, with so layout specified, which means flow layout.Code:<body>
</body>
Think the default that .NET adds is:
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.Code:<body MS_POSITIONING="GridLayout">
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
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. :D
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:
Am sorry if you know all this.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
Not sure of your level at ASP.NET :(
Slap me if I am insulting you. Haha
Woka
I dont mind starting at the begining that way I know Im on the right page. Can I slap you anyways :D 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 ? :mad:
Ps, I think these last tow posts go to my other thread?
Thanks Woka, but how do I make the logins integrated?
Errr...care to explain??? :confused:Quote:
Originally Posted by RobDog888
Woka
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...:confused:Quote:
Originally Posted by RobDog888
Can you post a screen shot?
oka
Boooo!
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
No need for the option buttons. I just need to figure out how to authenticate the login with the
windows domain/username and password.
I have now created this:
Woka
:lol: 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?
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
Use the textmode property.Code:<asp:TextBox id="txtPassword" width="100%" runat="Server" TextMode="Password"></asp:TextBox>
Woka
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.
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
I wouldn't. :)
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
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.
So there is no simple way to use a custom login screen and allow windows to do the authentication?
Did you look at the code?Quote:
Originally Posted by mendhak
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
I missed that link somehow :blush:
That code is exactly what I wanted to know! It is exactly the same as the default popup login window?
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.Quote:
Originally Posted by Wokawidget
Cool! I feel better using it now since I dont want to let just anybody into my domain!
Thanks Woka & FrogMan :thumb: