I have one web application file.
it is asp.net 4.0 web application file.
now I need to run it on Visual Studio 2005 professional.
what I need for this.
I tried to run it but it shows
Configuration Error like this
Line 59: <add assembly=""System.EnterpriseServices," version="220.127.116.11," culture="neutral," publickeytoken="b03f5f7f11d50a3a"">
Line 60: <add assembly=""System.Web.Mobile," version="18.104.22.168," culture="neutral," publickeytoken="b03f5f7f11d50a3a"">;
Line 61: <add assembly=""*"">;
Line 62: ;
Line 63: <buildproviders>;
i am using logincontrol to my login page and also Create User Wizard to register new users. I now need to know how to store the datas which i supply throught the create user wizard to be store in my sqlserver database.
Hi guys just signed up on Code Project after giving on my fail google skills.
What I want:
I am interested in creating a Datagrid that will load details from database (cust driver which is configured with ODBC alredy) I don't how many rows I am going to have it all depends on the table im going to connect to.
I can't use the Wizard to establish a database Connection with the database I get an error (CAT_table doesnt exit or something like that) But I have been able to connect to the database by hard coding a connection string in the code behind file. But I am NOT able to take control of DataGrid because I am clueless.
So I need a tutorial on how to connect to a database with hardcode with the DataGRID and be able to UPDATE/DELETE my data without having to Programming methods and etc I want to take advantage of the DataGrid.
Can I please get links to Tutorials? That show how to hardcode everything, video tutorial would be awesome.
I am looking forward to your guys assistance
Welcome to Code Project, it can be a very useful resource, however, it can also be a very harsh place for people who don't put forth some effort or only want code given to them. That being said I find it difficult to believe you could not find anything useful in the 5,300,000 results[^] returned from Google when searching for "asp.net datagrid". Especially since the first result is "An Extensive Examination of the DataGrid Web Control"
Right now I am trying to get a detailsview control to update one record in the database. I am using the smallest version of the code so I can make certain the update will work before I add more code. Right now in the new application, I have the first webform page entered by the user, they click the next button and they are directed to the second webform page. When the user is directed to the second webform page, the detailsview control for one record will be displayed.
I want the record to update a record when the user clicks a button not contained within the detailsview control. However the update has not occurred. I have tried lots of different options but nothing has worked so far. For example, I read lots of sources that said I should not have a 'new' statement in the select. However if I leave out the 'new' part of the select statements, I get an error.
What you do think I should do, have a update statement in the in the linq data source, use 2 different linq data sources, what do you think I should try to do to to make the code work.
The following is my code so far:
<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="Support.AttDataContext"
Select="new (Att_id, Prior_Cutoff_Date)"
TableName="Attestations" Where="Att_id == @Att_id"
<asp:SessionParameter Name="Att_id" SessionField="AttID" />
<asp:SessionParameter Name="Att_id" SessionField="AttID" Type="Int32" />
im very new to asp.net.
i develop a website for e-commerce..now i developing a page to display the statistic of the product that bought by costumer..
here is my database structure..
-in table Transaction, i store the product that bought by user with user name and quantity.
-table product, store the information about product
-this is my data, assume Bag ProductID=1 and Pencil ProductID=2in table transaction..
-for table transaction:
TransactionID | User | ProductID | Quantity
1 | ali | 1 | 21 | abu | 2 | 31 | qwe | 1 | 5
i want make a statistic about the product that bought by users..
im usingthis Select query= "SELECT Product.ProductName, COUNT(Transaction.ProductID) AS ProductCount FROM Product INNER JOIN Transaction ON Product.ProductID = Transaction.ProductID GROUP BY Product.ProductName"whenusingthis query the result is,
ProductName | ProductCount
Bag | 2
Pencil | 1
i just want my result shown like i stated below..but i dont know how to do it..
ProductName | ProductCount
Bag | 7
Pencil | 3
please help me....
i have a secure page(a page which is viewable after i login say page1.aspx) in page1.aspx i have a imagebutton. On the click of this image button i need to navigate to another page say page2.aspx which is also a secure page(this page is also viewed after i login but i have already loged in and viewed page1.aspx) so how to doit
thanks for the reply
yes if the user is logged in he should be able to access the other secure pages now but since i have given
after login successfully the user enter a secure page say by using the code
so now if i am in dashboard.aspx i have some more secure pages in the same secure folder which is accessible once the user is logged in and is in dashboard.aspx...so how to do it
i am using form authentication using sqlserver as my database and not web.config
so that part i am ok as i can compare the values from the database using my own code and getting redirection to a secure page
Your problem probable exists in how you are doing your authorization. It sounds like you are not using the default log-in and membership provider in asp.net by your statement above. Show us the code that you are using to log someone into your site.
I think this has been addressed in some capacity a few times, but nothing recently, and nothing that addresses my exact needs. So here goes...
I am looking for suggestions to accomplish the following in ASP.NET.
I need to take a string value, from a text box on a web form, and provide it in a PDF file for download. The PDF file will also include a static graphic.
My thoughts right now are that I should probably start with something other than a PDF that contains the static graphic, add the text, and then convert to PDF. I thought this would be possible using MS Word, but understand that there are issues when doing this on a Windows 2008 Server - which is my environment.
Ideally, I'd like to avoid a 3rd party library or application unless it's free or very cheap. The project is just as small as it sounds and can't afford the overhead.
I guess the best way to do this is to create the page in HTML and then convert it to PDF.
There is a free tool here http://code.google.com/p/wkhtmltopdf/[^] but I have not used it myself with C# or so!