Thank you very much.How about 'OK' and 'Cancel'?
if that's ok - check out :
http://aspnet101.com/aspnet101/aspnet/codesample.aspx?code=confirm
Hello David,
Thank's a lot, I will try the messagebox code.
Thank you very much.How about 'OK' and 'Cancel'?
if that's ok - check out :
http://aspnet101.com/aspnet101/aspnet/codesample.aspx?code=confirm
Hello David,
Thank's a lot, I will try the messagebox code.
please correct this error while debugging
it show the message box like this when we start the debugging in dot net 2003
But IIS is working properly.if i go for debugging it give this error.
Actually i have loaded 2003 and 2005 in single operating system , but don't say remove 2005 it working properly.
"Error while trying to run project : Unable to start debugging on the web ser server"
Click Help for More Information
OK Help
Plz help me.......... i am unable work without debugging some times.
if any one know reply me
Thx in advance
Hi
you have <compilation debug="false" /> in we.config
change it to <compilation debug="true" />
Hi,
Check out my post on the same topic:
http://geekswithblogs.net/vivek/archive/2006/09/12/90930.aspx
HTH,
Vivek
Quote:
Originally Posted by
please help me as i have to validate a text box for date...
>
>
My database table field size is only 10 chars for first name.
How can i make the user not to enter more tha 10 chars on the front end.
Is there any Max length property i can assign for the text boxes.
I have 4 text boxes in datagrid.
Thank you very much.Hi,
if it is single-line TextBox, you can use its MaxLength property like you normally can.
<asp:TextBox ID="xxx" MaxLength="4"... /
This works even if TextBox is in a DataGrid.
Thanks Joteke, I have the following code triggered when i click edit in the datagrid, then it will show all text boxes etc. where can i place the maxlength="4" property in the following code.
Thank you very much.
< Code >
Sub MyDataGrid_UpdateCommand(s As Object, e As DataGridCommandEventArgs )
Dim conn As SqlConnection
Dim MyCommand As SqlCommand
Dim strConn as string = "server=Rajender;uid=sa;pwd=sa;database=NORTHWIND"
Dim txtFirstName As textbox = E.Item.cells(2).Controls(0)
Dim txtLastName As textbox = E.Item.cells(3).Controls(0)
Dim txtTitle As textbox = E.Item.cells(4).Controls(0)
Dim strUpdateStmt As String
strUpdateStmt =" UPDATE Employees SET" & _
" FirstName =@.Fname, LastName =@.Lname, Title = @.Title " & _
" WHERE EmployeeID = @.EmpID"
conn = New SqlConnection(strConn)
MyCommand = New SqlCommand(strUpdateStmt, conn)
MyCommand.Parameters.Add(New SQLParameter("@.Fname", txtFirstName.text))
MyCommand.Parameters.Add(New SQLParameter("@.Lname", txtLastName.text))
MyCommand.Parameters.Add(New SQLParameter("@.Title", txtTitle.text))
MyCommand.Parameters.Add(New SQLParameter("@.EmpID", e.Item.Cells(1).Text ))
conn.Open()
MyCommand.ExecuteNonQuery()
MyDataGrid.EditItemIndex = -1
conn.close
BindData
End Sub
</ code >
In that case, you could declare EditItemTemplate for the DataGrid (declaratively in asox) in which you set the TextBox's MaxLength.
If you want to do it programmatically, then you'd do it in ItemDataBound method (when ItemType is EditItem)