change the code as blow.... protected void Button1_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("StoredProcedure1",conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@ID", SqlDbType.VarChar).Value=txtid.Text; cmd.Parameters.Add("@Password", SqlDbType.VarChar).Value=txtpassword.Text; cmd.Parameters.Add("@Confirm", SqlDbType.VarChar).Value=txtconfirmpassword.Text; cmd.Parameters.Add("@Email", SqlDbType.VarChar).Value=txtemailid.Text; conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); txtid.Text=""; txtpassword.Text=""; txtemailid.Text=""; txtconfirmpassword.Text=""; }
Elayaraja Sambasivam
Posts
-
Stored procedure -
Uploading the file to the same path on the server.Always add the exception message in your questions..
-
How to open a window in when user opens a emailInstead of sending the mail content as plain text, send as html there you could write your javascript. but iam not sure about, how the client machine antivirus will allow this kind of script in the mail content.
-
Process terminationFind the main window of the process first, next get the caption of window, check your condition, if it's satisfy then kill that process...
-
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))try with dispatcher.. Dispatcher.BeginInvoke(delegate() { List<AdImages> ImgList = new List<AdImages>(); ImgList = e.Result; int i = 0; foreach (AdImages img in ImgList) { try { BitmapImage image = new BitmapImage(); using (MemoryStream stream = new MemoryStream(img.ImgData)) { image.SetSource(stream); // exception raised at this line ImgSQL.Source = image; } Image img2 = new Image(); img2.Source = image; LayoutRoot.Children.Add(img2); posImage(img2, i, ImgList.Count); _images.Add(img2); i++; } catch (Exception ee) { } } });
-
Images upload to SQL databaseGive your web service method signature and exception details.
-
System.Security.SecurityException: That assembly does not allow partially trusted callers.You can't doit from your assembly. that should should be done in the hosted assambly.
-
Help need in gridviewuse css style for table Cell. this can be added from server side while rendering the grid cell. style.textOverflow = 'ellipsis' Or you can iterate the grid cells as TD , set the below attribute to the TD. TDCell.style.textOverflow = 'ellipsis'
-
Java script Error help is neededGetting all the checkbox object reference use the following script. var getAllcheckbox = document.getElementsByTagName("INPUT"); for(var i=0;i<getallcheckbox.length;i++)> { if(getAllcheckbox[i].type == "checkbox" && getAllcheckbox[i].name = "check[]") { //do your validation here... } }
-
Database Validationconnect the database , it will throw the exception, from the exception you can easily find, the database is not found!.
-
i am using asp.net with vbif you want to get the client machine hdd details. you should write a cab file using vb or vc, also you need to sign th component, otherwise you need to set some configuration in the internet explorer. through the cab , you can read any content from the client machine.
-
Read DropDownList Itemsdisable the post back for command button.
-
in bound column hyper link will be possible?yes it will work.
-
solution for getting postback data in gridview in PopupControlExtender in another gridviewwrite a javascript function like below. //index should be table row index. functoin showvalues(index) { //read the cell content like //tablename.rows[index].cells[hiddencolumnindex].innerText //hidden column cell can have the values , what you want to show for this row. show this values, whare you want. } call this function from linkbutton.
-
Passing datas from one form to anotther in C#.nethave a public variable in mdi window, once you open the child forms, in the form load assign the control to mdi public variables instead of access the form2 text box , access the mdi variable. regards Elayaraja.S
-
Alignment of controlsstyle = "overflowY :hidden;overflowX:auto"
-
Gridview Problemclear the internet temprory fiels and cookies.
-
get screen resolutionHi try to accomodate your page at any resolution, this is the best way to persent your pages, if you have any complicated design, use screen.availHeight, screen.availWidth, best way to keep the resolution in the server side, in the login screen, send this height and width as comma separated values by hidden control. once you authenticated the page, you will keep some user information in the session, same time keep this height and width in your session, Note: if the user resize the screen, server side values can't updated. Regards Elayaraja.S
-
Gridview with checkbox columnremove the gridviewrow from the gv1.rows, which are the rows are not selected.
-
Session Variable Problemsession variable will be reseted , once you close the browser window, if you want to keep the values until reset the server, use Application variables or cache variables. also - if the browser disabled the cookies, session variables will reseted every postback of the page. regards Elayaraja.S