|
If your button_click has a postback than its better to hide the panel during postback, rather than using javascript.
|
|
|
|
|
|
Try this,
document.getElementById('pnlColumn').style.display='none';
Regards
N.Surendra Prasad
|
|
|
|
|
First of all, if it's an ASP.NET control, then the name of the control on the client is not the name on the server, you need to write the name using the server controls 'ClientID' property. Then you can use code like the above, assuming that pnlColumn is a variable that holds the client side Id, and that you put 'none' in quotes.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Dear friends,
I would like to know , how multiple programmers can develope a web application by accessing/coding the different webforms at the same time in MS.NET2005
Me and my friend wish to develope a web application parallelly..
Be thankful for any advices.....
They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same!! CrazySanker
|
|
|
|
|
Both of you can divide the project amongst yourself and then merge the web forms in the application manually.
Steps to follow-
1. Build the webforms.
2. Copy all the webforms & classes which was coded by your friend on your PC in the project folder .
3. Open the solution (.sln) file. Right-click in solution explorer and select "Include In Project". Compile the project.
Your application is built for release.
|
|
|
|
|
Hi,
you have to install source safe and then add project to souce safe.
so you all can work together.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
In my project, I used to use SVN for that.
As Sun Rays suggested, you can also use Visual SourceSafe. VSS 2005 supports web access too..
|
|
|
|
|
Thank you very much!!!
They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same!! CrazySanker
|
|
|
|
|
You can also download Araxis trial version and use that tool to merge your changes. It enables line by line comparison of two files and allows you to insert or delete lines from one file to another.
Regards
N.Surendra Prasad
|
|
|
|
|
Hi
I make a user control like tree.ascx which contains a tree view control. Now I place the user control “tree.ascx” on Default.aspx”.
Now, I want to display an alert message when user clicks on the tree view.
I am facing problems:-
• How to find user Control Id (“tree.ascx”) on default page using JavaScript
• How to find tree view control id in default.aspx using java script;
• And how to show alert message when user click on any node of tree view using JavaScript?
Any help is appreciate
Regards
Rajesh
rajesh
|
|
|
|
|
Get it[^]
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi,
i created a rdlc file,in its design mode i dont have any controls in its toolbar.
How to make those Report Item tab included in my toolbox
report item tab is the default control tab
but dont know where i am missing
am i supposed to include any dll???
ne body can help me to sort out dis issue???
zari
|
|
|
|
|
Hi,
I have one master page and one default.aspx page inherted from master page.
Now My Default page has 10 TextBox controls with ID's 'Textbox1','Textbox2',.......'Textbox10' and one Button.
In th button click event I want to catch these textboxes dynamically like
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("TextBox"+i);
}
I saw the viewsource all controlId's are replaced like "ctl00_CphAdmin_TextBox1".
even I tried like
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("ctl00_CphAdmin_TextBox"+i);
}
But not worked .........can any body help me the way to acheive this.
Thnaks
Hari
|
|
|
|
|
Hi,
if your textboxes are in any other control like panel then you have to search panel first and then you have to search textboxes in panel.
Else here,
Kuricheti wrote: for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("TextBox"+i);
}
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("TextBox"+i.ToString());
}
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi Kuricheti
try this code , i think this will help you.
protected void Button1_Click(object sender, EventArgs e)
{
GetControlval(this.Controls);
}
public void GetControlval(ControlCollection Controlcol)
{
string strTextBox;
foreach (System.Web.UI.Control ctl in Controlcol)
{
if (ctl != null)
{
if (ctl.ToString().ToLower().EndsWith("textbox"))
strTextBox = ((System.Web.UI.WebControls.TextBox)ctl).Text;
}
if (ctl.HasControls())
{
GetControlval(ctl.Controls );
}
}
}
rajesh
|
|
|
|
|
Kuricheti wrote: for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl("TextBox"+i);
}
Try using --
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl(this.ClientID + "TextBox"+i);
}
OR
for(int i=1;i<=10;i++)
{
(TextBox) txt = (TextBox)FindControl(this.ClientID + "_TextBox"+i);
}
Hope this works for you.
|
|
|
|
|
Plz try using "ctl00$CphAdmin$TextBox" instead of "ctl00_CphAdmin_TextBox"
|
|
|
|
|
Hi
I want to add my custom description to my custom class or methods using asp.net.
(e.g) .Tostring() is a method which has a custom description given by Msoft as
"Converts the value of this instance to its equivalent string representation usingthe specified the format "
Likewise i want to add my own customised message to my methods. can you give idea plz.
I hope so u can clearly understand the ques. If not get back to me.
|
|
|
|
|
Hi,
before writting your function you have to type ///
you will see like below.
private void MyExample(Control ctrl)<br />
{<br />
}
hope it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
yaa,it's working ...
But I'm using webservice..
i've two classes in that service with some methods,properties..
I'm added discription to those methods and properties
But the description is not getting in webapplication for those ...
How can I get it??
|
|
|
|
|
The description which is shown in IntelliSense come from XML file. So, you should probably check whether this doc XML file exists or not.
|
|
|
|
|
Hi, i'm using asp.net 2.0 & c#. i have a functionality which i would be implementing in all my classes (e.g. language change [en-US], [zh-CN], etc.). i found a solution in the web that says i should inherit a base class. here's how my code would probably look like:
public partial class SiteHra_SiteHraHome : MyBaseClass{
}
public class MyBaseClass{
}
Here's my question.. Should MyBaseClass inherit System.Web.UI?
Thanks in advance!
tnx.. ^_^
|
|
|
|
|
System.Web.UI.Control i guess.
|
|
|
|
|
If it's a webform, your base class should inherit from System.Web,UI.Page .
|
|
|
|