473,385 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Suggestions abt UserControl

navneetkaur
hello every1
i have read abt user control yesterday...but i am not little bit satisfied because of frm where i get information abt user control here is written 1 control is placed in toolbox 'd from toolbox we drag 'd drop it on form....but wht i have created here i just added it through register directive 'd then by using tagname 'd tagprefix i add it on code behind file.....if any one have more idea about user control please tell me...i am new to .net.....please help me...how we create assembly....
Oct 10 '07 #1
4 1033
Shashi Sadasivan
1,435 Expert 1GB
Hi,

user creating usercontrols is pretty easy, and a very cool concept.
The design of it can be as easy as creating a web/windows form.

You could make a user control which has 2 textboxes and a button, for a login form. Once you have your user control compiled it will be added to the tool box, and you drag it to your form.
You can customize your control accepting parameters in the constructor to behave accordingly.

Is that what you are looking for?
or are you looking for more tutorials?

cheers
Oct 10 '07 #2
Hi,

user creating usercontrols is pretty easy, and a very cool concept.
The design of it can be as easy as creating a web/windows form.

You could make a user control which has 2 textboxes and a button, for a login form. Once you have your user control compiled it will be added to the tool box, and you drag it to your form.
You can customize your control accepting parameters in the constructor to behave accordingly.

Is that what you are looking for?
or are you looking for more tutorials?

cheers
thanx a lot
for providing me guideance......
sir i have created user contol.....this form is with extension .ascx....but sir i wnat to know abt how this control is compiled 'd added to toolbox so that it cnt be used only in 1 project i can use it many projects....like just others control drag 'd drop facility,,,,

so sir plz provide me more material....

thanx
navneet
Oct 10 '07 #3
Shashi Sadasivan
1,435 Expert 1GB
Hi,
To make the control available across your other projects you can import the user control files and compile the project to make it available there,

If you are looking for creating permanent toolbox items , I havent tried that but this site could help you

cheers, Happy Coding!
Oct 10 '07 #4
hello every1
i have read abt user control yesterday...but i am not little bit satisfied because of frm where i get information abt user control here is written 1 control is placed in toolbox 'd from toolbox we drag 'd drop it on form....but wht i have created here i just added it through register directive 'd then by using tagname 'd tagprefix i add it on code behind file.....if any one have more idea about user control please tell me...i am new to .net.....please help me...how we create assembly....

1. Choose WebUserControl.
In the Design window,Create aLogin form by adding One textbox for Password,One Button,One Label.
2. write the following HTML code
<script language="C#" runat="Server">
public void Button1_Click(Object Source, System.EventArgs e)
{
if(TxtPass.Text=="Pass")
{
lblresult.Text="Password Correct";
}
else
{
lblresult.Text="Incorrect Password"
}

}

</script>
3.Build website
4.Add new webform
5.Drag and drop the webuser control from solution explorer.
6.run the Program
Oct 10 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dave Veeneman | last post by:
Is there a simple way to pass drag-and-drop events to a child control in a UserControl? Here's an example: I have created a UserControl which contains a treeview and some text boxes. I want to...
8
by: Raed Sawalha | last post by:
Hi, I have a strange problem with a usercontrol on a page. The usercontrol dispalyes three categories (From a database) when the user clicks a category they see all the products in a shop for...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
3
by: YYZ | last post by:
I've got an app that is a way for our users to add/maintain loans. I've intially set it up like this: The user can select a loan (froma search screen) and open it. The "loan" (usercontrol) gets...
12
by: Joe | last post by:
Hello All: Do I have to use the LoadControl method of the Page to load a UserControl? I have a class which contains three methods (one public and two private). The class acts as a control...
9
by: Marcelo Cabrera | last post by:
Hi, I have a user control that in turn creates a bunch of webcontrols dynamically and handles the events these webcontrols raise. It used to work fine on ASP .Net 1.1 but when compiled on 2.0 it...
6
by: Ben R. | last post by:
Hi all, I'm running an asp.net website that allows its users to log events, say social gathewrings (with event date, time, address, descrption, etc) and allows people to post comments on each...
6
by: MeowCow | last post by:
I have created a UserControl that encapsulates a third party data grid. My goal was to create my own DataSource and DataMember properties that forward the binding to the third party grid, then use...
10
by: Benton | last post by:
Hi there, I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.