hey world i want to knw ,how can i reset my the primary key to 1 .as i have deleted all my dumy data . and time for presentation of the project :|
View Complete Post
I am working with a sql 2008 server express database in asp.net. I have a table which I will call table 1. Table 1 has a primary key called Order_Id which is an int and automatically increments. After deleting all the records from Table 1, how can I reset the primary key Order_Id to zero again?
Thanks in advance,
Photon
What is the easiest way to reset all the controls on a web form. Can I set "veiw state" to false for all of the controls with one command, do a response-redirect to its own page, and set view state back to true. What is the easiest way to do it.
Thanks
I'm building a user control to display detail information on a parent record. The user control will be displayed via an Ajax Modal Popup. The user control works and is displayed when expected. The problem that I'm having is that I'm not able to pass in the primary key for the parent. The control is displayed via the _ItemCommand event of a Repeater. In the markup for the user control, I explicity set the ContactId to 0 to avoid an error when the control loads (its still underdevelopment, eventually that I'll check if the value is valid).
I was assuming that I could change the property in the _ItemCommand event, but obviously its not working.
In the Page_Load event this code successfully sets the ContactId property of the control. The _ItemCommand event appears to set the value. However when I set a test label on the user control to the Me.ContactId, its showing '0' as if it was never passed in.
UserControlContactDetail.ContactId = "1462" test.Text = UserControlContactDetail.ContactId
Protected Sub RepeaterDirectory_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles RepeaterDirectory.ItemCommandProtected Sub RepeaterDirectory_ItemCommand(By
Hi. I need to set the Ref value as an increasing value starting with the number 2010 ... it will be a 12 digits characters.
I tried using identity but it doesn't work. Could anyone advice on how should one could insert an increment of 10 to the ref value? In case, my explaination is not clear, below is an example.
For an example:
Record 1: ref - 201000000123
Record 2: ref - 201000000133
Record 3: ref - 201000000143
....
Thanks!
Can I create 3 columns Primary key in a list using the MOSS 2010 or 2007
Actually My requirement is
I collect some information by Country,State,Dist wise Temperature
like
1. India-Andraprades-Hyderabad-Temp-30
2. India-Andraprades-KarimNagar-Temp-30
here first 2 column is Same but 3rd column is different that's I required 3 column is Primary Key
Any one help me.
Hi,
Does anyone knows if CTP 4.0 supports table with no primary key. I know Entity framework does.
I'm a beginner in asp.net and I have some problem inserting data into sql server 2005 with linq.
my code is :
Dim Result As New SMS.SendResult If Result.status = 0 Then Label1.Text = "Your Message Sent Successfuly" Dim db As New IGSSDataContext Dim out As New outbox With {.ClientID = intRandomNumber, .From = User.Identity.Name, .TO = TextBox1.TabIndex, _ .Time = Now, .Message = Message} out.ID = (ID) db.outboxes.InsertOnSubmit(out) db.SubmitChanges() TextBox1.Text = "" &nb
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend