13,153 Topics
![]() | |
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.