Search results for query: *

  • Users: Craig
  • Order by date
  1. C

    Opening a web project

    Open visual studio, on the start page there is: Open: Web Site... | Project... Create: Web Site... | Project... Click Open Web Site and select the folder that contains the asp files. ..Alternatively, File > Open Web Site (and navigate to the folder with the files)
  2. C

    Returning a multidimentional array

    Is it possible to return a multidimensional array from a function? If so, how? If not, what would you suggest as a workaround? Thanks EDIT: nvm, got it.. i feel stupid now
  3. C

    Connection string in web.config

    When I generate a connection string it comes up with this: <connectionStrings> <add name="DatabaseConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>...
  4. C

    write an XSL document at runtime

    Well the reason I want to use a gridview is that it has the headings along the top, or maybe there is a way to modify how a detailview is displayed?
  5. C

    Survey Builder - Dynamic Forms

    Ok say you have a page with a label with its text property "Do you like blue cheese?" and next to it a dropdown list with Yes and No as its items. on a new line you have a label with "What about red wine?" in another label set its visible property to false then in the selectedindexchanged...
  6. C

    write an XSL document at runtime

    Hi, the problem is i want a Gridview to show just 1 (dynamic) record from an XML document. Is there a simpler way than creating a new xsl document during runtime and linking it to the xmldatasource? If so, how? If not how do i create an XSL document at runtime Thanks
  7. C

    Simple Question Listbox..

    is your listbox called listbox1? if so Textbox1.Text = ListBox1.Items.Count.Tostring ------- If Listbox2.Items.Count = 0 Then ListBox1.SelectedIndex = 0 End If
  8. C

    filtering the records in a Detailsview

    Detailsview not gridview Is it possible to change what item is shown in a detailsview object from getting a value from post? eg if the url is detail.aspx?cat_no=0002 how can i set the detailsview to display all of 0002's details
  9. C

    what does Mod and Fix mean?

    I'm not sure what Fix is, but Mod is Modulus, which is basically the remainder you get from dividing two numbers EDIT: Vis beat me to it :)
  10. C

    Comma Problem string manipulation

    Dim loopzip_code As String = Nothing Dim loopstore_code As String = Nothing 'loopzip_code = "0" 'loopstore_code = "0" For i as integer = 0 To DDPostCode.Items.Count() - 1 If DDPostCode.Items(i).Selected Then loopzip_code &= "'" &...
  11. C

    Validating multiple fields with one validator?

    Couldn't you put this in an If..Elseif sort of format?
  12. C

    how do i hide a start bar

    Haha Mikey says hello back :P And would i get that beer if i were to make a custom control called taskbar :D sorry for (some strange reason) thinking you didnt know what the taskbar was!!
  13. C

    Count total number in listbox?

    if you want to just put the number of items the listbox has into a textbox: TextBox1.Text = ListBox1.Items.Count If you want to add each item thats in the listbox into the textbox you could do something like: Dim myStr As String For a As Integer = 0 To...
  14. C

    Validating a combobox

    If ComboBox1.Text = Nothing Then MsgBox("Select a value!") Exit Sub 'Or function End If
  15. C

    Please Reply about coding vs designer/wizard practise

    for question 2: For Each Ctrl as Control in Me.Controls If TypeOf Ctrl is Textbox Then Ctrl.Text = "" End If Next Loops through every control on the form, checks if its a textbox, if so it will clear it There are many ways to code, so there isnt one "right way"
  16. C

    Custom buttons on windows forms

    oh! thanks :p Also what about: focuspen.penstyle = penstyle.dot 'penstyle is not a member of System.Drawing.Pen Sorry to be such a bother
  17. C

    Custom buttons on windows forms

    Classes constructor?
  18. C

    Custom buttons on windows forms

    Vis781, I have this code here but there are a few errors that i will highlight in red and reason in blue: Public Class UserControl1 Inherits System.Windows.Forms.Control 'windows generated code SetStyle(controlstyles.AllPaintingInWmPaint,True) 'Declaration Expected...
  19. C

    Datasets and comboboxes

    if you set the text property to nothing it should do that by default, or for some reason if it doesnt do combobox.selectedindex = -1
  20. C

    Custom buttons on windows forms

    Hah.. well there you go it's because my windows theme itself was a windows classic one, if i change it to XP it works :p If I wanted this to work on other users' systems would I have to include the skybound dll to my setup project?
Back
Top