Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. Heiko mentioned the IDE, this is the Visual Studio environment. You can double-click a button or textbox, this will write the code of the default event. If you want an event that is not the default then you need to scroll to the control (combobox in the top-left of your code page) once you select the control then in the right-hand combo select the event you want.
  2. Tools | Options | you will find text editor where you can change each environment indevidually or all of them.
  3. The answer's here http://www.xtremedotnettalk.com/showthread.php?threadid=79795&highlight=borderless
  4. What is the value of nColor after ColorHLSToRGB() ??
  5. I'm glad it worked out. You didn't make a fool of yourself, it was just an overlooked item that you now learned from.
  6. This is something that Squirm came up with a couple of years ago... dim nColor as long = yourValue nRed = nColor And 255 nGreen = (nColor \ 256) And 255 nBlue = (nColor \ 65536) And 255
  7. Are there any Null values in the table?
  8. Hmmm, I really should read more carefully :) , I just now realized what you said in your original post... Sorry. I guess Derek's suggestion is the way to go.
  9. David, the error is due to having 'OnEditCommand="dgrdDivision_EditCommand" ' in the aspx page and not having the event/routine in the class/code-behind.
  10. Why is it disappointing? I wouldn't use an Iframe, prefer to use a div tag... it works and it's smiple.... <div style="Z-INDEX:101; LEFT:150px; OVERFLOW:auto; WIDTH:772px; POSITION:absolute; TOP:31px; HEIGHT:172px" nowrap> //Place grid here </div>
  11. This function..... Public Function InsertIntoDivisionDb(ByVal dgrdDivision As DataGrid) As clDivision BindDataGrid() dgrdDivision_EditCommand() dgrdDivision_UpdateCommand() End Function ...makes no sense at all, you're passing in the datagrid but you don't use it and the function is supposed to return a Class but it does not return anything. I suggest just changing the Page load event to the following .... Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load If Not IsPostBack Then BindDataGrid() End If End Sub
  12. You don't have a sub called 'dgrdDivision_EditCommand' Where are you calling 'InsertIntoDivisionDb()' from ? And why are you calling the Edit and Update from it? The Update, Edit, Delete are supposed to be called after the user clicks then posts back of there asigned controls.
  13. You can always place the grid in DIV tags.
  14. You would need to create your own class.
  15. Are you trying to bind the textboxes to the data? In your code you are looping the DR, so what happens if there are 100 rows in it, will you display only the last row in your textbox?
  16. Did you create a solution with all 6 projects in it?
  17. Once the array is declared use the keyword Redim and or Preserve Redim nsPanel(10)
  18. No, the tag should start with the letter A
  19. The messagebox should be in the form not the class. The class should return a value, there are a few way of doing this, here's one: //This is in the Class: public class Class1 { public string SomeMessage() { return "Hello from Class1"; } } //This is in the form: private void button1_Click(object sender, System.EventArgs e) { Class1 c = new Class1(); MessageBox.Show( c.SomeMessage()); }
  20. In your Task Manager is "aspnet_wp.exe" running? Also, Is the virtual directory "webapplication1" created and is IIS running? (I realize it's installed but is it running?) If all of the above is true, run this in the command prompt: (at the location of your .NET framework) ie. C:\WINNT\Microsoft.NET\Framework\<your version>\ aspnet_regiis.exe /i
  21. You can assign the value to a Session object. dim temp as string = "hello" Session("SomeVar") = temp 'then after postback you can get its value like this.... dim temp as string if not Session("SomeVar") is nothing then temp = convert.tostring(Session("SomeVar")) end if
  22. This sample will help .... http://www.xtremedotnettalk.com/showthread.php?threadid=79596
  23. Thanks Bucky.
  24. int myAsc = Convert.ToInt32(a);
  25. @id is a parameter not a variable, you cannot concatinate it with the Select statement. It should be part of the string itself.
×
×
  • Create New...