Hi Everyone,
I couldn't find a regex forum so I'm trusting my fellow asp.net-er will have this type of knowledge.
I'm trying to validate a date field before I put it into a database. Does anyone have a regex for dates formatted in all of these ways 3/3/2005, 03/3/2005, 3/03/2005 and...
That won't work because I'm giving them two options select a item in the datagrid and update the selected item by clicking the update button or add new item and click add new button.
All I need is to be able to check if something is being selected so my code doesn't go through the update sql...
How do you check to see if a datagrid item has been selected?
I'm creating a editing form where a user will click a update button and if they didn't select a item in the datagrid I want them to receive a message, but I'm not sure how to check and see if a item has been selected in the datagrid...
sounds like a page.ispostback problem in your page_load.
make sure your [if not page.ispostback] is around your initial code in the page_load.
Good Luck.
Yes. The delete button has id = "btnDelete" and runat="server". The Edit button has id = "btnEdit" and runat = "server". I'm still unsure why this is happening.
Thanks!
Hi Everyone,
I have a datalist with an edit and delete button and both of them worked fine, until I wanted to put a message box confirmation for the delete button.
Now when I click the Edit button I'm getting this error on the lnkDelete.Attributes.Add... line:
Object reference not set to an...
Hi!
Dim i As controlname = New controlname
Dim i2 As LinkButton = CType(i.FindControl("lnkServices"), LinkButton)
i2.Visible = False
I keep getting this error when I try to make a link button invisible that is in a user control:
Object reference not set to an instance of an object.
Any...
Hello Everyone,
I'm using a datalist on a form. I'm comfortable using a datalist as a editing tool, by using the itemtemplate and edittemplate. The user could go to an item click a button (with editcommand) that executes the edit command and the datalist goes to the edittemplate allowing the...
Now that I have all the checkboxes and yes/no radiobutton data in my database. how do I get that 0/1 bit data back on the form when I want to view the stored data?
How do I make my checkboxes and radiobuttons read the 0's and 1's?
Thanks!
Hi Everyone,
I have a form that has multiple radio button (yes and no questions).
My concern is, what is the best way of saving these values? I'm guessing boolean.
I'm wanting to save these values in a database (SQL Server) so that I can retrieve them later on.
Just to explain the project...
HI!
Does anyone know how to create a button to print a form inside of an Iframe?
I want to create a button that will be clicked inside of an Iframe and only print that portion of the site.
Thanks!
The tables that will receive the data have autonumber primary keys. The point of the question is I'm putting data in a dataset until the final submission button is clicked.
I need to be able to delete rows of data from a datagrid before it is placed into a database. Once the data is in the...
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.