Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. Session("SomeVar") = strSomeVar
  2. Not sure if this will help but Ndoc from http://sourceforge.net/projects/ndoc works well in C#. You can even save as CHM.
  3. First of all if the user clicks 'Cancel' on the messageBox it will still go into the rest of the code. To run any ExecuteNonQuery you don't need the DeleteCommand of the DataAdapter, you only need the OleDbCommand object.
  4. You can use a RegEx on the lose focus event.
  5. The <script> tags go into the <head> section of the aspx file that is calling the popup. Then you can call it by doing something like this... <a href='javascript:OpenPopup()'>Open some popup</a>
  6. surround the table name with [ ] ie... [Table/Name] If at all possible I would remove any non-alpha characters from DB objects including spaces. (except for the under_score)
  7. try and run this in the command prompt.... aspnet_regiis.exe /i
  8. you can do it using javascript... <script language='JavaScript'> function OpenPopup(){ myWin=window.open('popup.aspx','Title','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=480,height=500'); } </script> You can also generate a javascript function from code-behind using Page.RegisterClientScriptBlock()
  9. Server.tranfer can only be used to open files on the same server as opposed to redirect wich can open any URL. Also, the former can maintain viewstate.
  10. Was IIS installed before or after the Framework? Also, does this happen even if you create a new project/solution from scratch?
  11. Is a .Net app going to start the SP? If so, then why not allow that same app to start the main/other .net app?
  12. My choice would be C#.
  13. In this case it's preferable to use Server.Transfer() rather than Response.Redirect().
  14. If you are doing this at design time then add a property to the 'asp:BoundColumn'... something like this... DataFormatString="{0:g}"
  15. Not that I know of , but you can use one of the clientside validators.
  16. Robby

    Page Load??

    I don't understand what you mean by this... "I can't seem to find any event that has the textboxes containing these values." I'm not sure which event you want ?
  17. I haven't used the wizard so I won't be much help there, but I do recommend that you pickup on how to the the above using mostly code. There are plenty of tutorials out there... asp.net, gotdotnet.com, msdn.microsoft.com etc...
  18. I prefer to create a template class and have my pages inherit from it, the CSS is in a seperate file and the JS is created on the fly (mostly in the base class) The same thing can be achieved with a user control for menus and such but I prefer to stick it into the base class as well.
  19. Also, consider removing your phone number and such from the posting above (for your own privacy)
  20. You can get help on cover letters at places like Monster.com
  21. Paste this into the code window of a form.... The controls are: txt = textbox btn = button Dim dt As DataTable Private Sub btnPrevious_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrevious.Click Dim cm As CurrencyManager = BindingContext(dt) cm.Position -= 1 End Sub Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNext.Click Dim cm As CurrencyManager = BindingContext(dt) cm.Position += 1 End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Const sConn As String = "Data Source=127.0.0.1;Initial Catalog=northwind;Integrated Security=True" Dim sSQL As String = "Select EmployeeID, FirstName + ' ' + LastName AS FullName from Employees " Dim da As New SqlClient.SqlDataAdapter(sSQL, sConn) Dim ds As New DataSet() da.Fill(ds, "EmployeeList") dt = ds.Tables("EmployeeList") txtEmployeeID.DataBindings.Add("Text", dt, "EmployeeID") txtFullName.DataBindings.Add("Text", dt, "FullName") End Sub
  22. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconstandardnumericformatstrings.asp
  23. Do you have the .NET help files installed?
  24. This should do it ... http://www.thecodeproject.com/dotnet/twaindotnet.asp
  25. look here http://ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpcondatetimeformatstrings.htm
×
×
  • Create New...