|
Your paths are relative. Start them with a ~ and make sure you specify the path from the root. The .. works because you're specifying a step up, the control that renders this is in a subfolder, obviously.
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 )
|
|
|
|
|
Yes, it works. Thanks a lot
|
|
|
|
|
Anees Mitha wrote: we get the error "Error executing child request ..."
Have you set EnableViewStateMac=true on page3 ?
One more thing to consider when using Server.Transfer is, when you transfer from page1 to page2, URL in the address bar will remain as page1. But when you transfer again from page2 to page3, then your URL will be changed to page2. This is how Server.Transfer works.
|
|
|
|
|
Hi Navaneeth,
I have changed the path by starting it with a "~" and it is working. Also have never noticed on the point which u have mentioned above, after reading yr mail i observerd and it is working that ways. Thanks for yr help.
Regards,
Anees
|
|
|
|
|
Hi All
I am creating a custom control, in it i have to use a user control how can i add a user control to a custom control ?
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... "
|
|
|
|
|
Don't know exactly you can do this, try Page.Control.Add(UserControl). But why you need this ? In a custom controls all the HTML tags are written manually in the Render() method. So I don't think that you can use the user control.
Why don't you implement the usercontrol functionality in your custom control instead of adding it ?
|
|
|
|
|
If the functionality is readily available then why should write that again ?
Any way i think i will have to add that functionality now .
Again one question can i add asp.net controls to custom control ?
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... "
|
|
|
|
|
Sandeep Akhare wrote: Again one question can i add asp.net controls to custom control ?
You should look in to the ASP.NET control rendering. When rendering each control, Render() method will be executed. So you can write only HTML elements to the response using HtmlTextWriter object available on the overided method. Whatever ASPX tags you wrote inside this will be displayed on the page without rendering.
You can create object for the ASP.NET controls and write their rendered HTML to the Response instead of writing the tag.
Hope you are clear
|
|
|
|
|
You can try this :
protected override void CreateChildControls()
{
Control my = LoadControl("userControl.ascx");
this.Controls.Add(my);
}
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
|
Hi All,
I m running my application at server, n i have set session timeout period 400. but within a minute session has out,n i have st max pool size 10000, but problem not solve,plz help me if u have solution.
thanks.
|
|
|
|
|
Did you define below three property in your connection string. Set the property according to your requirement.
Connect Timeout=200; pooling='true'; Max Pool Size=200
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
yes i have defined all these three properties.
|
|
|
|
|
Sorry I think you are facing different problems that I had suggested you earlier.
In my perspective, you need to set out SESSION STATE SETTINGS in web.config file thus go through that configuration.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
what type of setting i have to done in web config,do u know then plz tell me.
thank for response.
|
|
|
|
|
Please go through below link:
http://www.dotnetspider.com/qa/Question17.aspx
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
plz tell me if u have solution for this.
|
|
|
|
|
hai all,
can any one help me,i just want to display menu items depending on the user login for ex: Admin.
i am new to .net2.0.
pls ,send me the sample code or send me the related url
thanks in advance
Thanks
Subbu.
|
|
|
|
|
What sort of menus ?
subbu.sk wrote: i am new to .net2.0.
What experience do you have previously ?
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 )
|
|
|
|
|
Hai Christian,
if admin enters in to the login form, then
i just want to display the (roles of admin) in menus.i just has knowledge about menus conceptually .
Thanks
Subbu.
|
|
|
|
|
Thanks for not answering any of my questions. What sort of menu, a javascript driven one ? A drop down menu, or just a set of buttons ?
subbu.sk wrote: i just has knowledge about menus conceptually .
Does that mean you've never written code before ?
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 )
|
|
|
|
|
hai,
want set of buttons,yes i have never writen any code in this task. thats why i told i i am new to .net 2.0
Thannks
Thanks
Subbu.
|
|
|
|
|
The basic way I would do this, is to use a repeater to render the menu, and to build a list of data objects which represent the data needed to set up a button. Then you can build that list via your permissions system.
subbu.sk wrote: thats why i told i i am new to .net 2.0
Sure, I saw that, that's precisely why I asked what other programming you have done in the past, I wondered if you're new to .NET 2.0, or new to programming altogether.
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 )
|
|
|
|
|
Hai ,
Thanks for u r responce. atleast i got the solution.by not using any repeater controls,
i think that u r not understand what i want.
any way thanku very much
Thanks
Subbu.
|
|
|
|
|
I understood you perfectly. There are many ways to do this, but a repeater is a good way to lay out a dynamic collection of buttons.
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 )
|
|
|
|