|
Sounds like a basic SQL task to me. Where are you stuck ? Perhaps a basic book on SQL Server will help ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I m trying to fetch but that image is not still coming it shows like that their is no image.
|
|
|
|
|
I am using Crsytal Report's function
_rptDoc.PrintOptions.PaperOrientation =
CrystalDecisions.Shared.PaperOrientation.Landscape;
-Problem is when I export the report in pdf format the subreport is coming in the portrait dimensions only,although I have set the 'width' property of the BoxObject used inside subreport.
-But the same thing is working when exported to Word,Crystal Viewer and Excel.
-I am not able to find out why the width property is not working while exporting to pdf.
-Awaiting for your reply.Thank you in advance.
|
|
|
|
|
Hey, guys.
While compilation is pretty zippy in 2008, 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 / code on the site. This is a nuisance during the development stage.
What I'd like to do is generate one assembly per page. My assumption is that if I do this, then like a C++ compiler, when I fire up the debugger it won't recompile the 99 assemblies for the pages I didn't touch, just the 1 that I edited.
I know that something like this was an option in prior versions, but I'm not finding any Google love on the topic in VS 2008 for Web App projects.
Anyone have any insights on this? The Edit / F5 / Order a Pizza While The Freakin' Web Site Loads cycle is really getting old...
Thanks!
|
|
|
|
|
If such a thing is possible, I've never heard of it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Shazbot!
So, how do you deal with this? 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? Man, there's just gotta be a way to optimize that for dev work...
|
|
|
|
|
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.
|
|
|
|