|
Hi All,
I have to freeze TreeGrid. My problem is that I am having a datatable (parent child relationship)from which I am creating TreeGrid using Javascript and html table. Now I have to freeze the first 2 columns and first row of this TreeGrid.
For freezing GridView I am using http://www.codeproject.com/script/articles/list_articles.asp?userid=1654009 this article.
As this class uses GridView control and I am using datatable, i need to make the change but I am not getting how do I start with it.
Please help me...
Thanks in advance.....
|
|
|
|
|
Hi,
I need help.
I have created a class "myClass.cs" and I have a default.aspx page.
When I add the following code to to codebehind it works.
TextBox myTextBox = new TextBox();
pl_Holder.Control.Add(myTextBox);
Obviously I added a Placeholder to the HTML page. This code, when I press a button displays the textbox dynamically.
My problem is that I have specified this code in a seperate .cs file and want to execute it. When executing I get an error pl_Holder is not in the current context. I know I should instanciate it but when I do nothing displays on the form.
Can someone please tell me how can I use a control from an .aspx file in a seperate .cs file.
Thank you!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
Illegal Operation wrote: I know I should instanciate it but when I do nothing displays on the form.
Of course not. Your form contains a placeholder. Your other class creates a NEW placeholder, which is NOT on your form. So, this can't possibly work.
What you're doing is a bad idea, you shouldn't be seperating code out from the page that defines the UI. But, the way to do it, is to pass your actual placeholder instance that you want to add a control to, into the class. A better idea is to have a class generate the control, and put it in the placeholder within your aspx.cs file.
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 )
|
|
|
|
|
Along with "definite", "separate" just has to be the other most commonly mis-spelled word in the English language... aargh!
|
|
|
|
|
Are you stalking me ? :P
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 )
|
|
|
|
|
Just never miss a chance to get one up on a C++ coder! Us VB lot, we have to get our own back somehow!
|
|
|
|
|
Fred_Smith wrote: Us VB lot, we have to get our own back somehow!
Yes, you have so little.... :P
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 )
|
|
|
|
|
|
how to add folders and sub folders to a treeview with out their complete path.
|
|
|
|
|
Sorry, you need to explain it better than that. If you don't know exactly where to put it, you just have eto choose a spot at random, but I don't know if that helps, your queston doesn't make enough sense.
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 )
|
|
|
|
|
m working with .net.if i go for a sub folder in a treeview then iam getting the fullpath from the beginnig like d:\parentfolder\childfolder like this .but if click on parent folder i should get only child folder like
childfolder but not complete folder.
|
|
|
|
|
Try In Google..U can find out the code in Google
|
|
|
|
|
Hi Guys i am facing a problem that memory size of our worker process keeps on growing and our web iste becomes slow , what could be the possible reasons, please reply ASAP,
regards,
|
|
|
|
|
A memory leak. Poorly written code. Hard to say more without seeing code.
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 )
|
|
|
|
|
King Shez wrote: please reply ASAP
Might because of memrory leak ?
are you using any COM component or 3 party tool ?
Are you creating many objects in your application ?
There are many reasons for this :->
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... "
|
|
|
|
|
Hi All,
I am currently busy trying maintain some else's code, it is asp.net1.1 within an asp site, they just pasted it a couple of subdirectories and there is issues regarding multiple web.config files in subdirectories and in the root etc.
I don't have any asp.net1.1 experience, only 2.0, and 1.1 compiled everything into a dll as far as I know but I want to see the code behind and the only page that I can view is the aspx, I can't locate the aspx.cs file. Also I can't find the dll, how does this work and where should I start looking for the code behind files.
The guy who did these left the company before I joined so I can't find out from him.
Any help will be appreciated
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
In 1.1, if he built a dll, the page would work without any .cs files, in fact you would deploy it that way. One has to hope there's source control somewhere that includes the full files, or they are on his PC, because if you're looking at where the site was deployed, they will not be there.
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 )
|
|
|
|
|
That is what I was afraid off, so I will have to redo the page from scratch
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
If you can view the page, you MUST have code in the aspx, or you MUST have a dll. It's not going to pull it from thin air. Worst case, you can decompile the dll.
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 )
|
|
|
|
|
If there is a dll it will be in the bin/ folder.
Otherwise, the "code-behind" will be inline - ie in the aspx file itself within <script runat="server">... </script> tags.
|
|
|
|
|
Fred_Smith wrote: Otherwise, the "code-behind" will be inline - ie in the aspx file itself within ... tags.
I didn't even consider that ( because he said he has a dll ). What a nightmare.
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 )
|
|
|
|
|
I looked in for a bin directory and there is only one, and the dll is not in there, also there is no inline "code-behind" so the source would be on his machine that has been formatted and given to a new person in the company
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Then the company is pretty stupid for not checking before he left, and for not having source control to start with.
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 )
|
|
|
|
|
I am in silence
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Well something doesn't make sense - if there's no dll and no inline code, I don't see how the application works at all!
|
|
|
|