|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
I have a gridview where there is two static columns which are template columns and few dynamic columns. there is a button in that page. On clicking on that button the dynamic column are dynamically creating. Each time I am removing the old dynamic columns and recreate the new columns according to some selection criteria. But my problem is on the third time click on the button the static template columns are getting removed from the gridview.
Thanks & Regards
Mishra
|
|
|
|
|
Ballita wrote: are getting removed from the gridview.
Looks like viewstate issue. ASP.NET won't maintain viewstate for dynamically created controls/columns. So you need to reconsider the event where you are creating dynamic columns.
Dynamic columns created on page_load/button click events won't keep viewstate. Try to do this in Init() method.
|
|
|
|
|
hi,
is it compulsory to put the webpart in the form tag?
i have a content page that i want to display a webpart, but it wont display properly. when i run my web application, it wont display properly. the "minimize" and "close" icon(at the top right of webpart) are missing.
i tried(in another simple application) putting the webpart in the form tag and it displayed correctly.
if it needs to be in the form tag...then how am i going to put it in my content page?
thanx...
|
|
|
|
|
Hi,
my problem is this:
In this cms that i have created, the administrator has an admin zone where he/she can alter setting for the given homepage. One function that i am working on is the ability to make the site eather public or private to the public. It is meant to be used before publishing the site to the public, so that the administrator can create all the content for the website and then afterwards make it public for any interested viewers.
I alter the web.config bye code, inserting and deleting <deny users="?" /> and <allow users="?" /> respectively.
The bug i get is than every second time i do so, i lose all css styles in the administration!
my question to you is: How can this be??
-- Christian
|
|
|
|
|
Kleindahl wrote: I alter the web.config bye code, inserting and deleting
Are you altering web.config at runtime ? Altering web.config at runtime will restart the application domain. That might be making problem. For doing such things, it's better to have one separate XML configuration file.
Kleindahl wrote: The bug i get is than every second time i do so, i lose all css styles in the administration!
Well, provided scenario don't have any relation with styles. How you are referring the style sheets ?
|
|
|
|
|
hi Navaneeth,
first of, thank you for trying to help me out.
I know that altering the web.config file will reset the application, but i figured that in this scenario where an administrator would most likely use it to make the site public the first time, it would not madder because outside users whould not be able to see the site yet, and therefore not be logged in.
having one separate XML configuration file
By this do you mean one more web.config file or just an simpler xml file that i use as a config file
To how i refer to the stylesheets:
I use themes so i have my admin styles in a theme folder and reference it in my default side (i am using masterpages)
hoping that you can help me out
-- Christian
|
|
|
|
|
Kleindahl wrote: By this do you mean one more web.config file or just an simpler xml file that i use as a config file
I mean a separate XML file, and keep the settings needed for site in this
Kleindahl wrote: I use themes so i have my admin styles in a theme folder and reference it in my default side (i am using masterpages)
Sorry, I don't have much idea on using themes. Try changing the settings to other XML file and stop updating web.config at runtime. That may solve the issue. Not sure
|
|
|
|
|
N a v a n e e t h wrote: I mean a separate XML file
Okay, i am gonna try it out as soon as i have the time. Thank you very much for trying to help me out.
But one thing that i do not understand is this:
if updating the config file doing runtime is so bad ( i have hearded it many times asking questions that i should not do so ), why does microsoft ship the framework with classes for making speciel config sections for programmers to use?
I thought that one smart thing would be that we programmers could store app settings and change then when needed?
-- Christian
|
|
|
|
|
Kleindahl wrote: why does microsoft ship the framework with classes for making speciel config sections for programmers to use?
Configuration section varies for each project or for each programmer. I will be following one method and you will be following the other. So it's tough to make a common config file.
But .NET framework ships with powerful XML manipulation classes. You can make use of those and manipulate with custom settings file. .NET allows us to write a XML serializable class. So using this a XML file can easily be read.
Security will be a main issue when you use custom XML configuration files, because it can be accessible via URL. So either you have to use .config extension or add the XML extension to HttpForbiddenHandler to secure it.
Hope this helps
|
|
|
|
|
i had not thought about the security issue of using a xml file, so thanks alot for bringing it to my attention. I have changed the file extention to .config now
-- Christian
|
|
|
|
|
Try to use XML instead of altering the web.config file at runtime.
And check whether your stlyesheets coding are closed while executing the application or building the application.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi,
thank you for trying to help out.
to the And check whether your stylesheets coding are closed while executing the application or building the application. i don't see how it should be possible for the styles to change in any way doing execution of the application?
Or by closed did you mean something else? Like finished loading?
-- Christian
|
|
|
|
|
hi i have a text box in asp.net page inwhich user enters characters now i want that on every charachter entered by the user a post back occurs now it is only being occured when enter key is pressed
can any one help me
|
|
|
|
|
My i ask you why you want this functionality?
my reason for asking is to best help you find the best solution.
-- Christian
|
|
|
|
|
I want user to serach people via post code now if the user enters sy k than response should be that list of all people with post code starting form k
now the user have to press enter to do that
|
|
|
|
|
Would it be a solution for you to do this with ajax insteed?
So that while the user is writing in the textbox they would instantly get a response from the server showing the people with the specific postal code?
You could code it so that the event did not fire until a specific amount of characters where typed, for instance 4 ...
-- Christian
|
|
|
|
|
|
no problem,
please consider rating my answer if you think that it helped you
Regards
Christian
|
|
|
|
|
IF you ask them to do then they will never rate your post ,
i saw many members they have written text for rating their replies as signature in their post
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... "
|
|
|
|
|
okay, i'll try that insteed
thx
-- Christian
|
|
|
|
|
This is not a good solution. As christian suggested, you can use AJAX to get the results with out refreshing the page. AJAX toolkit comes with a suggest control, which will be suitable for your requirement.
|
|
|
|
|
Hello Guys.
I have been trying to set up IIS but obviously missed a few thins.I missed the creation of a virtual directory but now yes I have managed to do so.
Another way is to setup a virtual server(ASP.NET) without using IIS.
Has anyone used this method before.When googling, all I got was "%windir%\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE" /port:1001 /path:"%CD%" /vpath:"/myWebSite"
But dont know where to start, unlike with IIS.
Can anyone help guys.Thanx in advance.
kagiso
|
|
|
|
|
I think you have to type this in Visual studio console.
|
|
|
|
|
I have managed to setup my page in ASP.NET virtual server but I get the massage that "unable to debug on the server.Unable to connect to the webserver.Verify that the webserver is running and incoming HTTP request are not blocked by a firewall."
How do I fix this??
kagiso
|
|
|
|