Jump to content
Xtreme .Net Talk

jspencer

Avatar/Signature
  • Posts

    83
  • Joined

  • Last visited

Everything posted by jspencer

  1. Try using the 'Project' - 'Copy project' option. This works sweetly with frontpage extensions.
  2. Do your three tables all have PKs defined?
  3. You can also try Redgate ANTS Profiler which is excellent (but not free). They do have a trial period though.
  4. It would have helped if you had posted the error message. Have you installed asp.net on the iis server? If not, run this command.... C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
  5. The only starting point that I could find was: "You can extract thumbnails by calling IShellFolder::GetUIObjectOf to obtain an IExtractImage interface for each item you are interested in. But unfortunately you don't get a free ride on the shell's thumbnail cache."
  6. Thanks Robby, I'll give it a whirl.
  7. This code works, but is decidedly average: Public Function EvenNumber(ByVal Number As Integer) As Boolean Dim Result As Integer Result = Convert.ToInt32(Number.ToString.Substring(Number.ToString.Length - 1, 1)) Select Case Result Case 0, 2, 4, 6, 8 Return True Case Else Return False End Select End Function
  8. Can anyone think of a smart way to use the framework classes to test a number and tell me whether it's even or odd? I can test the last character in the number and if it's 0,2,4,6,8 then the number is even. This doesn't sound very smart though. Thanks.
  9. Are you setting the script on btnClick? If so, then the script is being assigned on the first click then executed client-side on the second click. Try putting the code in the form_load event and see what happens.
  10. http://www.kamalpatel.net/ConvertCSharp2VB.aspx
  11. Hurricanes don't suck, they blow. It's tornados that suck. You've got your storms all mixed up! ;-)
  12. Hard to use initially, but ever so satisfying......
  13. Pretending to be someone else. For example, the asp.net user account doesn't have any rights on the server, so you pretend to be the local administrator instead. You can have a look at this for more information: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspnetimpersonation.asp
  14. Can you post more code? There's not really enough to see what's going on.
  15. If you do this, it will process the rest of your code: Try response.redirect("home.aspx") Catch ex As System.Exception Finally oConn.Close End Try
  16. Sorry, missed that one. How about "#develop (short for SharpDevelop) is a free IDE for C# and VB.NET projects on Microsoft's .NET platform. It is open-source (GPL)" http://www.icsharpcode.net/OpenSource/SD/ Not sure if it does asp.net though.
  17. Try this out Tamer: Public Overloads Function IsNumeric(ByVal Value As Object) As Boolean Dim RegEx As Regex If Not Value Is Nothing Then RegEx = New Regex("(\+|-)?[0-9][0-9]*(\.[0-9]*)?") If RegEx.IsMatch(Value.ToString) AndAlso RegEx.Match(Value.ToString).Length = CType(Value, String).Length Then Return True Else Return False End If Else Return False End If End Function You should be able to easily convert this to c#.
  18. You can try the asp.net webmatrix: "ASP.NET Web Matrix is a community-supported, easy-to-use WYSIWYG application development tool for ASP.NET. It can be installed via a quick 1.3 MB download (about 5 minutes using a 56Kb modem). New features include: Access database support, J# support, design time enhancements including improved table editing and user-control rendering, many bug fixes, and much more! Best of all? It's absolutely free!" Look at http://www.asp.net/webmatrix/default.aspx?tabIndex=4&tabId=46 for further info.
  19. If you were to put the xml file in the root directory: http://localhost/mainMenu.xml Then if you had pages in http://localhost/Folder1/ Menu1.DataSource would then = "../mainMenu.xml" Then if you had pages in http://localhost/Folder1/Folder2/ Menu1.DataSource would then = "../../mainMenu.xml" Some interesting combinations of folders get a bit trickier, but if you maintain these virtual paths, then moving your pages around stays nice and easy. Hope this answered your question.
  20. jspencer

    Textbox

    That sounds like Internet Explorer doing the remembering Mike. I don't know off the top of my head how to clear the previous entries though. Good luck.
  21. Hi John, the short answer is that you'd have to have a class with a Person's name & a Primary key property. Create a new instance for each row you're adding to the combobox and then add the object. When you come to retrieve the selected item, you should then be able to cast the selected item back to your Person class and retrieve the Primary key quite happily. I hope this helps, sorry for not whacking some code together though, I'm a bit busy this morning.
  22. Listening to Snow Patrol in the car. Excellent stuff!
  23. You should really be using connection pooling. Create a new connection each time you need one using the exact same connection string. When you're finished with it, dispose it and the pool will do the rest for you. Don't keep the same connection constantly open because you'll have problems with multiple datareaders trying to use it simultaneously and throwing an exception.
  24. By making a msi installer file that installs the new files over the top of the old ones. You can make the msi quit if it doesn't find the application installed already.
  25. Are you looking for something like: <a href='mailto:<%# DataBinder.Eval(Container.DataItem, "EmailAddress")%>'> <%# DataBinder.Eval(Container.DataItem, "EmailAddress")%> </a>
×
×
  • Create New...