Click here to Skip to main content
15,922,584 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dynamically Generated Columns in DataGrid [modified] Pin
alexfromto16-Jun-06 3:02
alexfromto16-Jun-06 3:02 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
minhpc_bk17-Jun-06 19:51
minhpc_bk17-Jun-06 19:51 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
alexfromto19-Jun-06 2:56
alexfromto19-Jun-06 2:56 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
minhpc_bk19-Jun-06 10:19
minhpc_bk19-Jun-06 10:19 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
alexfromto19-Jun-06 11:00
alexfromto19-Jun-06 11:00 
QuestionTarget attribute of ASP:HyperLink Pin
peshawarcoder14-Jun-06 3:43
peshawarcoder14-Jun-06 3:43 
AnswerRe: Target attribute of ASP:HyperLink Pin
ToddHileHoffer14-Jun-06 4:03
ToddHileHoffer14-Jun-06 4:03 
Questionasp.net 2.0 Pin
ssamriti14-Jun-06 3:40
ssamriti14-Jun-06 3:40 
i m working in asp.net 2.0 and using database with it...made a table named ContactUs and stored procedures or_contactus_insert to insert the data and or_autogenerate to increment da contactid coulmn of contactus and classes, bt i m recieving an error of argument exception ..plz help me urgently..i m sending u code

Dim User As New CSUserInfo()

User.Or_FName = TxtFName.Text.ToString().Trim()
User.Or_LName = TxtlName.Text.ToString().Trim()
User.Or_Gender = RadioBttnListGender.SelectedItem.Text

User.Or_Email = TxtEMail.Text.ToString().Trim()
User.Or_PhoneNo = TxtPhoneNumber.Text.ToString().Trim()
User.Or_Street = TxtStreet.Text.ToString().Trim()
User.Or_Apartment = TxtApartment.Text.ToString().Trim()
User.Or_City = TxtCity.Text.ToString().Trim()
User.Or_State = TxtState.Text.ToString().Trim()
User.Or_Country = TxtCountry.Text.ToString().Trim()
User.Or_ZIP = TxtZip.Text.ToString().Trim()

User.Or_ContactByOrient = CheckContactByOrient.Checked

User.Or_Message = TxtTypemessage.Text.ToString().Trim()
Dim Orientconn As New SqlConnection
Dim SelectCommand As New SqlCommand

'Try
Orientconn.ConnectionString = System.Web.Configuration.WebConfigurationManager.AppSettings("Sconstring")
Orientconn.Open()

Dim OR_ContactIdDA As New SqlDataAdapter("OR_AUTOGENERATE", Orientconn)
OR_ContactIdDA.SelectCommand.CommandType = CommandType.StoredProcedure

OR_ContactIdDA.SelectCommand.Parameters.AddWithValue("@Tablename", "ContactUs")
OR_ContactIdDA.SelectCommand.Parameters.AddWithValue("@P_Key", "ContactId")
Dim OR_ContactIdDS As New DataSet("ContactUs")
OR_ContactIdDA.Fill(OR_ContactIdDS, "ContactUs")
'Dim IUserId As New ViewStateException




ViewState("IUserID") = Convert.ToInt32((OR_ContactIdDS.Tables(0).Rows(0)("ContactId")).ToString() + 1)////////i m getting error here dt contact id column is not of table contactus


''ViewState("IUserID") = Convert.ToInt32((OR_ContactIdDS.Tables("Or_ContactId").Rows(0)("Or_ContactId").ToString() + 1))
User.Or_ContactId = ViewState("IUserID").ToString()


Dim User1 As New CSUserDB
User1.InsertContactUs(User)



End Sub

samriti thakur
AnswerRe: asp.net 2.0 Pin
ToddHileHoffer14-Jun-06 3:53
ToddHileHoffer14-Jun-06 3:53 
QuestionDomCompareValidator Problem Pin
Praveen_S14-Jun-06 3:35
Praveen_S14-Jun-06 3:35 
AnswerRe: DomCompareValidator Problem Pin
Mircea Grelus14-Jun-06 8:42
Mircea Grelus14-Jun-06 8:42 
QuestionReapreter control problem Pin
Nagraj Naik14-Jun-06 3:34
Nagraj Naik14-Jun-06 3:34 
AnswerRe: Reapreter control problem Pin
Elina Blank14-Jun-06 4:28
sitebuilderElina Blank14-Jun-06 4:28 
GeneralRe: Reapreter control problem Pin
Nagraj Naik14-Jun-06 19:04
Nagraj Naik14-Jun-06 19:04 
GeneralRe: Reapreter control problem Pin
Elina Blank15-Jun-06 3:27
sitebuilderElina Blank15-Jun-06 3:27 
QuestionCount Visitors Pin
TheEagle14-Jun-06 3:26
TheEagle14-Jun-06 3:26 
AnswerRe: Count Visitors Pin
amaneet14-Jun-06 4:04
amaneet14-Jun-06 4:04 
GeneralRe: Count Visitors Pin
TheEagle14-Jun-06 4:15
TheEagle14-Jun-06 4:15 
AnswerRe: Count Visitors Pin
murtaza dhari14-Jun-06 6:37
murtaza dhari14-Jun-06 6:37 
GeneralRe: Count Visitors Pin
TheEagle14-Jun-06 18:26
TheEagle14-Jun-06 18:26 
Questionrename the file in vb.net 1.1 Pin
amaneet14-Jun-06 3:08
amaneet14-Jun-06 3:08 
Questionasp:Table Problem Pin
Brendan Vogt14-Jun-06 3:06
Brendan Vogt14-Jun-06 3:06 
AnswerRe: asp:Table Problem Pin
ToddHileHoffer14-Jun-06 4:01
ToddHileHoffer14-Jun-06 4:01 
GeneralRe: asp:Table Problem Pin
Brendan Vogt15-Jun-06 0:20
Brendan Vogt15-Jun-06 0:20 
QuestionHow to Implement Free Text Search in ASP.NET 2.0 Pin
VenkataRamana.Gali14-Jun-06 3:04
VenkataRamana.Gali14-Jun-06 3:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.