13,153 Topics

Member Avatar for
Member Avatar for ravidaniweb

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()

Member Avatar for kvprajapati
0
259
Member Avatar for Goomba79

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 …

Member Avatar for kvprajapati
0
89
Member Avatar for Goomba79

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 …

Member Avatar for Goomba79
0
128
Member Avatar for Goomba79

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 …

Member Avatar for Goomba79
0
312
Member Avatar for Jigs28

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???

Member Avatar for kvprajapati
0
95
Member Avatar for ShaggyDogg

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 …

Member Avatar for kvprajapati
0
920
Member Avatar for Goomba79

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 …

Member Avatar for Goomba79
0
105
Member Avatar for Maha Sh.

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 …

Member Avatar for kvprajapati
0
76
Member Avatar for GTTravis

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 …

Member Avatar for kvprajapati
0
106
Member Avatar for nuevoenjava

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 …

Member Avatar for kvprajapati
0
109
Member Avatar for abathurst

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 …

Member Avatar for abathurst
0
223
Member Avatar for fishky

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 …

Member Avatar for G_Waddell
0
178
Member Avatar for awslc

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', '', …

Member Avatar for pritaeas
0
173
Member Avatar for shers

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

Member Avatar for shers
0
71
Member Avatar for Zeenat Jahan

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!!!!

Member Avatar for JorgeM
0
144
Member Avatar for Goomba79

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 …

Member Avatar for Goomba79
0
95
Member Avatar for ChrisHunter

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

Member Avatar for Dani
0
178
Member Avatar for mani508

hello i want to paging in repeater control asp.net using c# .i want to 10 record show in one page how its possible..??

Member Avatar for hericles
0
80
Member Avatar for jateshs1007

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 …

Member Avatar for alzz
0
210
Member Avatar for Goomba79

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 …

Member Avatar for Goomba79
0
126
Member Avatar for nikki05

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, …

Member Avatar for Mitja Bonca
0
318
Member Avatar for hatebin

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 …

Member Avatar for poojavb
0
200
Member Avatar for mani508

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.....

Member Avatar for hericles
0
107
Member Avatar for coolbeanbob

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?

Member Avatar for nmaillet
0
100
Member Avatar for androtheos

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 …

Member Avatar for Momerath
0
290
Member Avatar for muhammad ismail

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 …

Member Avatar for Maryprogza
0
172
Member Avatar for Goomba79

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 …

Member Avatar for poojavb
0
160
Member Avatar for mani508

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 ...???

Member Avatar for mani508
0
200
Member Avatar for Argo54325

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 …

Member Avatar for androtheos
0
188
Member Avatar for VasquezPL

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) …

Member Avatar for muralijoshi
0
1K
Member Avatar for coolbeanbob

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 …

Member Avatar for kvprajapati
0
91
Member Avatar for Maha Sh.

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 !!!!

Member Avatar for hericles
0
164
Member Avatar for shers

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. …

Member Avatar for androtheos
0
697
Member Avatar for ravidaniweb

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 …

Member Avatar for nuevoenjava
0
227
Member Avatar for mani508

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#?

Member Avatar for bharat_4g
0
1K
Member Avatar for muhammad ismail

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

Member Avatar for JorgeM
0
113
Member Avatar for UtaChan

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 …

Member Avatar for bharat_4g
0
236
Member Avatar for jazz1011

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. …

Member Avatar for jazz1011
0
192
Member Avatar for UtaChan

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 …

Member Avatar for UtaChan
0
179
Member Avatar for atlachar

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 …

Member Avatar for aquamarine_kath
0
1K
Member Avatar for aquamarine_kath

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 …

0
156
Member Avatar for mani508

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?

Member Avatar for mani508
0
299
Member Avatar for edfinley

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.

Member Avatar for edfinley
0
125
Member Avatar for GTTravis

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 …

Member Avatar for nuevoenjava
1
119
Member Avatar for neoseeker191

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 …

Member Avatar for Momerath
0
4K
Member Avatar for lokmani

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 …

Member Avatar for G_Waddell
0
163
Member Avatar for bilal_fazlani

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 …

Member Avatar for G_Waddell
0
561
Member Avatar for Paladine

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] …

Member Avatar for HamplusTech
0
2K
Member Avatar for soft_coder

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 …

0
81
Member Avatar for Ashfa

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 …

Member Avatar for G_Waddell
0
126

The End.