Trying To Find Open Sources Using C#?
Mar 29, 2011I'm trying to find open sources using asp.net and c# that are suitable to quickly build small web site without database, something like Joomla! but it uses php.
View 6 RepliesI'm trying to find open sources using asp.net and c# that are suitable to quickly build small web site without database, something like Joomla! but it uses php.
View 6 RepliesHow can i find what are the URL's opened in the browser window and how can i get that page as a page object as described below.
Eg:
The opened url ='http:\localhostIPTrackingIndex.aspx'
We can fetch the page by giving the below code
page=(page)HttpContext.Current.CurrentHandler.
How can we do it for all the opened URL's because if we give the HttpContext.Current.CurrentHandler then it will display the page object within the site but i want the page object from other sites also.
I am exporting an excel file in my action. Based on whether the excel exported or not i'm returning a boolean as json result and i want to check the boolean to display success or failure. But i'm getting a popup asking for "Do you want to save this file, or find a program online to open it?" How can i avoid the popup?
Below is my sample code.
public JsonResult ExportQuote()
{
boolean success= false;
//Function to export to excel
ExportExcel();
boolean success= true;
return this.json(success,JsonRequestBehaviour.AllowGet);
}
I want to compare two asp.net sources and find different could you introduce me a software inside or outside of visual studio ?
View 3 RepliesI have built an ASP.NET (.NET v4) application in VS 2010. It is working just fine. But when I try to create deployment package (so I can deploy it in our test IIS 7.5 Server), it gives me error like this,
Error 1 Could not open Source file: Could not find file 'C:11-2 estobjDebugCSAutoParameterize ransformedWeb.config'. 0 0 test
Thing is in past, I had deployed the SAME application using the SAME method.
I have a search page get data from two sources:
1- my data base
2- web service function
How to put this two data sources in my list view?
I'm looking to integrate a bunch of RSS/ATOM sources into a feed for our intranet. This is outside my usual realm of work so I've had very limited exposure to this.
I'd like to integrate all the feeds into a single reader such that all the news items are in chronological release order.
Is this doable? Do I need a special component? Or can I make the ASP.NET integrated components do all this simply enough?
I have a ReportViewer control on an ASP.Net page and an RDLC set up that uses a TableAdapter that pulls one record. This works fine.I'd like to have the *same* RDLC use a different TableAdapter (schema of table is the exact same, but may have multiple records). I've tried putting two DataSets in my RDLC and having the code dynamically select which one to use, but it's not working quite right for me.
View 1 Repliesthe best place to learn Entity Framework ?is there a free vedio tutorial
View 3 RepliesHere is the situation. I need to hit ~50 servers and grab some data from a file. I then want to display a few rows for each in an ASP.NET GridView control.
I tried doing this with Threads/ThreadPool and successfully gather all the data in session.
What I'd like to do, and what I am having a hard time figuring out, is update the grid for the user after each server is done loading.
If I put the databinding code in the thread, it will only display whatever has loaded by the time the response is sent back to the client. If I take it out of the thread, I'd have to wait until all threads were done to send the response, and that doesn't do what I want.
I seeing some stuff about Asynchronous Client Callbacks, but I'm not sure if that's what I need to be using. I have no idea how to manipulate a GridView from Javascript.
I need to create a query which does a join between two tables which are in different databases. I can easily connect to each database, and write queries in each, however, I can't seem to find a way of generating a query which does a join between two tables from different databases.
View 2 RepliesI have a slight issue with deleting a record that is stored on two separate SQL servers.
I am using an ASP.NET databound control on a datagrid with delete button commandfield linked to one data source.
Is there a way of deleting the same record from another data source at the same time?
I've created a set of CrystalReports (*.rpt files) for an ASP.NET web app on a development server. I call each report using the following code:
[Code]....
When I transfer the *.rpt files to a different server, the reports display data from the development server; even when I change "Constants.DatabaseName" to point to the new server. It seems like the *.rpt file saves the database connection information from the ODBC File DNS used when creating the report.Has anyone experienced this problem? I'm looking for a solution so I don't have to create multiple copies of my *.rpt files for each server environment (i.e., Dev, Test and Production servers).
We use the caching and logging application blocks from entlib 4.1. We want to keep the configuration of those two in seperate files. How can we achieve this?It looks like entlib is always using the selected Source as it configuration.I tried the following:
[code...]
But this doesn't work because the application blocks always use the selected Source attribute value.
I have setup Windows Authentication on a project but I need a windows login or something to appear when its accessed externally, how can I do this?
View 5 RepliesSo I have been trying to follow serenarules posts about persistence layers, but I seem to be missing something.
The persistence layer is an architectural layer whose job is to provide an abstract interface to information storage mechanism(s).
This makes sense to me, but I am still having a hard time with this.
So in what cases is this necessary? When you are pulling similar data from multiple information sources?
I just installed the SmallBusiness Starter kit from MSDN. I believe the starter kit by default points to MDF and LDF files in App_Data folder but I would like to use my SQL server instead. Could you please provide me with instructions on how to convert these two files in actuate tables in SQL server?
View 5 RepliesI am writing a currency converting module for one of our applications. I have a list of products, a list of currencies we are interested in seeing prices for, and a list of currency rates. I want the user to be able to select which currencies from the list they see in the GridView. I also want to be able to amend my list of currencies and include a new currency, without having to make additional changes to this module. So my GridView display has to be "dynamic". Essentially I am planning on ending up with a GridView that has the following columns:
Part No - Description - USD Price - AUD Price - GBP Price
The USD price would be static as it's our base currency, the AUD and GBP are user selected and could have potentially any number of currencies listed. I would normally use a DataSet and DataTables for this work, but I am sure there is a "better" way to do it using System.Collections.Generics. Right now I have all of the data I need in List collections, but there does not seem to be a way to define how these collections relate to each other, or combine these collections into one so it can be bound to a GridView. Should I be looking at something other than List to achieve this or do I need to go back to my original approach of a DataSet and DataTables.
**UPDATE / SOME CODE**
I will explain a little bit more about what I have setup so far.
1) List of Products & Currencies - These come from an SQL DB via LINQ, so they can be any of the System.Collections.Generics objects, e.g. List, IEnumerable etc.
2) Currency Rates - These I am pulling from the European Bank public XML file. I download the file, strip the data I need out of it and currently store that as a List object.
I could store the currency rates in the database table as well, but then I have to have some sort of background process that goes and updates the rates each day. This way the rates only get updated when someone accesses the report function (which is only going to happen occasionally). So I would rather grab the latest rates "on demand". What I know I need to end up with is some object that has the following structure:
PartNo - Description - Base Price - Currency Price 1, Currency Price 2, Currency Price 3
Where the number of Currency Prices is undefined, as it's based on what currencies the user wants the report to display. It's the undefined part that I am struggling with, essentially how can I create a structured object, that I don't know the complete structure of until runtime?
reading on the web ive found the code below; i wonder if an encrypted string using this block generates an unique result or if different encrypted sources can result in the same crypted array:
private static TripleDES CreateDES(string password)
{
MD5 md5 = new MD5CryptoServiceProvider();
TripleDES des = new TripleDESCryptoServiceProvider();
des.Key = md5.ComputeHash(Encoding.Unicode.GetBytes(password));
des.IV = new byte[des.BlockSize / 8];
return des;
}
When I am designing a report, I usually leave the Website Data Sources window up so that I can access the datasources in my project. I can then drag fields to the surface of the report to design the layout.For some reason, the list of entries in the window is getting more and more cluttered with references. I have no idea how these are being added and I can find no way to remove or "exclude" them from the list. Entries included are:
System Microsoft.ReportinServices.RdObjectModel Microsoft.ReportingServices.Common System.Collections.Generic More....You can see a screenshot of what I mean here:
http://img6.yfrog.com/i/wsds.jpg/
w how to remove these from the Website Data Sources window?
I'm a developer new to asp.net 3.5. My client asked if there were any implications of using Linq to SQL data sources with mirrored clustered servers with Failover clustering.
So my questions are can you use Linq to SQL with mirrored Clustered Servers?
If yes to the above, do you need to add or modify any code for mirrored Clustered Servers?
I've taken over an ASP.NET project and the previous dev used "dynamic" DSNs sprinkled throughout the application. These data sources are databound to several controls throughout the site.I'd prefer to use a system DSN that I would define on my dev machine and the production web server. This way if I need to change the location of the SQL database I can just change the system DSN on the server instead of modifying the code and recompiling the application in Visual Studio.What is the easiest way to list all these dynamic DSNs that are in use in this web site project in Visual Studio 2008 and modify them to use a system DSN instead?
View 1 RepliesI have one view page (MyView.aspx) and many data sources to bind on this page. Lets say it has Books, Publishers, Comments, etc. Each one of those has an object which provides a List, List, etc. In my view, what are my optiosn for multilple model biding? I want to check to see if each one is empty, and then enumerate it. But I can't check Model.Count() because wouldn't Model be made of all those objects if I set the page to inheriet from? What are my options? Should I load each content area in a control/partial view? Or can I just dump each object into ViewData and then check the count by casting in the view?
View 2 Replies'm learning about reporting in VS2008 (no we haven't moved to 2010 yet!), and I like the idea of rdlc files because it seems you can deploy the report as part of a web app rather than mess around deploying it to a report server. Is this correct?We develop tiered apps that use LINQ to SQL, and the .dbml and LINQ queries are in a separate project to the web application. Also, depending on whether we are developing an internet or intranet web app, it will either reference that project directly, or call its methods via a WCF service. However I can't seem to hook up my rdlc to either. From what I've read, this could be because we create "web application" projects and not "web site" projects. So my question is, is it possible to create an rdlc report within a "web application" project and have it use either a business object or a WCF service as its data source?If I try and create a data source in my web app project, it simply creates an XSD, and don't know what to do with this! If I go through the report wizard, all I can do is choose a database data source (i.e. from what's listed in the VS2008 server explorer) - there is no option to choose an "object" or "service" data source, like you can when the rdlc resides in a report project.
View 2 RepliesI have a repeater like so:
[Code]....
Problem is, I also want to show the viewer the available number of spots in the room. But this requires somehow pull in either the current_occupancy / max_occupancy or in performing a calculation (e.g. max_occupancy - current_occupancy = actual_available) and then returning that with the room.
The end result I'm looking for is to return each room in a button control with text that looks like this:
"Room 1 - 2 Open" "Room 8 - 1 Open" and so on