13,153 Topics
![]() | |
hi i am getting error plz error SqlConnection conn = new SqlConnection("Data Source=RAVI-PC\\SQLEXPRESS;Initial Catalog=personals;User ID=sa;password=sa;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(" select * from table_2", conn); DataSet ds = new DataSet(); da.Fill(ds, "table_1"); conn.Open(); SqlCommand SQLINSERT =new SqlCommand(); command.Parameters = "insert into table_1(ID,name,address,phone,city)values('@id','@name','@address','@phone','@city')" ; SQLINSERT.Parameters.Add(("@ID",Textbox1.Text.ToLower) SQLINSERT.Parameters.Add(("@name",Textbox1.Text.ToLower) SQLINSERT.Parameters.Add(("@address",Textbox1.Text.ToLower) SQLINSERT.Parameters.Add(("@phone",Textbox1.Text.ToLower) SQLINSERT.Parameters.Add(("@city",Textbox1.Text.ToLower) SQLINSERT.ExecuteNonQuery() | |
Hello, is it possible to refresh my gridview table without reloading the page? i'm inserting/updating data on a button click and would like the gridview to refresh when the data has been updated. it is bound to a database, so i guess i could just run the select command again … | |
Hello (again) I have a problem with my SQL, all the other statements i have written work so I can't understand why this one isn't!! the sql is... sql = "Select * From Skills Where StampNo = " & Stamno & " Cell = " & cell & " And … | |
Hello, I have got a dropdown box that is displaying data from a table in my database. when i select an item in the list i want to change the text in a label to what has been selected in the list. this is the code I am using to … | |
Hello, How to write Code into Hyperlink of datagridviewcell I have a datagridview which is connected to the database and data is coming from the database than how to write code inside the hyperlink??? | |
I would apprecaite any assistance with this task.. SourceForm.aspx contains a databound gridview which I have added a checkbox column for multiple row selection. OnClick of a button I want to display any selected rows on another page, Target.aspx So far I have successfully captured textbox input properites using PostBackUrl … | |
Hello, I have got an image at the top of my page, in the div logindisplay container. in design view it looks alright but when i preview it in the browser it doesn't! how do i get it to display correctly? I am really new to asp.net so I imagine … | |
Hi all, I want to change the format of the DetailsView. I tried to change the code but it gives me error. What i want to do is switch the postion of one column with another one and i want to control the size of the text box in the … | |
hi guys, i have a database with a bunch of start and end dates for various users what i envision to do is depending on the user logged on that user only sees calendar values for the start and end range example: User Travis Start 21/06/2012 End 21/09/2012 Hence on … | |
Hi guys, I have a dropdownlist binded to a sqldatasource and the result set contains about 394,000 serial no. This is making the page crash and i cannot mess with the table architecture. I would like to know if trhere is a way to limit the results and then retrieving … | |
Hi, I'm trying to upload multiple image to folder and insert the image information into a database. I have been successful in being able to upload the images to the folder (thanks to a tutorial online) but when I try to add the code to insert the image information to … | |
Hello guys, I'm trying to learn asp.net mvc 3, but am having real nightmare with database queries :( I added a new sql server database in my project under app _data folder and created this little table where account_id is primary key and identity column. I added new ADO.net entity … | |
Hi everybody, Wondering if you could give me some help with an error I have with NuSoap and my C# .NET project. I am trying to return an array of arrays from my PHP NuSoap Web Service to my .NET application. My PHP Code: $server->wsdl->addComplexType( 'GraphData', 'complexType', 'struct', 'all', '', … | |
Hi, I'm working with Visual Web Developer Express 2010. I have a registration form that looks as in the attached file. I'd like to get some suggessions on the design of the form as it doens't look professional. The 'Batch' section has to be improved. Please advice. Thanks | |
hi, i m doing a project in asp.net using visual studio 2005, the topic is Hospital manage ment. I couldn't understand how i will start this project i m getting confused!!!! plzzz help me how i will make this website!!!! | |
Hello, I am trying to make a web site. i have started to play about with the style sheet that is auto generated the make it how i like, My question is how can i put a background image in the .LoginDisplay class? I have tried editing it as follows … | |
I just got an error when I clicked on the tutorials tab on the ASP.NET page, is this just something to do with my settings or is it an issue ? Cheers | |
hello i want to paging in repeater control asp.net using c# .i want to 10 record show in one page how its possible..?? | |
Guys i was trying to make some changes in the default ASP.net project file. I am making a modal dialog box for login with the help of a video on [youtube](http://www.youtube.com/watch?v=zLiEutUlqok) (click on the link for that video) in ASP.net. Now here is the problem. I took the guidance of … | |
Hello, I have got a message box that is displayed when a database is successfully updated. my problem is when it displays the msgbox it is behind the browser. how can i make it so it is displayed on top of the browser? can i also get it to run … | |
Hi, I am able to delete the data from database. My Problem is how to delete a file from the folder that is linked to the database using c#, asp.net. Below is my code snippet for your reference. I would greatly appreciate your help/suggestion. Thank you. protected void lnkdelete_Click(object sender, … | |
hello ! I'm working on a Registry page for my webSite in ASP and I'm trying to get results of a prcedure from my database which is checking if there is any duplicates of loginNames or emails when there is inserting to Dbase. The problem is I can't finde any … | |
hello i want to hide some controls in repeater asp.net using c# how its possible...?? i want to hide or disable linkbuttton and edit or delete button in repeater control of asp.net..how its possible kindly tellme as soon as possible... thanks in advance..... | |
I know .NET is a Microsoft framework. I currently use Visual Studio 2008 for C++ programming in school. Am I using .NET? What is .NET? More specifically, is C++ a .NET framework by default? Does it just relate to the class libraries? | |
I have a console application that I need to run a stored procedure in but I'm getting this error: a t S y s t e m . D a t a . S q l C l i e n t . S q l C o n n … | |
I am working on Admin panel of Asp.Net Site.As usual first task in this case is of User Management.I dont know how to assign different roles to different users. i am using SQL SERVER 2005 on the back end. i dont know that either i create users from back end … | |
Hello, I am new to asp.net i have had some experience making windows in vb.net (VS2010) I am trying to get my web to query a database then I want to display some of the returned data. the code I have is.. Imports System.Data.OleDb Partial Class Demos_Iain Inherits System.Web.UI.Page Protected … | |
hello i want to display data from multiple tables with multiple rows using repeater control in asp.net using c#? how its possible tell me as soon as possible ...??? | |
Hello, I have a repeater that has multiple controls in them such as checkboxes, dropdownlists and textboxes. In my case I have a repeater with two items in it. The first items list works fine, but the second has two textboxes returning the initial value that was bound on page … | |
Hi guys, I have found interesting code.. Unfortunatelly I dont know how to use it :/ [CODE]public void Delete(string ouPath, string groupPath) { if (DirectoryEntry.Exists("LDAP://" + groupPath)) { try { DirectoryEntry entry = new DirectoryEntry("LDAP://" + ouPath); DirectoryEntry group = new DirectoryEntry("LDAP://" + groupPath); entry.Children.Remove(group); group.CommitChanges(); } catch (Exception e) … | |
Hello, I know nothing about web development or ASP.NET. I started a tutorial tonight that consisted of cutting and pasting code into the editor. Now I am getting an error with the code I have cut and pasted. Does anyone know what is wrong with calling the RenderBody() on line … | |
Hi all, I am trying to write a code for logout, and I want to clear session My code Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click Session.Abandon() Response.Cookies.Add(New HttpCookie("ASP.NET_SessionId", "logAccount")) Response.Redirect("WebForm5.aspx") End Sub and i want to disabling browser's to go back please hellp !!!! | |
Hi, I'm quite new to Web Development. I'm creating a web site and it has a Registration Page where I managed to create the form. But when the user clicks on the 'CreateUser' button, how do I display a message on the form to show that the User is created. … | |
hi this is my connection string SqlConnection conn = new SqlConnection("Data Source=RAVI-PC\\SQLEXPRESS;Initial Catalog=personals;User ID=sa;password=sa;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(" select * from table_2", conn); DataSet ds = new DataSet(); da.Fill(ds, "table_1"); conn.Open(); Actually my doubt is how to insert(data entered in texbox) and delete and update view record from … | |
hello i want to add two buttons in page like and dislike .. user can like only one time also shows the values of likes pressing button(means like counter value show) and if user dislike then decrement in likes value how its posssible in asp.net using c#? | |
I have Designed a webpage in asp.net using CSS file, now i want to set my this page as a Asp.net masterpage and then i want to inherit my other pages from this page | |
Ok I simply don't know how I am going to do this here is what I need: I have exercises in my db (question id,question text field,close/open(bool) field,right answer field and 3 wrong answer fields which are null unless it is a closed question) What I want to do is … | |
Guys i am trying to make an ASP web application for a small organization. They want is that barcode reads the information of the bill which means that whatever User have taken from a grocery store, barcode reads the 1. Bill Number 2. Amount 3. Date 4. Store Name 5. … | |
Here is the code (content is the name of my <div>): foreach (Exercise ex in exs) { Label label = new Label(); label.ID = Convert.ToString(ex.ex_id); label.Text = ex.ex_text; TextBox textbox = new TextBox(); textbox.Width = 100; textbox.ID =Convert.ToString(ex.ex_id); id_counter++; content.Controls.Add(label); //content.InnerHtml += "<br />"; content.Controls.Add(textbox); } It crushes on the … | |
Hi, I have an aspx page in that when i select check all option and when i click on submit its popping an error message length of the query string exceeds th max query string value.so i have done lot of modifications on web.config file none of the changes are … | |
I want to display values in a listview within another listview. I already displayed values in the parent listview(lvPackage) but I don't know to insert values in the child listview. I'm using mysql. My only problem is that I don't know how to display values lblPackAct in child listview(lvPackAct). Here's … | |
hello i want to write a filedownload code behind html button how its possible...?? i don't know how to write asp.net(c#) code behind html button on click event? | |
How can I log a user on automatically once they have been identified with a cookie in C#? Membership.ValidateUser("membersUsername","membersPassword") will let me know if it's a valid user but it won't log them on. | |
Hi Guys, I am extremely new to ASP.net using C# the task i have at hand is as follows: Page Load Tasks 1. Ensure that the LDAP is online first and if it is not provide the user with a message plus send a outlook mail to the administrator. Once … | |
I have looked through a few SQL hierarchy tutorials, but none of them made much sense for my application. Perhaps I am just not understanding them correctly. I'm writing a C# ASP.NET application and I would like to create a tree view hierarchy from SQL data. This is how the … | |
Hello My webpage is opening on many urls ex: [http://www.cmpsol.net/acer-support.aspx](http://www.cmpsol.net/acer-support.aspx) and it is also opening on [http://www.cmpsol.net/acer-support.aspx/hp/rss/dell-support.aspx](http://www.cmpsol.net/acer-support.aspx/hp/rss/dell-support.aspx) and many you can after .aspx , it will open. currently i have made a permanent redirect to main url. i want show it as error pages. So how can i fix the … | |
hi, This is a bit complex.. I have 2 nested repeaters.. and 3 datasources(in markup) <asp:SqlDataSource ID=data1 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand="select MatrixRiskFactorId,Name,MaxWeight from Matrixriskfactor" ></asp:SqlDataSource> <asp:SqlDataSource ID=data2 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand="select * from MatrixQuestion" ></asp:SqlDataSource> <asp:SqlDataSource ID=data3 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand = "select MatrixRiskFactorId,Value,text from MatrixRiskFactorScore where MatrixRiskFactorId=2"> <repeater id=rep1 … | |
This a just a basic webform setup of a listbox being populated with data from a database, in this case the Northwind Access database, and then populating textboxes with data related to the item the user selects. [u]1. WebForm [/u] -Create an ASP.NET webform page -Add a [b]listbox server control[/b] … | |
Hi I am facing the following the following problem. I have 2 ListViews and 2 DataPagers - 1 for each. Now when I paginate first DataPager the second DataPager page index is getting reset to 0. So, the second ListView is getting reset to the first page. Any kind of … | |
Hi, I have a grid view having image and labels. But i want to do that,,, when i select a record or click on an edit button with particular record,, this record should display in a form view or detail view in editable form... form view/detail view should contain, text … |
The End.