IE8
I upgraded to IE8 recently and it seem to be much smarter. However it does not display my websites the same way.
From what I have seeem it tends to disply more along the line of firefox as oppose to IE7
Discussion of Information Technology as a discipline.
I upgraded to IE8 recently and it seem to be much smarter. However it does not display my websites the same way.
For IE when i disable a control it takes the validation control out of play, but when I run the same file in songbird it does not work. It is not visible but it interferes with the submitting of the form.
It's simple but not very intuiative.
Sometimes vb.net application will turn the curesor for links (pointer) into text cursor (I).
Request Property Function and Example
VB.NET
<script type="text/javascript" language="javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args) {
//Use timer so that the script will wait .5 sec before it fires to let page complete rendering the txtDSChartNumber element
setTimeout ( 'setFocus(\'txtDSChartNumber\')', 500 );
}
function setFocus(controlid) {
if (document.getElementById(controlid)){
document.getElementById(controlid).focus();
document.getElementById(controlid).select();
}
}
</script>
Steps
Database: Microsoft SQL Server
' Add the input parameter and set its properties.
Dim parameter As New Data.SqlClient.SqlParameter("pk", Data.SqlDbType.BigInt)
parameter.Direction = Data.ParameterDirection.Output
cmd.Parameters.Add(parameter)
'set insertSql to somthing u do
cmd.CommandText = "begin transaction" & vbCrLf & insertSql & vbCrLf & "select @pk =cast(scope_identity() as int);" & vbCrLf & "commit transaction"
'added try block 7/10/08
Try
Dim msg = cmd.ExecuteNonQuery()
If Val(msg) = 1 Then
'parameter.Value returns the insert identity
msg = parameter.Value
End If
Catch
'output error
End Try