|
Hi, what you want to do is to 'bubble' the textchanged event from your usercontrol to the host page.
----usercontrol.ascx---
public event EventHandler TextChanged;
protected void txt_TextChanged(object sender, EventArgs e)
{
if (TextChanged!=null)
{
TextChanged(this, EventArgs.Empty); //Raise Event
}
}
---hostpage.aspx---
On your hostpage a onTextChanged Eventhandler will be available to you. Check the events for the usercontrol on the property window.
Create a method in your hostpage.aspx.cs
protected void UserControlTextChanged (object sender, EventArgs e)
{
//do something
}
Hook this up to the onTextChanged EventHandler on the events list for your usercontrol.
or you can hook it up programmatically like this:
myUserControl.onTextChanged+=new EventHandler(UserControlTextChanged);
Hope this helps
|
|
|
|
|
I am trying to create a new music web site using asp.net, Please any body can help me for, Where we have to store the songs either in database or in the application. If any related sites for this please give a reply its very urgent.......
Thanks in advance...
|
|
|
|
|
Tirupati.P wrote: its very urgent
Really?
Tirupati.P wrote: Please any body can help me for
this guy[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You can use Windows media services to stream media files over web.
Try this[^]
|
|
|
|
|
So you took on a job that you have no idea how to do and you are looking for someone to do it for you. If you don't even know how to store the music you may as well tell the client you lied and you have no idea what you are doing.
Alternatively, sub-contract it on rentacoder and hope that you don't get someone who lies about their knowledge.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
If you want it written for you, try the jobs section of the site. We're not going to do your work for you if you can't even start it.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
hi
I have a textbox in which i have todays date.
which i select years,months,days from other controls i should get the added date.
please help me.
Thanks
|
|
|
|
|
Like this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi every one
I 'm creating fileupload control at run time on the click evant of linkbutton.
first time it's creating controls fine..but next time its not..?
following is the code...?
private void newattach()
{
int i;
for (i = 0; i < 2; i++)
{
count++;
FileUpload f1 = new FileUpload();
f1.ID = "fileupload" + count.ToString();
f1.Height = 34;
f1.Width = 212;
Panel1.Controls.Add(f1);
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
newattach();
}
count is a static variable....
|
|
|
|
|
What do you expect it to do?
With this you'll have always 2 file upload controls on page as every Button click will do a post pack resulting in clear of old file controls added to the page.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
so how can i persist with the old controls..?
|
|
|
|
|
Simple and nice way wold be to use AJAX Update Panel.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
why are u using count in stead of i ?
and why you choose count to be a static?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I have a small asp.net developed web application. I need to run it outside Visual Studio IDE as stand alone. Let me know if there is a way to do?
|
|
|
|
|
like this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi All,
I have a asp.net website. There are two area one is front-end and another is admin area. I use google
analytic in front-end pages and I need show google analytic report in my admin area as web statistic.
My question is that how can I show the google analytic report in my admin section. What is the script,
how to use this.
I check google forum, but could not understand.
please help.....
Thanks
Rajesh
|
|
|
|
|
Hello everyone.
I try to build graph with this link
http://chart.apis.google.com/chart?chs=800x300&cht=lxy&chxt=x,y&chxl=1:|0%|10%|20%|30%|40%|50%|60%|70%|80%|90%|100%|0:|0||||||||||||||||||||||||||||||||||||||||40||||||||||||||||||||||||||||||||||||||||80||||||||||||||||||||||||||||||||||||||||120||||||||||||||||||||||||||||||||||||||||160|&chg=10,10&chd=t:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160%20|5.46666666666667,4,2.16666666666667,3.06666666666667,2.36666666666667,7.6,8.13333333333333,15.0333333333333,16,18.1666666666667,7.46666666666667,5.8,3.6,8.46666666666667,5.56666666666667,18.1,5.3,4.5,8.63333333333333,10.5333333333333,15.6,12.5333333333333,1.46666666666667,1.63333333333333,2.1,9.03333333333333,2.73333333333333,8.96666666666667,11.1,12.9,9.5,10.4666666666667,11.4,4.36666666666667,10.7666666666667,5.7,14.1333333333333,7.5,5.16666666666667,11.5666666666667,16.4,11.7,10.1333333333333,3.1,4,2.5,9.66666666666667,15.7333333333333,11.2666666666667,6.06666666666667,10.1333333333333,6.3,36.0666666666667,11.6,8.56666666666667,5.6,2.66666666666667,5.4,2.43333333333333,11.3333333333333,7.96666666666667,12.0333333333333,5.4,5.76666666666667,4.1,4.46666666666667,6.56666666666667,13.1666666666667,16.4,2.2,11.2333333333333,4.56666666666667,7.96666666666667,15.6333333333333,10.7666666666667,12.5,4,4.26666666666667,3.66666666666667,10.2,7.76666666666667,12.1,5.63333333333333,10.5666666666667,18.9666666666667,23.2,8.96666666666667,4.3,4.2,7.86666666666667,2.8,3.13333333333333,3.5,4.26666666666667,5.66666666666667,9.03333333333333,8.76666666666667,5.43333333333333,5.63333333333333,10.7,7.86666666666667,6.66666666666667,4.33333333333333,9.36666666666667,4.2,5.96666666666667,5.4,4.03333333333333,9.06666666666667,5.63333333333333,12.5,2.93333333333333,7.2,3.7,2.43333333333333,4.1,1.3,1.13333333333333,1.63333333333333,0.933333333333333,1.03333333333333,1.36666666666667,1.03333333333333,6.1,6.23333333333333,0.766666666666667,0.333333333333333,1.03333333333333,0.766666666666667,4.33333333333333,13.0666666666667,6.53333333333333,2.46666666666667,3.4,2,2.5,1.23333333333333,7.5,1.63333333333333,1.56666666666667,4.86666666666667,0.7,3.1,6,1.16666666666667,6,12.0333333333333,5.16666666666667,8.33333333333333,4.2,4.5,1,9.1,8.2,4.6,5.53333333333333,3.5,3.33333333333333,1.56666666666667,14.6
And got next error
The requested URL /chart... is too large to process.
How can i make link smaller?
Maybe should i use to extended coding of data?
|
|
|
|
|
I just copied/pasted your link in my browser and it rendered with no error messages. All I see is a chart framework, though, with 0 - 160 along the x-axis, and 0 - 100% along the y-axis. There are no data points displayed. You didn't include the chd=t: data,data,data,data... parameter, though, so you didn't pass it any data.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
http://chart.apis.google.com/chart?chs=800x300&cht=lxy&chxt=x,y&chxl=1:|0%|10%|20%|30%|40%|50%|60%|70%|80%|90%|100%|0:|0||||||||||||||||||||||||||||||||||||||||40||||||||||||||||||||||||||||||||||||||||80||||||||||||||||||||||||||||||||||||||||120||||||||||||||||||||||||||||||||||||||||160|&chg=10,10&chd=t:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160|5.46666666666667,4,2.16666666666667,3.06666666666667,2.36666666666667,7.6,8.13333333333333,15.0333333333333,16,18.1666666666667,7.46666666666667,5.8,3.6,8.46666666666667,5.56666666666667,18.1,5.3,4.5,8.63333333333333,10.5333333333333,15.6,12.5333333333333,1.46666666666667,1.63333333333333,2.1,9.03333333333333,2.73333333333333,8.96666666666667,11.1,12.9,9.5,10.4666666666667,11.4,4.36666666666667,10.7666666666667,5.7,14.1333333333333,7.5,5.16666666666667,11.5666666666667,16.4,11.7,10.1333333333333,3.1,4,2.5,9.66666666666667,15.7333333333333,11.2666666666667,6.06666666666667,10.1333333333333,6.3,36.0666666666667,11.6,8.56666666666667,5.6,2.66666666666667,5.4,2.43333333333333,11.3333333333333,7.96666666666667,12.0333333333333,5.4,5.76666666666667,4.1,4.46666666666667,6.56666666666667,13.1666666666667,16.4,2.2,11.2333333333333,4.56666666666667,7.96666666666667,15.6333333333333,10.7666666666667,12.5,4,4.26666666666667,3.66666666666667,10.2,7.76666666666667,12.1,5.63333333333333,10.5666666666667,18.9666666666667,23.2,8.96666666666667,4.3,4.2,7.86666666666667,2.8,3.13333333333333,3.5,4.26666666666667,5.66666666666667,9.03333333333333,8.76666666666667,5.43333333333333,5.63333333333333,10.7,7.86666666666667,6.66666666666667,4.33333333333333,9.36666666666667,4.2,5.96666666666667,5.4,4.03333333333333,9.06666666666667,5.63333333333333,12.5,2.93333333333333,7.2,3.7,2.43333333333333,4.1,1.3,1.13333333333333,1.63333333333333,0.933333333333333,1.03333333333333,1.36666666666667,1.03333333333333,6.1,6.23333333333333,0.766666666666667,0.333333333333333,1.03333333333333,0.766666666666667,4.33333333333333,13.0666666666667,6.53333333333333,2.46666666666667,3.4,2,2.5,1.23333333333333,7.5,1.63333333333333,1.56666666666667,4.86666666666667,0.7,3.1,6,1.16666666666667,6,12.0333333333333,5.16666666666667,8.33333333333333,4.2,4.5,1,9.1,8.2,4.6,5.53333333333333,3.5,3.33333333333333,1.56666666666667,14.6
i have make error in link because i found symbol of space %20
can you try again?
|
|
|
|
|
Good Morning
I have the Following User Control in the Pic "UserControl_Design_Mode.JPG" and i have the Following code to enable Partial Rendering
http://www.vbforums.com/attachment.php?attachmentid=71090&stc=1&d=1242799933[^]
[DefaultValueAttribute(true)]
[CategoryAttribute("Behavior")]
public bool EnablePartialRendering { get; set; }
Am exposing the Properties of a usercontrol like like this
public UpdatePanelUpdateMode UpdateMode
{
get
{
return this.UpdatePanel1.UpdateMode;
}
set
{
this.UpdatePanel1.UpdateMode = value;
}
}
And there are of them
and i went to the Hosting page we have a pic
http://www.vbforums.com/attachment.php?attachmentid=71091&stc=1&d=1242800293[^]
for Example, in the Button Remove i have Finally something like this
Response.Redirect("SubjectStaff.aspx", false);
I was Forcing a Postback and the Whole Page flickers, i want to Refresh only the UserControl.
i tried the Following instead of the above statement
http://www.vbforums.com/attachment.php?attachmentid=71092&stc=1&d=1242800630[^]
Here am trying to call the name of the usercontrol first and then the Properties it exposes, but i only get the load and load1 event , it seems every is hiden now since i have taken the Control inside the Update Paanel in the User Control.
Can you Help me in that Regard
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Create a public method in the user control where bind the controls in the user control with data like below:
public void RefreshThisUC()
{
YourTextBox1.Text = Somevalue;
BindYourDropDownInUserControl();
BindYourGridInUserControl();
}
and call this method in the parent page using the id of the user control like
yourUserControl.RefreshThisUC();
|
|
|
|
|
This is exactly what i did at First, but nothing is happening on the userControll. as you can see the user Control has a gridview, maybe is there a way to refresh the gridview itself the the Refresh method, i tried that , i took the code that binds the Grid and put it in the refresh method, but after i do something on the other side nothing happens
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
How did you call the refresh method in parent page. Have you used that metohd in any page event such us click event of a button in the page where the user control is used?.
|
|
|
|
|
Good morning Ramesh
This is what i did
i made sure that the name is Unique and called it "Refresh_Control" and in the Host page,am refreshing from a Button like this
MyControl.Refresh_Contro();
And nothing Happens
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I just want to confirm that the user control's Refresh_Control() is reached when it called in the button click event. Put a break point in the first line of Refresh_Control method and see whether the grid is bound.
|
|
|
|
|