|
Het2109 wrote: I have User Control ucParent, inside which I have User Control ucChild. I am trying to refer to the ucChild from ucParent, but I am not able to ?
It's not clear. What's the error you are getting ?
|
|
|
|
|
You asked a question, someone has given you reply now don't you think you should clear his doubts regarding your question?
Any way you can access that user control in your parent UC should not be a preblem ? Might be you have resolved the things
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
pls guys i need some sirious help
i have a master page & 2 content pages....
what am i trying to do is ...i just put some text in the textbox in one content page where the textbox is not in the content placeholder & i need those text to be viewed in another content page in the textbox which is in the content place holder
but i am failed to do so...
i use these code..........
ContentPlaceHolder Content;
TextBox mpTextBox;
Content =
(ContentPlaceHolder)Master.FindControl("ContentPlaceHolder1");
if (Content != null)
{
mpTextBox =
(TextBox)Content.FindControl("TextBox1");
if (mpTextBox != null)
{
TextBox1.Text = mpTextBox.Text;
}
}
TextBox tet = (TextBox)Master.FindControl("TextBox1");
if (tet != null)
{
TextBox1.Text = "Master page label = " + tet.Text;
}
pls help me......
modified on Friday, July 11, 2008 2:56 AM
|
|
|
|
|
gora12345 wrote: where the textbox is not in the content placeholder
AFAIK, it should be inside the content place holder.
|
|
|
|
|
i need the textbox not in the content placeholder..
because that is a search textbox ....so i placed it in the master page out side pf contentplace holder.....otherwise i couldn't get the search textbox in every content page.....i think there is some solution....pls yaar..waiting for ur help
|
|
|
|
|
In a past job, I created a lot of reusable WinForms custom controls, and now I'm starting to create some reusable Web Controls (in VS 2005).
Is there an easier way than what's described in Microsoft's tutorial [^], and can we put more than one web control into a DLL?
|
|
|
|
|
yes. it is possible. I have an article on creating web controls. Check that
|
|
|
|
|
i have a asp.net form, i only have to show javascript alert with ok button after submiting the data to database, when user press ok it redirect to my home page.
thanks in advance.
|
|
|
|
|
I'm not sure if this is what you meant but...
Button.Attributes["onclick"] = "javascript:return confirm('Thank you for your submittion');";
Make sure you put that code in a place where a post back will occur otherwise the javascript won't get applied to the button onclick event.
I'm not sure but you may be able to code that directly in the html source, instead of the code behind.
Best of luck,
Cheers
Disgyza
Programmer Analyst
|
|
|
|
|
I am not sure that we can give alert msg after data submitted into database. But It is possible that when submitting the record like "Are you want to save the records".
Server side action is happened when you try to insert records into database. Why do you try the client side for that time?
Balasubramanian K.
|
|
|
|
|
I have a gridview that has a template column.in it this template column I have an upload control and .in edit mode I want to upload a picture for every row .name of picture in database and picture in server.but I don't know how to use findcontrol method to do this work.and what event should I use .please help me.I use asp.net with c#.I use this gridview in the admin of site and I am a starter .please help I confuse.
modified on Thursday, July 10, 2008 2:24 PM
|
|
|
|
|
|
I have the same problem and for now no sulution. Hope someone vil answer
|
|
|
|
|
Hi,
How can i find index a of a TreeView node?
Please help .
Thanks in advance...
cheers,
Abhijit
|
|
|
|
|
|
Can any tell how to add new rows to datagrid but the main issue is all the other rows should be retained.
So plz if someone is online know so that i can get solution now.
|
|
|
|
|
The easiest way to do this is to bind the grid (initially) to a dataTable.
When you want to add a new row Create a clone (or empty) version of the initial table.
On the event where you want the new row, iterate through the grid adding a new row to your empty table for each row in the grid assigning the values based on the cells in the grid.
Then add a new row to the datatable that has blank or default values.
Rebind the grid to your new datatable.
I didn't get any requirements for the signature
|
|
|
|
|
Scenario,
I have an Asp.Net page which has 3 panels, with 3 different pages, Left, Middle and Right. I have a user control in Right panel, and am raising an event in that. I want to Handle that event in my Middle panel without including the user control without including the user control in the Middle panel. Is there a way I can do it ?
Hope it is clear !
Thanks in advance !
|
|
|
|
|
Could you explian a little bit more ?
Actually what is there in Middle Panle (server controls)?
that you need to modify
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Hi All...
I am making an application which require to write news in mixed font. I am using Freetextbox for this purpose. Can anyone plz guide me how to get the support for arabic font, how to install it and how to use it.
Please guide me if there is any other resource as well.
Thanx
Bye
|
|
|
|
|
Hi,
I have two buttons in my page. one button is to navigate for the next page and one is for previous page.
I want to trigger those buttons using right and left direction keys in key board.. Is there anyway to trigger this Event?
Santhapur
|
|
|
|
|
Place this code on Page_Load()
form1.Attributes.Add("onkeydown", "var btnLeft=document.getElementById('" + <big>btnLeft.ClientID </big>+ "');var btnRight=document.getElementById('" + <big>btnRight.ClientID</big> + "');if(btnLeft && event.keyCode==37){btnLeft.click()};if(btnRight && event.keyCode==39){btnRight.click()};}")
btnLeft and btnRight are the IDs of your left/right buttons.
|
|
|
|
|
I am using image,label and button in update panel.My page inherit master page.I have made button height and width "0". so that button don't show in page. i'm calling a javascript function show() from anchor tag onclick(). anchor tag is not in update panel.
In show() i made the button click()
like this :--
document.getElementById('ctl00_ContentPlaceHolder1_Button1').click();
and in button1_click()
I am filling label and image from data base.
Label data and image show in browser IE(6.0) perfectly.But in browser Firefox mozila and in opera label data only show.Image not showing.
Plz help me as soon as possiable.
Thanks in advance.
Thanks & Best Regards
Ajita Kumar Satpathy
|
|
|
|
|
Ajita Kumar Satpathy wrote: I have made button height and width "0". so that button don't show in page.
Bad Idea. Why you cant give visible property to false or Style="display:none;"?
Ajita Kumar Satpathy wrote: document.getElementById('ctl00_ContentPlaceHolder1_Button1').click();
You can call server side function in JS.
Google[^]
Ajita Kumar Satpathy wrote: But in browser Firefox mozila
Install Firebug[^] And find out problem
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
fiend,
this is not my question. Please understand the question carefully.
My page inherit master page.I've a update panel. Inside update panel there is an image control, a label, a button (say Button1). There is an anchor tag outside the update panel. My motto is to show image (in image control) & data (in label) on clicking the link(anchor tag). For this I've called the onclick() event of the Button1 in anchor tag ike this :--
document.getElementById('ctl00_ContentPlaceHolder1_Button1').click();
And code is written in Button1_Click event.Actually there is no necessity of Button1 to show to user. So I've made its height & width to zero. (Your suggestion is right i.e. make visible false of the Button1).
When I click the the anchor tag, in IE, both data & image is displayed. But in Firefox Mozilla, only data is displayed. Image is not displayed. This is actual problem.
Thanks in advance
Thanks & Best Regards
Ajita Kumar Satpathy
|
|
|
|