Is there anyway you could create the controls while you are making the table? that way you could avoid using the place holders and just put the controls in to start with: no searching for the proper place.
If the code gets too cluttered you could create a function that determines the proper...
Instead of using Response.Redirect you could try
ScriptManager.RegisterClientScriptBlock(this, typeof(string), "postBack", Page.ClientScript.GetPostBackEventReference(new PostBackOptions(this)), true);
I know it's a bit long but if you have any update panels or ajax stuff on the page you...
I have an existing ASP.NET 2 webpage using Windows Authentication. I'd like to set up a custom Profile Provider so I can stop storing all the user information in sessions.
I have created the class FormsProfileProvider (it's for an online form site) and it inherits from ProfileProvider. I've...
So if I have my page load remove the session variables after it has gathered the data from them and click a link on the page they won't exist when loading the next page.
What if I use Response.Redirect(url)? Page_Unload will still be called and I'd have to remove the session variable on...
That's a good idea, I can use it to clean the page specific variables on the first loading of the page. At least I won't have problem object states.
The only problem is it doesn't solve the problem of those session variables existing while browsing the rest of the site. So server memory is...
I am having some issues with the site I'm working on right now. It's all aspx with c# codebehind.
Most of the pages have objects of classes I have created. Those objects were becoming null on every post back so I started loading them into session variables on page_unload and then reloading them...
I finally found my problem after thoroughly checking several watches and seeing that the GridView had rows in it but wasn't displaying. I wasn't adding the controls deeply enough into the page.
There was an AJAX update panel where my button to generate the results resided. After changing my...
I'm not certain how I would avoid using a datasource even with stored procedures. I could change the current datasource to execute the procedure rather than run a SELECT command but it would still have all the same parameter requirements.
Thanks for the suggestion. If I'm just not understanding...
I just realized that I forgot to set the PropertyName for my parameter and fixed that but it still gives me no results. When I set the default value I can get results but even when I type something different into the TextBox the results don't change, defeating the purpose.
Is it even possible...
I've been tasked with creating pages to allow users to create edit and display their own reports. I have the generation functioning properly, if not efficiently but it's when I go to the running of the report that things get problematic.
Because the reports are dynamic they can have any number...
Hi guys,
I'm running IIS6 on Windows Server 2003 Web Edition SP2. I have an asp.net2.0 page for several online forms. When agents attempt to log in to the page with the correct credentials they are redirected straight back to the login page.
I have checked the IIS logs and I know that the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.