13,153 Topics
| |
Hi I am new to programming in asp.net with c#. I am using visual studio 2010. I am trying to insert data entered by a user into the database. My code is as follows: [CODE] adsStudents.InsertParameters["Stu_ID"].DefaultValue = txtStudID.Text.ToString(); adsStudents.InsertParameters["Stu_Name"].DefaultValue = txtName.Text.ToString(); adsStudents.InsertParameters["Stu_Passwd"].DefaultValue = txtPasswd.Text.ToString(); adsStudents.InsertParameters["Stu_Prog"].DefaultValue = ddlProgramme.SelectedValue.ToString(); adsStudents.Insert(); //add a … | |
I have 3 ASP list boxes. I would like to populate the second list box based on the selection in the first list box and based on the selection in the second list box, populate the third. I would like to do this using AJAX. How can I do it? … | |
Hi guys, I have problem with my login script. I am using VB.Net (ASP.Net) to do that things. Here is the code: This is the code for Default.aspx page [CODE] User Name: <asp:TextBox ID="userID" class="txtbox" runat="server"></asp:TextBox> Password: <asp:TextBox ID="password" class="pwdbox" runat="server" TextMode="Password"></asp:TextBox> <asp:LinkButton ID="login" class="button" runat="server"> Login </asp:LinkButton> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ … | |
Error while trying to run project: Unable to start debugging on the web server. There is no managed code running in the process. In order to attach to a process with the .NET debugger, managed code must be running in the process before attaching. How to solve this? Please Help......Thanks.. | |
As I already set the initial web page to debug, but it still keep prompt me this error message. I even check the project properties already, but it keep prompt me this. Running the project requires setting an initial web page. To set this page, right click the desired page … | |
[CODE] ListView listView1 = new ListView(); DataTable dataTable = new DataTable(); MoneyReceiptGateway moneyReceiptGateway = new MoneyReceiptGateway(); dataTable = moneyReceiptGateway.SelectDataForListView(narrationTextBox.Text); string[] str = new string[dataTable.Columns.Count]; foreach (DataRow rr in dataTable.Rows) { for (int coll = 0; coll <= dataTable.Columns.Count; coll++) { str[coll] = rr[coll].ToString(); } ListViewDataItem li; li = new ListViewDataItem(str); … | |
I'm getting the old "Validation of viewstate MAC failed" error when I click the submit button on my form. (See [url]http://blogs.msdn.com/b/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx[/url]) The thing is I'm getting the error even when the page is completely loaded (it can be sitting there for five minutes before I hit submit but I still … | |
Hi I want to store query result in single variable like if query is "select count(*) from tablename" , and it return suppose 21 records (integer value) then I want to save this value in my database during insertion of record what should i write in place of question mark … | |
Hi, I am creating an login page connected to a database. I am using access ODB. the problem is, if the user makes an wrong input, and the invalid data message box appeared, when typing the data again, and press ok, the following exeption occured: Not allowed to change the … | |
hi Friend i have a problem to create user through Membership provider I Wrote [CODE] try { Membership.CreateUser(txtbox1.Text, txtbox2.Text); Response.Redirect("AHome.aspx"); } catch (Exception ex) { Response.Write(ex.Message); } [/CODE] and I got "The password-answer supplied is invalid. Exception" Please Help Me...... | |
Hi, I'm joining 2 tables and using the formview. When I insert a record, I need to place the value of the max id + 1 of the second table in a field in the first table so that the tables are linked. I'm not sure where to put the … | |
Hi frnds, I`ve learned from a site that Microsoft kills LINQ to SQL. URL follows: [url]http://ayende.com/Blog/archive/2008/10/31/microsoft-kills-linq-to-sql.aspx[/url] Actually, I was planning to use LINQ to SQL in my next project. Now I`m confused!. Is it true? Regards Robins | |
Hello Guys, I'm in need of aid, what I'm needing is a page with login and password made ​​in C # with. net the only thing I can not do is make the page validate pulling information from the database, can I help? If someone has a very simple model … | |
I have a datatype date in sql.I have to insert this value through asp.net. I have a textbox that takes date value in asp.net.How o convert this into date datatype so that it is accepted by sql Thanks in advance | |
Hi apologies as I guess this has been covered on a number of occassions, but I am very much new to web devt and am struggling to patch code snippets on google results on similar sounding queries into my own. I have been coding a page, which has an iframe, … | |
hi every one i m doing software engineering and i have basic fundamental know how of all of them i want to select 1 or 2 of them and want to master them i need help and you opinion plz tell me which one is batter and why thanks | |
hello guys... I read some articles to deploy my web site on IIS 7 which I followed exactly I was told to. Now simple aspx pages are deployed successfuly but web applications that have database with it, are not deployed as expected. For example, I have stored my user name … | |
I'm trying to close and application using C# and ASP.NET. I've tried system.windows.forms.application.exit() but it just refreshes the screen. I tried Environment.Exit(0) but that just ended the application and returned an error in the browser. Please help anyway you can!! Thanks! | |
Hi I am trying to edit security into my website which I have created in visual studios 2008 using asp.net. If I copy the URL into a new tab within internet explorer, it does not seem to log me out. I would like it to log me out due to … | |
Hi, can anyone help me with this one? Whenever I try and use the website administration tool I get the message above straight away. I've searched a lot for a solution but can't find one that works. I have tried running aspnet_regsql.exe, tried changing the default browser, tried restarting IIS, … | |
Hi, I'm developing a website using .NET 3.5 and I'm having problems with the asyncfileupload control. The problem occurs when you upload a file, and then try upload the same file again. On the second upload, none of the clientside nor serverside methods fire. Everything works fine if you upload … | |
Hi everyone, My page need to be automatically refresh in every 20 minutes and get the data from table and show it. This I did simply. The time is calculate from when I load my page (i.e) If I load my page at 10:25 AM then it automatically refresh at … | |
I have a page signup.aspx where user can register, how this page will find from which page request came from and how it will redirect user after registration to the requesting page, i want to do this using query string but don't know how PLZ SHOW ME CODES. i am … | |
Hi there, i have a question in C#.NET report viewer. i save the phone number in the database as (234) 233-1346 . so if the use doesn't type in a phone number it will be saved as [() - ] which is show in side the squared brackets, without the … | |
I think that my website [url]http://www.game4tress.com[/url] has performance issues when dealing with classes. If i let each web page load for some time, it works fine, if when the web page loads i immediately click on a link, some times the page craches and gives me an "unknown error" in … | |
Hi there can some one provide me with a tutorial to create a login in C#.NET MVC. i am using visual studio 2010 and i am new to this. I have a little bit of idea on MVC but when i try to come to create a login page (web … | |
Hi, Not sure if my question belongs in an ASP.NET or MSSQL forum.. I have an ASP.NET webpage built in VS2010 with an Input field with the functionality to browse to a network directory, select a text file, read content and upload the data to an MSSQL database table. Nothing … | |
I have 3 ASP list boxes. I would like to populate the second list box based on the selection in the first list box and based on the selection in the second list box, populate the third. I would like to do this using AJAX. How can I do it? … | |
Hello, I have installed vb .net 2008 express and sql server 2008 express, vb .net 2008 express install (with no option of custom install) sql server compact enu. When I try to create an ado application I see no option for the sql server to insert an ip (like sql … |
The End.