C# - Creating A Google Alert Programmatically?
Mar 21, 2011Can I create a Google alert [URL] programmatically using C# and consume the feed to show in an asp.net application?
View 2 RepliesCan I create a Google alert [URL] programmatically using C# and consume the feed to show in an asp.net application?
View 2 Repliesi want to create popup in save click how it can be done?is it possible
View 1 RepliesI'm rendering charts on my website using the Google Charts API and I want to export these into a report for the users, most likely a PDF file. What methods are available to do this programmatically into a PDF file?
View 2 RepliesI've written a entry form for our company employees to enter marketing courses into the DB and at the same time add them to a Google Calendar. The Calendar is accepting the events, but the coloration of the event is different from a "manually" entered event using Google's interface. This leads me to believe that there is some property I am not setting that is causing the events not to be show on the calendar once it is embedded in our other company web pages.
The code used to enter events:
// Create a CalenderService and authenticate
CalendarService myService = new CalendarService("exampleCo-exampleApp-1");
myService.setUserCredentials("xxx@gmail.com", "xxxxxx");
CalendarQuery query = new CalendarQuery();
[Code]....
And this is the resulting calendar:
The "test event jasdf event" is the manually entered event, and the two events: "Test event 234" are the programmatically entered events. In any case, once I embed the calendar, the only event showing up is the "test event jasdf".
Anyone faced this issue before or had success with google calendar? If so, I'd like to see what you might have used to successfully create events and publish them.
In this application I'm working on, I have an extension system based on static events. The whole idea is taken mostly from the (very cool) extension system created in BlogEngine.NET.
Essentially, on Application_Start, an extension instance is created which hooks to static events on classes in the application. Take for example an extension that censors blacklisted words from, say, a forum message before displaying it to the page; When a ForumMessage.OnDisplaying event is triggered, the extension would take the ForumMessage sender object and replace blacklisted words with gibberish.
Example:
static class WordBlackListExtension {
private static string[] _blacklist = new string[] { ... };
static WordBlacklistExtension() { ForumMessage.OnDisplaying += DoWork; }
private static void DoWork(object sender, EventArgs e) {
// Do some blacklist filtering...
((ForumMessage)sender).Body = ...;
}
}
However, since there is only one instance of each extension in the App Domain, it occurs to me this only works on a system where there is a single, system-wide configuration for each extension. But what if I wanted per-forum or per-user control over those extensions, like in Google Labs? Per-forum blacklist, or per-user ability to enable/disable the extension? I would have to pass additional information to the extension.
So here's the part I can't wrap my head around - Assuming I have a fairly complex object model (therefore doing something like ForumMessage.Forum.etc.Config is bad practice);
How would you recommend to pass that information to each extension? Should each extension retrieve its own config? Maybe pass some kind of context object through the EventArgs? Where can I determine which forum's config to retrieve?
what the best way to create text boxes in my loop here so that the IDs are unique instead of just "TextBox" for all of them. I need to add up the Price based on the Price per unit and the Quantity.
My items are loaded from a database so there could be any number of them, so I need to generate the fields on the fly. I was thinking maybe an array of fields could be used like in a form application, or is this not the right way to go?
Here is my code:
[code]....
I hope to get some guidance on how to create reorder lists programmatically because of the situation described below.I have a page where I want to have a toDo Iist for each of several (typically 10) milestone categories. I can think of 3 options.I don't know in advance how many 'active' categories there will be but I there is a known fixed total of about 20 categories, of which from 1 to 20 may be 'active'1. Have one Master ReOrderList And Then Nest the Category ReorderLists Inside 2. Create the reorderlists programmatically.3. Brute force approach. Hardcode all 20 reorderlists and their associated sqldatasources, and then set visibilitydepending on which category is active. This approach is the simplest but has the disadvantage of too muchrepetitive code and the reorder lists would be in a fixed order, when I really want them to match the category order.
View 3 RepliesI want to programatically create a directory on the server using ASP.NET.
I have done this using System.IO's Directory.CreateDirctory. however, the newly created folder is not accessible in the code.
after searching a bit, I came to know that the newly create folder is not included the project and hence not accessible.
The last few days I'm trying to figure out how to connect to SMTP service and create new user account (read email address) programmatically from ASP.NET. To give you the background, I'm building a hosted app where a new instance is created and a dedicated email address is assigned, now all is done, but I can't figure out how to create a new email account.
View 3 RepliesI am creating and configuring multiple TreeView controls programmatically:
foreach (DataRow dr in ds.Tables[0].Rows) {
TreeView TV = new TreeView();
TreeNode newNode = new TreeNode();
[code]...
I want to make a bar chart from the google analytics data. Current implemetation of the bar chart in my site is by See Analytics I am developing an ASP.NET website and this See Analytics is using PHP and jQuery to conjure the chart. It is also paid. What my client would like is a similar tool that draws chart from analytics, without a PHP Component in it. ie. A similar tool using ASP.NET and jQuery/javascript. What I would like is to get that tool for free(open source).
View 3 RepliesI have a multilevel Category Table, like so
CategoryID, CategoryName, ParentCategoryID, IsMainCategory
I want to be able to loop through all the categories starting with the Main Categories and then go all the way down for example I could have
[code]...
I wanted to be able to loop through ALL categories in order like above programatically - This is how far I got
[Code]....
But I hit a stumbling block.. I just wanted to check I am tackling this the right way? Or is there something simple I'm missing?
I need to create .net membership user instance for a database living in a different server than the one I'm coding in. What is the best way to do this?Should I do it though Sql Server stored procedure? or should I use a separate provider (therefore having 2) in my web.config?
I need to create this user without using the "create user wizard".
I've got a master page and a content page. How can I add controls to the master page's content placeholders programattically?
View 2 Repliesi want to create a gridview programatically and add the data programatically.
View 1 RepliesHow i solved probelm of dynamic creation of aspx page on fly and save it to the disk or root direcotry of the Project.
View 5 RepliesI am stuck in chart controls...Here is my prob... There is a ListBox containing some items...when user selects multiple items from the list box I want to generate a dynamic table with the number of columns same as that of the number items selected in the listbox. And for each selected item I want to show a seperate chart in the columns...Currently I want the same chart control for every selected item (i.e. a static hard coded chart that i will replace later by dynamic values)....I am using a method that draws a chart control using a sample dataset... I am calling it each time when a new column is created..Also the DrawChart method executes for the first column only and throws an index out of range exception! after the first execution...my code is not working...here
my code...
[Code]....
[Code]....
As an organisation, we use Google Apps. We have the paid version (mapped to our domain) etc...We are developing a web based application to manage orders, and other business functionality.I want to be able to use federated login with our google apps accounts-
For example, if a user is logged in to their email (gMail) - they should automatically be logged in to our ASP.net application
If they're not logged in - the log in form should auth. against our google apps account.How can this be done?Is it possible to be able to "get" the user who is currently logged in using this method etc...?
I've implemented a google map with points and stuff that uses an address that the user inputs. When you click a point, the popup bubble appears with the name and address in.Often this name and address is a prominent location, as it's used for meetings and things, such as a university. If you google the address yourself on maps.google.co.uk then you get google's own popup bubble, which often has a photo, information, opening hours, links to directions, reviews, etc. etc.I am wondering if there's a way to use that popup dialog instead of my own, where it is available. I can't see anything in the API to do this.I'm using V2 as we support IE6 in a lot of our users, but I've been told recently I can upgrade to V3 should I need functionality from it.
View 1 Repliesjust want to add the effect of map momentum by the dragging of map as in maps.google.com has. currently on my map where i stop dragging the map stops there but in maps.google.com if you drag a mouse the map will not stop there it will continue the movement in the same direction for a second or few cordinates (i dont know basically), but I want the same thing on my google map. I am using GMap2.
View 1 RepliesI want to download a file from google drive (like .docx, .xlsx etc.) to a specific location, I am able to do so which are publicly share using WebClient object.
But now I want to download file which private in share but unable to do it.
How to improve my code which should download private file also.
//Parameters
//1) Link - google drive link from where to download
//2) filename- name of filename-
//3) oringinalDocDirectory- path where file has to save
public ActionResult SaveToServer(string Link,string filname,string oringinalDocDirectory) {
if (!Directory.Exists(oringinalDocDirectory))
Directory.CreateDirectory(oringinalDocDirectory);
var docFinalSavePath = Path.Combine(oringinalDocDirectory, filname);
WebClient client = new WebClient();
client.DownloadFile(new Uri(Link.Replace("&export=download","")), docFinalSavePath);
return Json(new { status = docFinalSavePath }, "text/html", JsonRequestBehavior.AllowGet);
}
public ActionResult EditOrganizationMeta(FormCollection collection)
{
var data = new { name = NameOrgMeta, Success = "Record is Succesfully Saved", ErrorMessages = ErrorMessage };
return Json( data );
}
I want to alert the name,Success ,ErrorMessages , how would i do that in view using javascript or jason , how would i do that?
How can I coerce an exception message that has bubbled from my business layer into an alert box in javascript?BTW, I'm using ASP.NET MVC 1.0.
View 1 RepliesI was reading on some tutorials online for doing basic jquery. I've been trying to do a simple alert box, however i am getting the basic/standard alert basic, rather than the fancy jquery
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Web.Services" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
[URL]>
<html >
<head id="Head2" runat="server">
<title>Asp.net JQUERY</title>
<script type="text/javascript" src="Scripts/jquery-1.4.4.js">
</script>
<script type="text/javascript">
$(document).ready(function() {
// add code here
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#Button1").click(function() {
alert("Hello world!");
});
});
</script>
</head>
<body>
<form id="form2" runat="server">
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
</body>
</html>
I need to display alert message or alarm or any sound or indication when there is an expiry date for the products from the database table. It should be automatic by any windows or webservice...
I am using .net 2003 and ready to upgrade...