controlling an object in a web control from the page the web control is placed in
I have created a web control in vb.net that has an image button and an image. when it loads the image button is visible and the image is not.
I want to be able from the page which "includes" the web control to set the image button to invisible and the image to visible.
When I tried this, the main page didn't recognise the image button or the image (both < asp: objects).
help would be gratefully appreciated.
oh yeah, it's inline code so any code behind stuff will just confuse me ;)
Some code please.-- Justin Lovell...Control of the page and the controls on a page
I am building a web app that has some pages that are public and some that are only available based on subscription.
Could someone explain the best way (infrastructure wise) how to control whether a server control is visible or enabledand how to control whether a page is viewable or not based on the user and whether or not the user is logged in (or not).
If a user is not logged in I would like some controls to be visible but disabled. I also have to control the URL's in case a person learnsthe URL and tries to type it in.
My question is more towards how to do this database wise. I am u...i have 3 pages student information , i filled two pages ,then go to 3rd page . First Two pages iam having 100 controls.how to store that controls and how to send these controls into 3rd page in ?
i have 3 pages student information , i filled two pages ,then go to 3rd page . First Two pages iam having 100 controls.how to store that controls and how to send these controls into 3rd page in ?
There are a number of ways storing values. Check out: http://msdn2.microsoft.com/en-us/library/75x4ha6s.aspxhttp://www.csharphelp.com/archives/archive207.html Thanks,Karan~ Remember To Mark The Post(s) That Helped You As The ANSWER ~
Welcome to asp.net forums.
Now as far as your requirements goes, the first thing that strikes me is that 100 controls are way too many to kee...'Index was out of range...Parameter:Index' when navigate the built-in page control in VS.NET 2005
I try to search for solution how to fix 'Index out ot range ....Parameter: index. I believe I got the problem like you had posted as following:
I think I have the answer. Since your gv_RowCommand() is called by not only the command buttons you've specified (i.e. Select, Edit, and even Test), but also by the built-in Paging feature. So, when you have many pages (enough to exceed the number of rows allowed per page), then your gv_RowCommand() is called with e.CommandNa...Calling a method from a control page on the axpx page where the control page exists.
I have an .aspx page that has a method called grdMain_DataBind(). I have a control page that loads within the aspx page which has its own logic. I have a button on my control page called "SAVE". How can I call the method grdMain_DataBind thats in my aspx logic from the control that exists on that page when I click SAVE button. Is there a way?
If I were you, I'd simply create a "Save" Event within your control. When the Button in your control is pressed, in the Click handler for that Button you can raise the event. Then, within t...buttons for navigation in master page dont appear correct in other pages
Hi All.In my master page, i put a table with two columns, the first column has 7 rows in it each containing a button, the second column has all rows merged and has the content place holder in it. In other pages, depending on how much content is in the content place holder, the first column which has the buttons is all stretched and doesn't look right. I wanted it the buttons to stick together towards the top. How can i achieve this?
We cannot repro your problem on our local, could you please post your code here? let us repro your probleme which will be help further.Ama...Creating .Net custom server controls and .Net pages programatically
Thanks a lot for reading this and greatly appreciate your inputs
I am writing a webinterface that lets users configure options that'll create an interface for them and generete the webpage. So I am having to programattically create custom server controls and .Net page with code behind to support the functionality.
Are there APIs in the .NET SDK that let you do this. Any pointers would be greatly helpful
Thanks a lot
Controls on the fly? Or Create code on the fly? I think it is the latter so here we go - look at the following namespaces:
* System.Reflection.Emit - gen...How to create a embeddable Login Control/Page that can be placed in any HTML page?
Hi,We have an ASP.NET based web portal that requires authentication to access the features. In order to allow our partner web site users to directly login to our web portal, we would like to implement a Login control or page (or some sort of service??) in ASP.NET that can be embedde in their web site. Users should be able to login to our web portal by entering user name and password from the partner's web site.Can you please suggest how this can be implemented in ASP.NET? Regards,Gopinath M Gopinath MDo you know your blog/web site page rank? Check Google Page Rank Now
Too Easy you...Can you return .net web controls in a .net page from a web service?
I've got a problem with a project. I've got to compile an entire .net page and return it as part of a Web Service for display. The problem I have is that I need to add WebControls and functionality to the page so that not only the html content and images are displayed (which I've managed) but that textboxes, labels, buttons and datasets can be displayed also. Essentially I need to make a call from one site for a page, populate the page and return it in a state as though it resided on the same server/webspace as the calling page. Code is currently built as follows into a string:
strOpenHT...Re: How to control the columns displayed on a .net page depending on the page the user is coming from
I have got two pages on wy website which contains a form to submit data into the same database. The two pages have also got a link to view the submitted data. The challenge I have got at the moment is, I want to be able to control columns the users see depending on the which of the two pages they are coming from. I know I can simply create two more separate pages but I don't want to do that. I feel I can be clever and achieve this with a conditional statement but to be honest, I don't know how to go about this.
Could you please help me on thsi? Bas...Placing controls on page
How can I programatically place controls on a page. Basically, I have datagrids which are dynamically generated and I need to place it in a specific cell of an asp table. So as soon as the grid is generated, I also need to add a row to the asp table. Its so complex. Please help !! :(Regards,
You can add a control to the table's cell programaticaly <sp> any how..
Or something like that.
...History control: Navigating away from and "back" to a page using History control.
Hi,Another little issue with the History control. This one has been racking my brain now for some time, but I think I've narrowed it down to what is actually causing the problem. My setup: I have a page that is a Repeater (or Gridview, both have this bug) listing of data, that is Paged AND/OR Filtered by a keyword, and is in an UpdatePanel so that it is AJAX style paging and filtering. I'm using the History control from the May Futures -- the main point of this (and what is mainly broken) is so that when users click on a item in the Repeater and go to the details vi...Bind datagrid in user controls (placed in a place holder) by passing values from an aspx page.
I've a drop down list(lstProcess) , 2 txt boxes(txtAccount,txtCustomer), a search button(btnSearch) and a place holder(plhContent) in my Aspx page. I need to load 10 different user controls in the place holder based on the drop down list selection. All the user controls has a datagrid which displays data from different tables but performs the search based on the same search criteria. I need to bind the grid based on the values from the aspx page(txtAccount,txtCustomer). When the btnSearch in my aspx page is clicked, it has the pass the values to the appropriate control's da...To access a control placed in a web user control which is loaded during page load in button click event
How can I access a control in a web user control in a button click event , the user control is loaded in page load.Thanks & Regards,Abhiram Reddy Mekha.
Try checking this...