|
Hi,
you can create public property in ascx file and can access it from aspx file.
Hope it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Do I need to create an instance of .ascx page into .aspx page and then call it from .aspx page.I did what you said,but not working.I will copy the code below:
at the ascx page:
public int Quantity
{
get
{
return quantity;
}
set
{
quantity = value;
}
}
How to assign value from aspx page?
Can you please expalin via some code.
Hello There
|
|
|
|
|
You can use the user control id to access the property.
|
|
|
|
|
Can you please elaborate it more?
Hello There
|
|
|
|
|
Assume your user control id is UserControl1, and Property name is MyProperty, then it can be accessed like UserControl1.MyProperty
|
|
|
|
|
Navaneeth Thanks,
I read ur reply.I have lots os controls into (Menu.ascx)eg - hyperlink,label etc.
Actually I have created one Menu(Menu.ascx) as a user control,in which I have one label control.At my web page(Products.aspx),i am receiving a value from a textbox,which I want to pass on to a user-control's label value.So that when ever value is changing in textbox,label value should also get incremented accordingly.
I hope now the scenario will be more clearer.
Hello There
|
|
|
|
|
Hi,
you must drag and drop yr cnotrol to aspx page ?
here in code behind you can get that control's ID,
so, control.Property = "set property"
Or anything else you need ?
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Actually I have created one Menu as a user control,in which I have one label control.At my web page(Products.aspx),i am receiving a value from a textbox,which I want to pass on to a user-control's label value.So that when ever value is increasing in textbox,label value will also get incremented accordingly.
Hello There
|
|
|
|
|
what latest version of sql server ?
still sql server 2005 or other version has come.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Hi,
check this link..
Its really useful to u...
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
I am fillilng a dropdown list which is inside a updatepanel through a button click event. But after clicking the button again to fill the dropdown only the updateprogress moving icon gets displayed. i think the page hangs.
kindly help.
|
|
|
|
|
Hi,
how many data you are binding to dropdown ?
Are you fetching from database ?
Have to checked without updatepanel ?
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
i am binding 50,000 records . fetching it from database. i tried doing without updatepanel. its working fine. after including updatepanel and updateprogress controls , second click it hangs.
|
|
|
|
|
i have 3 dropdown list and a "school table" whiah has 3 category: name ;board;location.
if i select "school" in 1st dropdownlist then those two category(board & location) will be displayed in other two dropdownlist.
i'm using SQL 2000 and VS 2005
gfh
|
|
|
|
|
Hi,
its really very simple.
For that you have to set Autopostback porperty of first 2 dropdown to True.
Now onselected index changed event of dropdown get data appropriate to selected item in dropdown..
Try... its really easy...
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Set AutoPostback=true for board and location dropdowns.
Thanks & Regards
Niranjan
|
|
|
|
|
Hi,
I have a requirement to create a pdf files using c# .net.
The content of pdf files must be in colored format.
how to do this?
G. Satish
|
|
|
|
|
1 - Use crystal report and export report to PDF
2 - Look for third party libraries which converts into PDF
|
|
|
|
|
Hi Everyone,
I have used System.Timers.Timer to schedule the task. When I published in two servers,I got mail from one of the servers , but did not get from other one.
Can anyone help me in this regard.
Regards,
Manowj
|
|
|
|
|
manowj wrote: did not get from other one.
maybe, that one has some problems. I think it is better if you contact with your host because the most of hosting companies used to host a lot of email server and those server got delayed for some reasons.
|
|
|
|
|
how to display grid values into xml
|
|
|
|
|
sivareddy wrote: how to display grid values into xml
XML doesn't use for displaying things.
|
|
|
|
|
HI
I want to disply grid values into xml format
|
|
|
|
|
sivareddy wrote: I want to disply grid values into xml format
Are you trying to create XML file for the values in grid ? If you are binding Grid with a DataSet , you can use DataSet.WriteXML()
|
|
|
|
|
Which latest version of asp.net has been
launched by MicroSoft.
I'm little bit confused by getting info. from others.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|