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)
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
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"/>...
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...
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
is your listbox called listbox1? if so
Textbox1.Text = ListBox1.Items.Count.Tostring -------
If Listbox2.Items.Count = 0 Then
ListBox1.SelectedIndex = 0
End If
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
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 &= "'" &...
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!!
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...
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"
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...
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.