|
I was wondering if any of you have experienced the following behavior because I can't figure out why it is occurring.
When I switch between code view and design view for my site Visual Studio indicates "getting file xyz.gif" in the lower left before it renders the design view. It repeats this for any other necessary files needed to display this. That is all normal. The problem is that it is taking far too long. For example, files that are 1-2kb in size may take minutes to "get". The same thing happens if I CTRL + F5 to build my site. It takes way too long. Much longer than it did before to get the files.
The other odd thing is that it seems like it requests files it shouldn't need because they haven't changed at all between edits. For example, I'll modify a gridview color and hit OK and it starts redownloading xyz.gif which it just downloaded moments prior.
This never used to happen. I am using FTP instead of FrontPage extensions to connect to the site (c# asp) as I always have. The computer I am editing on just recently had Windows reinstalled from scratch with a fresh install of Visual Studio with all updates and SP's applied. It has also been several months since I have done development on the site so maybe something changed on the web host's end.
If I use an FTP client and connect to download files from my site it seems to go very fast so I am not sure why this is occurring.
Is there some cache'ing setting that I don't have turned on in my new Visual Studio install? Is there some other setting I need to toggle to improve performance? Any thoughts or ideas to help me drill drown the troubleshooting on this more?
Thanks!
|
|
|
|
|
Huw moch of memory you have?
Did you terminated all unnececary process in background?
Start->Run->msconfig.exe->Startup (Modify your startup programs)
|
|
|
|
|
2 gigabytes of memory. Plenty of it is free. There are no unnecessary startup items running. The CPU use is very low. Whatever it is is not resource related.
|
|
|
|
|
Try closing all open document in VS, Try delete suo file, Or try transfers all file localy, when finished, move back
|
|
|
|
|
How do I delete the suo file (not sure what that is)?
How do I transfer the files locally?
Thanks!
|
|
|
|
|
suo file resides beside sln file. Default Path is "My Documents\Visual Studio 2005\Projects\[Your Project]
suo file is a VS state, by deliting, you will have default view. Some times this files can go over 40MB.
sln file is a Solution, witch contains a group of projects.
InvalidTypecast wrote: How do I transfer the files locally?
Use FTP Client, such as fileZilla
For local, you woud have to configer database, or connection string
|
|
|
|
|
Saksida Bojan wrote: Use FTP Client, such as fileZilla
For local, you woud have to configer database, or connection string
Oh, I thought you meant there was some fancy way of downloading the site locally for some sort of cache'ing. I do know how to download it via FTP client. How would that help speed if I want to work on the remote site?
I am going to check the size of the suo file when I get back to the PC.
|
|
|
|
|
Do you have a passive mode for FTP, Al thou i don't know if that helps.
InvalidTypecast wrote: How would that help speed if I want to work on the remote site?
you will have all files, including in your virtual Server, to test and, when is finished, you put updated version to FTP. And you will avoid download and upload. Sometimes FTP requires a little more time to process command. I Have seen it happend. Of course, you could easier debugged the site. (With Breakpoints, not only TRACE)
If the Database does allow connection from remote machine you don't need to set your database. Only correct your connection string if needed.
|
|
|
|
|
It isn't using PASV at the moment, but I can give that a shot.
|
|
|
|
|
It turns out it was due to the fact these images being accessed were in a folder with 1,000 other images. Apparently this slowed down requests for these files for some reason. Once I moved these site images into a separate folder the problem went away.
|
|
|
|
|
I have been assigned a project that needs a treeView that shows documents listed in a grid.
Example: When a root node is selected it would show all the documents... A parent node is selected it shows all the documents listed under that parent... A child node is selected then is shows all doc under that child.
I have done extensive research on this and havne't found anything that I'm looking for.
Any help or suggestions would be great.
Thanks
Cisco2103
|
|
|
|
|
We will not do your homework. Ask specific stuff.
With such question, don't expect anything.
Look other post, and then ask appropriate question.
A HINT.
Get What Treeview has, then clear grid, and write code to add to grid.
|
|
|
|
|
i need to validate controls while updating in detailsview,
is it poss? if poss, give me your ideas.
Thanks in advance,
Priya.
|
|
|
|
|
Yes... First select the field to be validatde and go to edit template field and select Edit Template Field and Click and Drag the required validator as u like...try this.
|
|
|
|
|
Hi
Here is the situation, I have an aspx page with 10 buttons on it, when each button is clicked I load a user control using the following statement,
Me.DGPanel.Controls.Add(LoadControl("Controls/AmexUC.ascx"))
In each control there is a Label a Textbox and a Datagrid, When the contol loads to the page, Both the label and textbox display fine but there is no datagrid, Here is the code that I am using in the Page_Load of the user control
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
logPath = Request.MapPath("~\\Log\\")
dateFrom = Convert.ToDateTime(Request.QueryString("DateFrom"))
dateTo = Convert.ToDateTime(Request.QueryString("DateTo"))
AmexDataMgr.ListForCollection(dsn, uid, pwd, PriBox, SecBox, Sys, Prod, Serv, db_app, dateFrom, dateTo, "A", "A", coll, logPath)
coll = Me.LoadCollection(coll)
If Not Page.IsPostBack Then
Me.BindData()
End If
End Sub
And the code for BindData():-
Private Sub BindData()
Me.DataGridCtrl.DataSource = coll
Me.DataGridCtrl.DataBind()
End Sub
|
|
|
|
|
hi all,
here iam pasting some code....
message.Body = "Don't reply to this mail, it is automatically generated mail.Your new login password is " + newPassword ;
in the above code i used to send mail to the user a new password.
but the thing is i want to display the newpassword in BOLD characters, in user's mail
|
|
|
|
|
If you send it in html format, you can include standard HTML formatting tags.
|
|
|
|
|
No i am doing all this stuff in ASP.Net with C#
|
|
|
|
|
Yes, there is an option to specify the format of your mail, then you can include lovely text like:
.body = "<b>bold text</b>"
|
|
|
|
|
i want to make only newPassword into BOLD,
its(newPassword) a variable....
|
|
|
|
|
No offence to you, but this isn't exactly rocket science:
message.Body = "Don't reply to this mail, it is automatically generated mail.Your new login password is <b>" + newPassword + "</b>";
Don't forget to set your mail format to be HTML.
|
|
|
|
|
Thanks,
i got it...
|
|
|
|
|
bhattiprolu wrote: No i am doing all this stuff in ASP.Net with C#
Yes you are, But browsers, and email see only html tags. So when you think any kind of formating. You coud do in aspx, but since email isn't server side, you can only use HTML or plain text
|
|
|
|
|
I get the above exception on the following statement:
usrStatus=Convert.ToChar(dr["User_Status"]);
The db I'm using is MySQL. Currently the user status field is set to accept nulls. I changed to not null, but then I would get an error that says that the value is one character too long.
Any ideas how I can resolve this? thanks in advance.
|
|
|
|
|
It's because User_Status in that row is null and you can't convert nulls to other types.
What value is too long and what do you have the char set to (e.g. char(1))?
|
|
|
|