Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:862436
More Search Options
RSS Available
Matching Posts
Re: Changing window title of Visual Studio 2008?
shanakaperera , the solution you link to seems to work in VS2008 as well. Thank you very much!
Posted to
Visual Studio 2008
(Forum)
by
anders__f
on 10/3/2009
Changing window title of Visual Studio 2008?
We have several versions and branches of our project, saved in different folders in the SVN repository. Normally I have a number of these versions checked out locally on my computer. The Visual Studio solution file has the same name in all versions, and when I open the solution in VS it's the solution name that is shown in the window title of VS. If I would like to open two different solutions of different versions at the same time in two instances of VS, they have the same solution name so the
Posted to
Visual Studio 2008
(Forum)
by
anders__f
on 10/1/2009
Re: Parsing property attributes
Well, could you give an example of a class with some properties for which you would like to have such functionality?
Posted to
Web Forms
(Forum)
by
anders__f
on 7/20/2009
Re: Removing ");" that's being added with .RegisterArrayDeclaration()
Both RatheeshC's solution and Paul Linton's solution would probably work, but in my opinion there is a better solution than appending to a string (particularly if the array is large). This is my suggestion (though not tested) List<string> arrayElements = new List<string>(); int i = 1; while (sdrNewsTitles.Read()) { arrayElements.Add(string.Format(@"<a href=""~News/NewsArticle.aspx?={0}"">{1}</a>", i, Convert.ToString(sdrNewsTitles.GetValue
Posted to
C#
(Forum)
by
anders__f
on 7/18/2009
Re: Problems with displaying alert()
A quick reply, I haven't tested it... First, change the line string script = "<script type=\"text/javascript\"><strong class=\"highlight\">alert</strong>('" + cleanMessage + "');</script>"; to string script = string.Format(@"<script type=""text/javascript"">alert('{0}');</script>", cleanMessage); Second, try using Page_PreRender() instead of Page_Load(), it has the same signature
Posted to
Client Side Web Development
(Forum)
by
anders__f
on 7/17/2009
Re: c# string question
Dear RatheeshC , the only real difference between your post and the code that Steve Wellens posted before, is that you are using a for loop to concatenate the strings. In my opinion, there is absolutely no reason to choose this before the String.Join method. If you use Join() you keep the code cleaner, easier to read and understand. Another aspect (which maybe not is that important in this case with just three strings) is that of concatenating strings by +=. To get better performance you should consider
Posted to
C#
(Forum)
by
anders__f
on 7/11/2009
Re: Image processing problem
Have you run in debug mode? On which line is the exception thrown?
Posted to
C#
(Forum)
by
anders__f
on 7/11/2009
Re: Save the name before upload files
In line 24 in your code you already have " FileUpload1.FileName" which is the original file name. Change line 32: cmd = New Data.SqlClient.SqlCommand("insert into files (imagename, filesname, originalname, freelancerId, fileshyperlink) values (@imgname, @flsname, @originalname, @UserID, @flshyperlink)", sqlConnection1) After line 36, add this: cmd.Parameters.Add("@originalname", Data.SqlDbType.NVarChar).Value = FileUpload1.FileName You need to add a column "originalname"
Posted to
Getting Started
(Forum)
by
anders__f
on 7/10/2009
Re: generating unique random number
You could do something like this. Add the images to a list, randomize a index and pick that image from the list. var list = new List<MyImageType>(); // fill list with images... var random = new Random(); while (list.Count > 0) { var index = random.Next(0, list.Count); var image = list[index]; list.RemoveAt(index); }
Posted to
Getting Started
(Forum)
by
anders__f
on 7/5/2009
Re: generating unique random number
Yes, using Guid is a good idea to generate unique ids. But, as far as I understood the question, this is not what is asked for. Basically he wants to randomize an array, but in my previous solution suggestion I took a slightly different approach.
Posted to
Getting Started
(Forum)
by
anders__f
on 7/5/2009
Page 1 of 4 (34 items) 1
2
3
4
Next >
WindowsClient:
XslCompiledTransform and large template elements
WindowsClient:
The Future of Client App Dev : WPF and Silverlight Convergence
Channel 9:
PDC09 GeekFest Party
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
Channel 9:
The Visual Studio Documentary: Jeff Hadfield Full Length Interview
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 9:
The Access Show: Managing Access Databases with SharePoint
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online