|
Hi,
I used a TreeView to display some data I have on a database and it's working fine.
One problem I noticed though, is that when I select a leaf node and pass its value to the following page, I am unable to browse my TreeView again when I click the "back" button of my browser. The VS debugger gives me the following error: "Response.Redirect cannot be called in a Page callback"
Any ideas on how to solve this problem?
Thanks in advance!
|
|
|
|
|
Pleeeaaase help!
Can anybody see why I get this error?
|
|
|
|
|
Hi
This is my 1st time using a master page in VisualStudio 2005.
Im havin a problem with adding a control to the master page and it is not shown in the content page/s.
i simply just dragged a button or textbox onto the masterpage and checked the content page but nothin is there.
Could someone please help me out.
|
|
|
|
|
Hey put one Content place holder and in then try to drag and drop the textbox and see it.Simply in the master page we cannot see any control.
Regards,
Satips.
|
|
|
|
|
ok. got it.
Thanks for the help.
|
|
|
|
|
Hi
Im still running into a problem. It worked perfectly with my masterpage and content page but now i add another web form and select the masterpage but the new web form doesnt reflect masterpage, has none of the controls.
|
|
|
|
|
If your working with master pages, the first page you should create for your site is the master page.
By default, a single content place holder is created on the master page. If you add more than one content place holder, thats fine, but each of your content pages (e.g. form1.aspx / default.aspx) need to have the same amount of content place holders.
That said, if you want all of your content pages to have access to "X" control(s), these controls should be placed on the master page itself, not on the content pages.
The place holders on the master page are just that, containers that will be populated from the containers on each content page that inherits this master page.
Hope this helps !
|
|
|
|
|
Thanks for the reply.
I have only placed the controls so far on my masterpage. The first content page that i created, that inherits from the masterpage, worked perfectly.but then i added another webform and specified that it must also inherit from the masterpage.. but its not showing the controls that i placed in the masterpage.
|
|
|
|
|
I't hard to know whats wrong with out seing what you've done. Are you sure you did not add a control inside the content place holder on the content page?
I'd be glad to have a look, just post a link to the dl. Or, if you want I can make a simple mock up for you to dl.
I'm sure its something small you missed.
|
|
|
|
|
all i did was make a master page. place 2 images and a menu control in the masterpage.
Then added a new web form and selected the masterPage to inherit. It did not inherit the controls until I added a content placeholder to the masterpage.It then showed the controls in the webform.worked perfectly..but now i wanted to add another webform to the site.which i did, and also selected the masterpage but its not showing any of those controls from the masterpage.
dont understand why it worked perfectly for the 1st page but not the 2nd.
If u have a simple mock up for me i would greatly appreciate it.
|
|
|
|
|
Sorry..i just figured it out!
it was a very small thing.
on the 2nd content page,within one of the content placeholders, i right-clicked and saw the option of Default to Master's Content.
Solved all my problems!
Thanks for the help though
|
|
|
|
|
You can download this one project, it was an example of using CSS, but you should be able to start the project, add pages, etc...
Click my site link in the signature, and about three posts down you'll see the dl link to the project.
If this does not help you, let me know.
|
|
|
|
|
The contents needs to be placed outside the masterpage contenct place holder.
The place holder is for displaying the items of the page using the master page.
So place your textbox outside the placeholder and include the masterpage file in your actual page.
Hope you are now clear with the masterpage concept...
and remember there is no head html or body or form tag in pages with masterpage associated.
Hope that helps!!!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
hi!
i have saved a brief history like a paragraphic way in the access database. wen i get the result, i get it with same line breaks and spaces i gave while writing text.
now prob is that wen i am trying to show this inforation on a literal control its coming in one line only.
how to get the data in the same way i entered while saving.
|
|
|
|
|
Use the string Replace method to replace all line breaks with an html <br> tag - in VB you would use something like
str.Replace(vbCrLf, "<br>")
Fred
|
|
|
|
|
|
I am currently working Asp.net with c#, inserting data from webform into sqlserver 2000 datatable.
table id column contain identity increment.It will increment id for every new recored.
I inserting 10 recoreds id 1 to 10 into table then deleted last two records (9&10) then inserting a new record
these record id having 11 insted of 9 in id column.
Plz help me .......
Thanks in adv
|
|
|
|
|
If you go with the Identity increment it will be automatically increment the record. Once the reords are inserted the id will be created for that record and if you delete the record then also the id will not get deleted it will go only where it stops and then it will increment, as you stated.
Instead if you go by coding for ID increment it will perform better.
And this is not the correct forum to ask your question.
Please put your question in the Sql/Ado.net forum.
Regards,
Satips.
|
|
|
|
|
Thanks Satips for u r reply
|
|
|
|
|
Welcome
Regards,
Satips.
|
|
|
|
|
The auto increment works like the increment in sql server. Therefore it is correct that the new row gets an id equal to 11. Otherwise, reusing 9 and 10 could lead to wrong data dependencies.
Furthermore I suggest to set an increment of -1 and a seed of -1. This way, all new data has negative values. When they are stored to the database the ids will be set by the database resulting in new positive values.
Happy Programming
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Hi everybody,
I use ASP (not ASP.net). I need to show the book database pictures with 3 lines and 3 cells in 1 line.
I use the loop around <tr></tr> but it's not what I want.
Please, help. Thanks
Nguyen Thi Hong Thao
|
|
|
|
|
Select a Suitable forum and post your Questions.
This is Asp.Net Forum.
One post is Enough. BTW delete the other post.
Regards,
Satips.
|
|
|
|
|
Hi everybody,
I use ASP (not ASP.net). I need to show the book database pictures with 3 lines and 3 cells in 1 line.
I use the loop around but it's not what I want.
Please, help. Thanks
Nguyen Thi Hong Thao
|
|
|
|
|
Hi all,
There is a requirement where i need to generate radio button dynamically.The scenario is like this, when the number of question is 3 then for each , we need to generate 6 radio button dynamically.And also need to populate the checked value in an object.Any pointers, highly appreciated.Thanks in advance!
Regards,
Sathyanarayanan
|
|
|
|