Mnu1.Items(1).Selected = True
Mnu1.FindItem("Nutrients").Selected = True
mnu1.Items(indexToSelect).Selected = True
MenuItem mi = this.Menu1.FindItem("Home"); mi.Selected = true;
this.Menu1.Items[0].Selected = true;
Mnu1.Items(1).Selected = True
Mnu1.FindItem("Nutrients").Selected = True
mnu1.Items(indexToSelect).Selected = True
MenuItem mi = this.Menu1.FindItem("Home"); mi.Selected = true;
this.Menu1.Items[0].Selected = true;
Dim Nome As String = "Carlos Galhano"
Dim firstword As String = Nome.Substring(0, Nome.IndexOf(" "))
Dim lastWord As String = Nome.Substring(Nome.LastIndexOf(" "c) + 1)
Response.Write("first: " & firstword & " Last: " & lastWord)
2 errors can happen:
a) “504 5.7.4 Unrecognized authentication type”
And, after was resolved, (b) happened:
b) “550 5.7.1 Client does not have permission to send as this sender”
http://galhano.com/?var=1&var=2&var=3&var=4
vb sample:
Dim arr = Request.QueryString("var").Split(",")
For Each s In arr
Response.Write("<br />var:" & var)
Next
Imports System.Diagnostics
Dim sw As New Stopwatch()
sw.Start()
' Do the work here
sw.Stop()
Console.WriteLine("Elapsed time: {0}", sw.Elapsed.TotalMilliseconds)
ListItem li =new ListItem(); li.value="PT"; li.Text="Portugal"; dropdownlist1.Items.Add(li);
or
dropCategory.Items.Add( New ListItem( "Portugal", "PT" ) )
Fix corrupted Public Folder in exchange 2003:
1. Dismount the store
2. From a command prompt, navigate to z:\program files\exchsrvr\bin folder where z: represents the drive where the exchange program files were installed.
3. Run
eseutil /p "z:\program files\exchsrvr\mdbdata\pub1.edb"
4. Run
eseutil /d "z:\program files\exchsrvr\mdbdata\pub1.edb"
5. Run
isinteg -s servername -fix -test alltests
(choose the Public Folders when prompted)
6. Run the above command again to make sure isinteg has fixed all errors (last line should read 0 errors and 0 fixes).
7. Re-mount the Public Folder store.
All should be repaired now.
<asp:TextBox ID="txtDate" runat="server" ></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="MM/dd/yyyy" OnClientShowing="showDate" > </cc1:CalendarExtender>
<script type="text/javascript" language="javascript">
function showDate(sender,args)
{
if(sender._textbox.get_element().value == "")
{
var todayDate = new Date();
sender._selectedDate = todayDate;
}
}
</script>