|
Christopher Duncan wrote: Do you edit a page, hit F5, and then take a nap until the entire app does the first access jit compilation in the browser?
as I said it starts pretty quickly for me. It will not produce any assemblies for the ASP.NET pages until I publish it. Are you saying it produces assemblies in bin directory for pages when you compile it?
|
|
|
|
|
|
Specifically, the pages are in the PracticalUSA namespace, e.g.
namespace PracticalUSA
{
public partial class Listening : PscPage
{
protected void Page_Load(object sender, EventArgs e)
and in bin, PracticalUSA.dll and PracticalUSA.pdb are produced with each build.
|
|
|
|
|
Is this a project migrated from VS2003? If yes, you might be using "Web application" type project which is different from the usual "Website project" available in VS2005 or 2008. "Website project" compiles all pages and provide a single assembly. If you use "Website project" type, pages can compile dynamically. You just edit the page, and refresh it on browser. The page will be compiled and result is produced.
I believe VS compiles the whole website in default settings. There is option to change the build to compile only current page rather than the whole project. This[^] MSDN article has more information.
Hope that helps
|
|
|
|
|
This is a web application (from scratch, not an upgrade), which I prefer as it gives more control over the project (I detest the whole App_Code folder thing). I've been looking at the web deployment project add in, which does precompilation for the live site, although that doesn't address what's bugging me. The build itself is quite zippy, I just hate how long it takes to do the jit compilation of the assembly the first time you load it in the browser (i.e., every time you load the browser, since you're constantly changing code during the dev process).
Oh, well. It is what it is. Thanks very much for taking the time to help, though - I do appreciate it!
|
|
|
|
|
It's been a long time, but I don't recall the way being so bad.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I just hate waiting for the browser to load when I hit F5. I know this might be difficult for you to visualize, but it turns out that I can be quite impatient.
|
|
|
|
|
Christopher Duncan wrote: the load time for the web site sucks each time I fire up the debugger because it has to do the jit compilation of the single assembly that contains all pages
What type of project is it? I have a project which has many pages but it starts the debugger pretty quickly.
|
|
|
|
|
|
Hi All,
I need one help regarding gridview,
I placed a dropdownlist inside the gridview for a perticular column let us assume that dropdownlist contains items like Pass,Fail and NA.
from the Database i will get any value(Pass/Fail/NA), now based on this value i want to highlight the dropdown list with corresponding value.
can anybody guid me, how to implement this.
i am doing this asp.net with c#.
|
|
|
|
|
Hi Dayakar,
There is an event of gridview called on RowDataBound. In that event you have to bind the dropdown text with the value i.e. coming from database.
suppose your dropdownlist name is ddlResult
and gridview gvResultSheet
gvResultSheet_RowDataBound( object sender, GridVieRowEventArg e)
{
DropDownList ddlResult;
if (e.Row.RowType == DataControlRowType.DataRow)
{
ddlResult = (DropDownList) e.findcontrol("ddlResult");
if(ddlResult != null && ddlResult.Items.Count > )
{
ddlResult.SelectedValue = yourdatasource value;
}
}
}
add proper code for yourdatasourcevalue.
And let me know if you have some trouble.
|
|
|
|
|
gvResultSheet_RowDataBound( object sender, GridVieRowEventArg e)
{
DropDownList ddlResult;
if (e.Row.RowType == DataControlRowType.DataRow)
{
ddlResult = (DropDownList) e.findcontrol("ddlResult");
if(ddlResult != null && ddlResult.Items.Count > )
{
ddlResultItems.FindByText(yourdatasource value).Selected = true;
}
}
}
try this.
|
|
|
|
|
Thanks Sneha. For adding this in my knowledge base
|
|
|
|
|
I have Page A which when link is clicked sends person to Page B.
When on Page B I want to automatically delete Page A. I am having problems. I tried all page cycles of Page B, including Load_Complete to delete Page A. The end result is I am still stuck on Page A, but receive a page error that page does not exist. (Obviously cause the code in Page B to delete it, deleted it)
Can someone offer me insight as to where on Page B I can successlly load it to completion and in the background delete Page A?
Thanks in Advance
|
|
|
|
|
You appear to have no damn idea what is going on. You cannot delete page A, it does not exist. If you're popping up page b, do a window.close to close the page, but the Page A class instance only exists when Page A is being generated, not while it is viewed.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi All,
I design a Web page, which having a GridView. I am binding another 3 Gridviews to that main Gridview, to show address, phone etc on mouse hover into main Grid.
Now I add a search panel just above to the grid, to search records. And that panel is invisible until u click on that. As soon as you click to show Search linkbutton, I don't know why but whole grid is repaint. I mean it rebind every thing. I made that main grid invisible and making it visible at Prerender to avoid repainting. but still it repaint whole grid.
I am using .Net3.5, Update panel. Please if any body know why it is repainting let me know to solve this problem.
Thank you,
Kam
|
|
|
|
|
If you're using AJAX then the grid should not refresh, unless the AJAX code you're using refreshes it. If you wrote your own AJAX code, you'd have control over this, as it stands, you're stuck with what the ASP.NET controls do.
If it's rebinding, then it's posting back, so I'd assume AJAX is not coming into play. In that case, the answer is, your code is broken. We can't say more without seeing it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I need to use ajax to handle price calculations based on user selections, i was going to use a checkbox list, but i discovered that i can't seem to get an async postback happening. i have a calendar extender on the page that works perfectly from the Ajax Control Toolkit, but i cant get this simple example to work. Works fine outside of this page/project. I'm using asp.net 3.5 the solution was converted from 1.1 to 3.5 a while ago. I cant post the whole page(rather long) this appears about 650 lines down up top i have
form
div
asp:scriptManager
then some tables some nested
in the row above this i have another dateTime. Now codeblock to see if i can get the dates out of synch which seems to be a standard example on all the sites i've looked at. Regardless of what i do the button in the updatePanel runs a whole postback, i've tried setting triggers, enabling partial rendering(and having it off) setting the children as triggers property, along with the render and update modes. I've read Dino Esposito's book on ajax along with other artciles and anything i can find.
<asp:UpdatePanel ID="JokeUpdatePanel" runat="server">
<ContentTemplate>
<asp:Label ID="JokeText" runat="server"></asp:Label><br />
<br /><%=DateTime.Now %>
<asp:Button ID="NewJokeButton" runat="server" OnClick="NewJokeButton_Click" Text="Show Me a Random Joke!" />
</ContentTemplate>
</asp:UpdatePanel>
I've disabled most of the things i do on page_load event incase it was messing with something now all i do is in the initial load of the page (!page.IsPostBack) and set up a db connection(dont open it just create it), which shouldnt matter. no matter what i try the whole page refreshes, but the demo project i have on the same server runs fine. I've tried the integrated server in VS 2008 sp1, and IIS on my local machine.
Any help would be appreciated, I think it may have something to do with having converted the project but i have no idea what or how to fix it.
John
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You should set up a update target in the update panel that points to your button control. That'll force the update panel to respond via callback to the button's click event.
|
|
|
|
|
I've tried setting up the triggers on the update panel, as well as ChildrenAsTriggers, i dont see where you can set up a target. The button click will change the text of a text box in the update panel's contentTemplate, and there's a datetime value that refreshes.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi...I am trying to implement AJAX autocomplete example....(I tried with the one which is specified on www.asp.net/ajax)....I did exactly what it was mentioned....but still i am getting error:
microsoft jscript runtime error sys.argumentundefinedexception:value cannot be undefined
I am using 3.5 framework,VS2008,AJAXControlToolKit....
Some suggested me to change web.config file....I even did that...but i am getting the same error....
Can anyone help me in this .....If u give any samples to implement that would be much appreciable...
Cheers,
Fast
|
|
|
|
|
Hi..thanks a lot any have i solved it....
Cheers,
fast
|
|
|
|
|
|
I have written a component that uploads a file to the user using Response.Header functionality. The problem is that after doing this, the response is ended = page wont handle more postbacks.. Need to set some predefined variables before it will work, so i thought maybe i could set the values and then perform a popup to the page that generates the download. Like clicking an href with target=_blank
Is it possible to do this from codebehind? (buttonclick)
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);
Morgonen är tröttmans mecka
|
|
|
|
|
1: How do I specify the width of the individual columns? I can set the overall width but don't know how to adjust the split between the row headers and the data entry/display part.
2: How can I specify the DefaultMode value at runtime, so that depending on how the user navigates to the page it loads in insert, edit, or read-only mode?
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|