|
Try this
string treeNodeValue="value of the tree node";
int intTreeCount=0;
foreach (TreeNode tn in TreeView1)
{
if (TreeView1.Nodes[intTreeCount].Value == treeNodeValue)
{
Code for Adding child nodes here...
}
intTreeCount++;
}
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Hi,
I am using a TreeView control in the ASP.NET 2.0 my problem is that I am passing a TreeNode value from one function to the other and I have to add some child node to that node whose value i have passed. I am not getting how I add child nodes to the parent node whose only value is known.
Please help me in this regards,
Thanks
Sunil kumar verma
Software Engineer
|
|
|
|
|
I've seen this same question in a few places but no answers so I'm really hoping someone can help cause it's kinda urgent (i.e. my boss is really on my case about it!)
I have created an asp.net web service project with Visual Studio 2005. It works perfectly when run within the Studio environment. I now need to deploy it and added a web setup project to my solution. But when I try to add the "Primary Output" the only option I am presented with is the "Content Files". Where is the "Primary output"?
Everything I've read indicates there should be one and trying to install my web service onto my PC doesn't give me a working Web Service. i.e. when I try to navigate to the web service I get the "Cannot find server" page. The implication is that I'm missing something (Primary Output?) from my msi ? or have I failed to configure something in the IIS correctly?
Apologies if I'm being a bit thick but my boss thinks just cause I've got 10 years experience coding C++ on Unix that I should know how to do this too!
Thanks in advance
Steve.
|
|
|
|
|
Hello To Every One,
How to show a given text value in combo box if it is in collection of combo box..
Thank You..
|
|
|
|
|
Hi,
If this value is in text section of that combo then use following to find that item and set returned items Selected property to true.
List item = <yourcombo>.Items.FindByText("yourtext");
if (item != null)
item.Selected = true;
If that is in its value section then use following
List item = <yourcombo>.Items.FindByValue("yourvalue");
if (item != null)
item.Selected = true;
Hope this solves your issue.
Zafar Iqbal
|
|
|
|
|
hai every one
i want run aspx page to remote iis
i should copy all source file and paste to remote iis machice
while run the project i will get below mention error
please give me the solution
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.
thanks& regards
Dhatchinamoorthy.R
9894824838
|
|
|
|
|
Just do what it says - modify your web.confog file as instructed and then you will see a detailed error message which should point you in the right direction.
Don't forget to change it back again afterwards!
Fred
|
|
|
|
|
Hi,
I have i problem for a long time and can't resolve it.
Here is where it happens:
error page
I use external .NET controls on the page. When i remove them everything works fine. Expect, i need to set permissions for this assemblies(.dll). Please ,advice anybody how can i do it. I'll be very grateful, cause i tired of strugling with this problem for many weeks.
|
|
|
|
|
Have you deployed in the system?
or
Testing from your development server?
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
on the local server works fine but on remote server failed , cause secutiry trust level="Medium" not "Full" by default
|
|
|
|
|
Hi,
I am having a big problem with the interface and getting quite irritated about it.
This is what I encountered:
I have a table and I inserted two list box into one column which sits side by side of each other like this.
[ListBox1] [ListBox2]
Unfortunately when I open it in the web browser, the listboxes were in stack form like this.
[Listbox1]
[Listbox2]
And when I try to adjust the size of the table column width, it just would not move/change.
Did I miss out some settings or it's just how ASP.net works? Btw, I view it in IE7.
J Liang
|
|
|
|
|
Hi,
Why dont u put them in differennt column?
and if u insist them to be diplayed to in single cell then u can further create a table with two columns inside the cell and put listboxex in those columns.
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi Chetan,
Thanks, it works quite well for the mean time =)
J Liang
|
|
|
|
|
Well, the simple answer is not to use tables for layout, in case you hadn't heard there a bit antiquated - check out CSS (although I won't lie about its learning curve). However, select elements aren't block level elements so I don't see why they would force a new line. There is obviously something else going on that you're not aware of, have a look at the generated markup to see whats there, and if the width you set for the column is getting set correctly.
|
|
|
|
|
Use vertical align in the columns of the table cells.
It solved many a problems for me.
Hope it does for you too.
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
CSS...alright, shall consider that in my future development since I'd already doen most of my work here, hehe.
Vertical align...shall try that too
Thanks
J Liang
|
|
|
|
|
You might be able to solve this problem via CSS. Try creating a custom CSS class for the list views, with the property { display: inline }.
|
|
|
|
|
Ok, will consider that in the future, almost done on my website, hehe, that's why I start to pay attention to my interface
J Liang
|
|
|
|
|
Hi,
can anybody pls explain me in detail why do we use char.parse() function in Asp.Net and for what purpose it is used for and pls give me some examples of how to use it in program.
Regards
Vijay.
|
|
|
|
|
Would Char.Parse[^] be enough? Or what more detail do you need?
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
thanks friend, but i need to encrypt a password and for that i heard that char.parse() is used. Is it true or we have anyother methods for encrypting a password?
|
|
|
|
|
vijay_83 wrote: but i need to encrypt a password and for that i heard that char.parse() is used
That's what happens when you believe what you hear in the schoolyard.
vijay_83 wrote: we have anyother methods for encrypting a password?
There's a whole System.Crypography namespace full of stuff for encrypting and decrypting stuff.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks graus,
can u pls give me any example or redirect me to any useful links which explains encryption and cryptography in detail????
|
|
|
|
|
HELLO TO EVERY ONE,
i 'm having two login one for admin and other for user.
ther is one form which is accessed by both the users..
now i want that when any user login and sign out of that common page then user login page should be displayed other wise admin login page should be displayed..
Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles signout.Click
Session.Abandon()
Response.Redirect("AdminLogin.aspx?msg=" + System.Web.HttpUtility.UrlEncode("You have signed out SuccesFully. Please Sign in again"))
End Sub
now how i should purt the logic.
Thank You.
|
|
|
|
|
Hi my dear friends,
We know when we publish a web site by VS .NET default settings, many dlls generates with random names and add a element to page directive wich refers to the particular dll file. When we change a code line in a file and recompiling web site all dll names changes and we have to upload all of dlls . Now , my question is How we can aviod this?
Is there any way to uploading just one dll which we change its code ... ?
"Sorry for my bad english "
|
|
|
|