I am having great difficulty in this bootstrap....after changing things here and there, I am now lost with this page that is not rendering as the appearance should be.
I hope someone can tell me how to make the part from Create PMT all the way appear outside the header and the sidebar. Tks.
Dear you seems to be missing container div (<div class="container"></div>) which should covered all div with "row class" and it keeps your layout under a fixed width
Basically, I wanted the side bar not to stretch all the way across the page. It should be a vertical side bar with enough for me to insert my menu from database.
Anyway, here's the css code which I hope with this, someone can tell me the way to rectify thing.
I am having great difficulty in this bootstrap....after changing things here and there, I am now lost with this page that is not rendering as the appearance should be.
I hope someone can tell me how to make the part from Create PMT all the way appear outside the header and the sidebar. Tks.
According to your description, I have written a test demo on my computer.
I couldn't reproduce your issue now.
But I found you set form tag inside the form tag, this will throw the "A page can have only one server-side Form tag." error.
I suggest you could delete the form tag in your content page.
Since I don't have all your code like " <% generateMenu(); %>" , so I couldn't totally reproduce your error.
Could you please post a screen image of your page?
If you could post more relevant information, it will be more easily for us to help you find the solution.
Best Regards,
Brando
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
The information I have provided is more than enough for a person who is experienced to tell me how to do it. I presume you are not into bootstrap.
As my previous post says, I need to firstly reproduce your error, then I could find the solution to help you fix the layout.
I have already imported the bootstrap in my test demo.
The result in my computer is like below image:
Note: Since your content page code missed some </div>, I guess I don't reproduce your error.
So I ask for a more details information.
Image:
Best Regards,
Brando
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
You got the right layout. But, how on earth did you do it ?
Be'cos no matter how I tried, my computer is not generating the layout you have displayed here.
And be'cos this company is not allowing me to see the image or upload image and I can only see it here using my house computer.
So, I would really appreciate it if you could let me know what is the thing you have corrected in my posted code in order to get the layout that you did here.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Control 'ContentPlaceHolder1_txtReason' of type 'TextBox' must be placed inside a form tag with runat=server.]
As far as I know, this error means the content page's txtReason textbox not in the form tag.
I suggest you could recheck your master page's codes to make sure the ContentPlaceHolder is inside the form tag.
Best Regards,
Brando
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
31 Points
251 Posts
Please help me with this Bootstrap layout...
Dec 08, 2016 07:02 AM|tangara|LINK
I am having great difficulty in this bootstrap....after changing things here and there, I am now lost with this page that is not rendering as the appearance should be.
I hope someone can tell me how to make the part from Create PMT all the way appear outside the header and the sidebar. Tks.
My master page is
And my form.aspx is
Member
260 Points
138 Posts
Re: Please help me with this Bootstrap layout...
Dec 08, 2016 08:15 PM|mohtshm|LINK
Dear you seems to be missing container div (<div class="container"></div>) which should covered all div with "row class" and it keeps your layout under a fixed width
https://pk.linkedin.com/in/mohtishamzubair
Member
31 Points
251 Posts
Re: Please help me with this Bootstrap layout...
Dec 09, 2016 02:06 AM|tangara|LINK
Hi,
I've added in like this but it still just rendered the way I wanted.
Basically, I wanted the side bar not to stretch all the way across the page. It should be a vertical side bar with enough for me to insert my menu from database.
Anyway, here's the css code which I hope with this, someone can tell me the way to rectify thing.
Star
9831 Points
3120 Posts
Re: Please help me with this Bootstrap layout...
Dec 09, 2016 10:04 AM|Brando ZWZ|LINK
Hi tangara,
According to your description, I have written a test demo on my computer.
I couldn't reproduce your issue now.
But I found you set form tag inside the form tag, this will throw the "A page can have only one server-side Form tag." error.
I suggest you could delete the form tag in your content page.
Since I don't have all your code like " <% generateMenu(); %>" , so I couldn't totally reproduce your error.
Could you please post a screen image of your page?
If you could post more relevant information, it will be more easily for us to help you find the solution.
Best Regards,
Brando
Member
31 Points
251 Posts
Re: Please help me with this Bootstrap layout...
Dec 11, 2016 05:24 AM|tangara|LINK
Hi Brando,
The information I have provided is more than enough for a person who is experienced to tell me how to do it. I presume you are not into bootstrap.
Why I know ?
Cos I manged to fix the problem earlier but of course now I forgot cos I duno about Bootstrap at all.
The generate Menu has nothing to do with the layout. Trust me.
Star
9831 Points
3120 Posts
Re: Please help me with this Bootstrap layout...
Dec 11, 2016 01:51 PM|Brando ZWZ|LINK
Hi tangara,
As my previous post says, I need to firstly reproduce your error, then I could find the solution to help you fix the layout.
I have already imported the bootstrap in my test demo.
The result in my computer is like below image:
Note: Since your content page code missed some </div>, I guess I don't reproduce your error.
So I ask for a more details information.
Image:
Best Regards,
Brando
Member
31 Points
251 Posts
Re: Please help me with this Bootstrap layout...
Dec 11, 2016 02:04 PM|tangara|LINK
Hi Brando,
You got the right layout. But, how on earth did you do it ?
Be'cos no matter how I tried, my computer is not generating the layout you have displayed here.
And be'cos this company is not allowing me to see the image or upload image and I can only see it here using my house computer.
So, I would really appreciate it if you could let me know what is the thing you have corrected in my posted code in order to get the layout that you did here.
I'll check back with my hp and thanks.
Star
9831 Points
3120 Posts
Re: Please help me with this Bootstrap layout...
Dec 12, 2016 11:21 AM|Brando ZWZ|LINK
Hi tangara,
I just add all your code in my computer just delete the form tag in the content page.
More details about my test demo code, you could refer to follow codes:
Master Page:
Content Page:
Best Regards,
Brando
Member
31 Points
251 Posts
Re: Please help me with this Bootstrap layout...
Dec 14, 2016 04:07 AM|tangara|LINK
Hi Brando,
I copied your code wholesale save for the css portion but I am still getting the following error.
Star
9831 Points
3120 Posts
Re: Please help me with this Bootstrap layout...
Dec 15, 2016 07:31 AM|Brando ZWZ|LINK
Hi tangara,
As far as I know, this error means the content page's txtReason textbox not in the form tag.
I suggest you could recheck your master page's codes to make sure the ContentPlaceHolder is inside the form tag.
Best Regards,
Brando
Member
31 Points
251 Posts
Re: Please help me with this Bootstrap layout...
Dec 16, 2016 02:53 AM|tangara|LINK
Tks Brando. I managed to resolve the issue. I think the lethargy sank in me...being new in programming....Once again, thank you so much for helping.