how to call controls of web control form in coding of other forms?

hello everyone i have one problem i have created one webcontrol shoppingcart in which there are two labels one of qty and other of amt which are initially enable =false

now on other page(aspx page) i have one txtbox of qty as txtqty i want tat as soon as user enters qty txtqty and clicks on add cart button it shd be display d value in lblqty of web control shopping cart make sure i m using datalist on aspx page so give me suggestions on tat basis and my coding is in vb. plz give ur suggestions as fast as possible. 

4/2/2009 7:56:19 AM 91979 articles. 4 followers. Follow

2 Replies

Similar Articles

[PageSpeed] 9
Get it on Google Play
Get it on Apple App Store

what do you mean by webcontrol.... it this user control or normal contols....

on the other page(aspx page)... means are you using the user control in aspx page...

4/2/2009 8:38:24 AM


If your Label Control resides withing a UserControl or in a Data Representaion Controls like (GridView, FormView, DataList etc..) then you can use FindControl method to reference/access the controls in your codes..


"Code, Beer and Music" that's my way of being a programmer!

How to get your Forum Question Answered | Blog | CodeASP.NET
4/2/2009 9:15:38 AM

Similar Artilces:

controls one the same web form that call to various other forms
I want to put a control at the top of EVERY PAGE that will allow users to search my site for products my site sells. In ASP, I would have two form tags. One around these controls in the header of EVERY PAGE that would post results to an ASP script that handles the search and displays the results. The other form tag would be for what ever the page is for. for example, adding items to my cart. they would obviously post to different pages. Now I'm trying to figure out how to do this in ASP.NET and I can't figure out the proper way to accomplish this, if even possible. Because you can&...

Controlling web control instances on Web Form
I have created a composite control, extending functionality of the Hidden Control. However, I would like to prevent the user from adding this control to the page multiple times. I only want one instance of the control on the Web Form. What setting in my project to I adjust to enable this functionality? I can not find it in any of the books that I have referenced. Is this a setting or is this code that has to be added to the inheriting class. Looks like there is no standard apporach. But I'd consider using static field to count number of created objects and throw exception if second object ...

How to access a control on a web form from anoter web form
hi all I have this scenarios i have two web forms, one called form1 and the other called form2 form1 has a label with id "lbl1" is it possible to access lbl1 from form2, change its text permenantly? thanks.   refer: remember to click "Mark as Answer" on the post that helps you. MinaSamy: hi all I have this scenarios i have two web forms, one called form1 and the other called form2 form1 has a label with id "lbl1" is it p...

How to access individual controls from a form containing the web user control containing those controls
 Below is a block of code in my .aspx form named default.aspx. In this form I load a web user control. I then add it to a place holder control.(Lines 3 and 4 below) So how do I access the individual controls in my web user control? I want to set the properties on those controls, but I am baffled as to how to access the control. For example I have a text label control named "label3". How do I access this control. Because for example, under certain situations I want to hide that control. ( Label3.Visible = false;)  1    if(!Page.IsPostBack) 2&nb...

Updating User Control content from the calling Web Form code behind
I'm relatively new to and have the following problem which needs solved. I include a user control in my web form.  The user control is used to create a formated table. One of the table cells must be updated with content from the code behind the web form. I've tried dynamically adding a placeholder but the place holder is not found by the web form. I've also tried adding a HTML "<div>" tag with an "id=" attribute but I cannot resolve the ID from my web form program.  Any ideas or help would be appriciated.  do...

Solution for web forms that look just like paper forms ? User controls ? Adobe fillable forms ?
 I am looking at ways to web-enable a series of company forms that need to have the form itself look just like the paper version.  It would be great if I could use an image of the form itself as a background, and then draw the UI components on top of this.  Then there is the question of printing these forms complete with the data that was filled in.   What are some options for doing this kind of application ?  Im open to 3rd party solutions as well.  Our company currently has a desktop application which does this, but I want to come up with a web based solu...

Web form Controls vs HTML controls
Hi, can anyone explain me the difference between Web Form Controls and HTML controls? What is their usability and disadvantages? Can i write code behind HTML controls?    Thanx in advance. Yes, you just have add "runat=server", in your HTML control. The Web Server Control, have more funtionality that the HTML controls. With Web Server Control, you can work easy with Data. Too, you have controls as AdRotator, WebCalendar and more... : Sergio Tarrillo Here are the Recommendations from Microsoft ....when to use 1 over the other...

Web Custom Control
Hi. I created 4 drop downlist controls as web custom controls, which I would either like to use seperately, or working together like a hierarchy (dependant on each other). The problem is, I need to communicate with the calling control (the web page where I dragged these controls on). When the dropdownlists are used seperately, they should return all items on a table, but when they are used together, the child dropdownlist should only return items from the table based on the selection of the parent dropdownlist just above it. Can anyone please help? Thanks. You should post this in the Build...

HTML Controls vs Web Form Controls
Hi, I have a page with both controls (HTML and Web Form Controls). I am trying to use an html Calendar control and then get the date selected by the user and put into a Web form input field control. When I try to run this the HTML control cannot talk to the Web form control. Any ideas? Thanks. Can't you put some javascript in the HTML-control with which you assign the value to the ASP.NET Server control? Please post some code so I can help u. Kind Regards,ThaYoung1! Hi here is the Code. Also I added a web form text input control and an html text control and created a fu...

Where to get more control for web form?
I found that controls coming with ASP.NET are very less. Where to get more contol for web form? hello check these websites: 1- 2- Good Luck.Bilal Hadiar, MCP, MCTS, MCPD, MCTMicrosoft MVP - Telerik MVP...

Using Win Form controls in web forms
Hi All,   Please tell me if i can't use the window forms controls in my webform. What if i simply import the Namespace. Definitely this will help me to expose the class & methods, but will they work accordingly when get rendered. I am totally confused.. please help me. Thanks Simple answer:  You can't.  Webforms controls render as HTML; while this may be possible to achieve with Winforms controls by invoking the design-time rendering, I doubt it's going to work very well.What control are you trying to use?Peter BrunoneMS MVP, ASP.NETFounder, Easy...

calling control in one form from another form
hi all, i have two forms in a windows application i have a list view control in form1. i want to fill this list view from form2 and display form1 from form2. any idea of doing this?thanks in advance use showdialog to get the input.Thank You--some funny homemade software, software group

add window form control on web form
i want to add windows from control link label on web from .what should i do?  saurabhiP:i want to add windows from control link label on web from . Windows form controls are for windows application and should not be used on web forms.You want a link label which is the same as a hyperlink in ASP.NET so use that instead.  saurabhiP:i want to add windows from control link label on web from .what should i do?  Hi saurabhiP,Base on my understanding, you want to use windows control to web form. But base on my experience, there are many issues! Check the following l...

Getting the Selected Item of dropdownlist inside Web User Control on a Web Form
Ive got a dropdownlist control inside a web user control called Entity.ascx. This web user control is on a webform.aspx. In Entity.ascx class I created a SelectedEntity property that returns the selected item in the dropdownlist. Inside webform.aspx when btnGo is pushed I set a string and pass it in the url. I am trying to get the entity they selected via the property (SelectedEntity) inside Entity.ascx. As the SelectedEntity property tries to return the selected item in the dropdownlist I get this error: System.NullReferenceException: Object reference not set to an instance...

Web resources about - how to call controls of web control form in coding of other forms? -

Control - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

China lays out its vision of the internet: more control, more censorship
... censorship of the internet, in a high-profile speech underscoring China's increasingly emphatic attempts to justify its strict online control. ...

Atlassian battles Slack for control of the modern workplace
Atlassian went public only a week ago, and already a new front has opened up in its battle with a key competitor.

Control chaos while Devouring Stars in this strategy game
Devouring Stars Control chaos while Devouring Stars in this strategy game is a story by AppAdvice - iPhone, iPad, iPod, App Reviews ...

How to engage Tesla's Launch Control mode
Filed under: Green , Videos , Tesla , Electric Short video shows Model S keeping it straight on a rain-slicked road.

Nuance’s voice control going where Siri, Google Now and Cortana fall short
... for Samsung's S Voice and Apple’s Siri, is ready to go where no other digital assistant has gone before. The company wants to bring voice control ...

Google Updates BigQuery With New Cost Controls
Enterprises using BigQuery to run analytics against large data sets can now set a daily query quota on a project-wide or an individual basis. ...

Cancer May Be More Within Our Control Than We Thought
Some cancers may be due to 'bad luck.' But even more of the risk may come from the choices we make every day.

After losing control of Parliament, Venezuelan socialists create a new one
After losing control of Parliament, Venezuelan socialists create a new one

Anti-Terror: Visa Control, Airstrikes Seen as Most Effective
Americans are most likely to see overhauling the nation's visa waiver program and intensifying airstrikes against the Islamic State as effective ...

Resources last updated: 12/18/2015 6:09:46 PM