I'm trying to save and update contacts. I can add new contacts, but when I try to update a contact it will be inserted as a new contact in the database. I can't understand what I'm doing wrong.
I am using Facebook Toolkit. I have appKey and appSecret, but I dont want that visitor need to conenct to facebook. I will use my login/passwork to get my wall posts.
I am doing my final year project and have decided to make a website in asp.net. For that I'll be using Micrsoft Visual Studio 2008. I'm making a Real ESTATE properties website. I want to know how to localize or create new posts in asp.net( like in WORDPRESS) and also when I hit SEARCH it should search for the desired keyword or the searched post.
If post is not possible then it should display pages...
On my site I've got a section which displays the latest tweets from my twitter account. I used Twitterizer to read latest tweets from my account and bind them to a Repeater However, with Twitter's new security, I can't use this as I must use oAuth.
What is the best way of returning tweets from an account?
I have a project in VS 2010 and works great in my dev environment, including a single post that has the def:
[Code]....
But when I publish to another box, I get an error "Could not instantiate file name generator.". This only occurs on the post, all the other ActionResults work fine.
I am working on asp.net. and i want to implement partial posts in my application. my situation is like that i dont want to url changed in address bar and even page should not refreshed at all.
for that i used script manager and update panel but still page refreshes and url also changes.
post - postid(pk), topicid(fk), post (content), createdby, createddate, updatedby, updatedon.
As i told in my last post, I am designing a forums website. I am not able to design the query to retrieve the topics for a category for example say catid=1. I want to display it in a grid view as done in every forums.
I made some query :
SELECT Topic.Sub, Topic.CreatedBy,COUNT(Topic.viewers) from topic where catid=1
group by Topic.Sub,Topic.CreatedBy
This is for retrieving the topic name from the subject and the createdby giving the topic starter and the total no. of views of that topic.
Now i want to make a query from the post table displaying the last post in the topic and if the post does not exist, i want to display the 1st post from the topic table as the last post done.
I have an asp.net login page, which when initialized sets some session variables. When the user clicks login, an AJAX request is made which validates the user and sets additional session variables and returns a result to the client. The client is then redirected based on the login result. In the redirected page, I can access the session variables set when the login page was initialized (i.e. before the login) but none are present for those set during the login validation (part of an ajax call).
is this expected behaviour? Why would an ajax call generate a new session and thus cause the data to be lost?
Basically, I would like to include my latest Wall posting on my website. But, so far, everything I have read needs the visitor to the site to log-in to Facebook which, in theory, would then retrieve their latest Wall post. In prinicpal, I guess it would be like an RSS Feed.
Does a response.Redirect first postback to the page that's calling the redirect before actually redirecting? I don't think so but my debugging is showing me that it is.
I can see it doing so and that causes me a problem. The problem is this:
1) My page has an asp.net button on it 2) When the button is clicked, the page posts back of course. Then the following is called in the event handler method for that button:
Response.Redirect("Checkout?frpp=1"), true);
3) But I notice that when the redirect is called, it first goes back and hits the page load for this page, the page that's doing the redirecting. Well that is causing me problems because it's calling code that I don't want it to be calling again such as this:
if (!IsPostBackl) ShowOrderItems();
so it's like I'm doing a 2nd postback:
first postback happens when you click the button, hits the event handler, runs my handler method which calls the Redirect. Redirect is called but it's doing another postback to the same page here..why?
i have looked all over the forum but i cant find what im looking for, so here it goes:I need to create some sort of newsletter system that works like ths:User has 3 options (subscribe to):1. all new posts 2. comments on a specific post 3. all comments All i could find on forum and google was a newsletter system that an admin can use to send newsletters, but i need it to be automatically when someone posts a new post/comment. Mostly something like forums.asp.net is using :)Using vs 2005 express / c#.
I've been looking at google for the past few hours, trying to find an issue to a apparently simple problem. I have a UserControl named RolloverLink that basically contains a asp:LinkButton and a <img /> . I tried setting the OnClick handler like this:
[code]....
I put a breakpoint in the propagate method, but it doesnt stop there. The page does post back (it flashes), but the event doesn't get called.
I have a website where people can send an email to a group of people and then choose to have that letter posted on our website.
The problem has now become that I get so many of them, I can't keep up with doing it manually. What I'd like to do is have it go to a database and then have it automatically update the site. So, one page will have "teasers" with the Author's name, etc and a few lines of the letter and then it links to another page that has the entire letter.
I have a model that consists of Order, OrderLine, Product.
I want to create an Order and add OrderLines (each OrderLine related to a Product). I create the Order and add new OrderLines to it. Between posts I store the Order entity in Session (or ViewState). Just so you know I have added suppport for binary serialisation which works fine.
The relationship is therefore Order > OrderLine(s) > Product(s).
You might have already guessed what the problem is - that when I SaveChanges() I get the usual 'AcceptChanges cannot continue because the object's key values conflict with another object in the ObjectStateManager.' error.
I have referred to a number of articles online but none seem to handle this case (where I have the relationship across more than two entities) e.g. [URL].
This must be a very common requirement surely? Is there anyone out there doing the same kind of thing with Entity Framework (and without using DTOs etc)?
I'm writing a small discussion forum.I modeled on YAF - there is something like Mession, which depends on Session.Everything seems work until delete the session cookie - the data reset and all the posts/topics icons are displaying as new.I think, that there may be a better way to store lastvisits in session.I'm very interesting about the mechanism which is on this forum.
User amends an existing order. The order is complex - lots of related 'entities' (addresses, post options, suppliers, makes, models, various items etc). Across multiple http posts.
User wants to discard the changes.
I have an order entity and as the user is editing this I am making various changes to the entity associations e.g changing order.address, order.items.add(item)...
In a single post this is fine, but across posts I don't know how best store state. If I store the entities then I cannot save the changes as they are across different data contexts. I have read that it is bad practice to store the data context in the session state i.e. long-lived context. I can't save changes after each edit/post because I cannot roll-back (?). I really would like to work with the entities during the editing process rather than one big save at the end (taking UI settings and applying these in one chunk).
I am using Javascript to alter the innerHTML attribute of a <td> and I need to get that info back in the form submittal. The <td> corrosponds to an <asp:TableCell> on the server-side, where the Text attribute is set to an initial value.
The user cannot enter the value in this particular field. Instead, its value is set by me (via client-side script) based on actions that the user performs. But this field is useless to me if I can't see its value on the server-side as well.
I'd like to avoid using a read-only textbox, because those are difficult to resize dynamically. Can an <asp:Label> be used as form data? Is there any way to achive this without letting the user manually enter the data? Or is there a simpler way to store a string as a variable somewhere and send it back as form-data?
Here is what I want to do: I have a local site in which I want to display data from a remote site Lets say: I want to display data of http://www.abc.com/Default.aspx on my localhost
Now Default.aspx requires some post-data which it sends to itself. Thus the __viewstate and __eventvalidation are posted back to it by itself. I want to directly post the data to Default.aspx from localhost without opening Default.aspx and display the Default.aspx's response on my localhost.
The WebApp on http://www.abc.com is configured for __eventvalidation i.e. I cannot post-data to it from my localhost without getting a __viewstate from it. I also have to post the current __viewstate of http://www.abc.com/Default.aspx to itself