Following the steps in this post:
http://forums.silverlight.net/forums/t/177042.aspx
Where/How do I add the [Key] attribute on the Name property of the IAuthentication where User is one of my ADO.Net Entity objects?
My options so far seem to be:
In the designer codebehind of me ADO.Net Entity Model.
Create a partial User class and add it there
In the AuthenticationService.metadata.cs partial User class.
It just does not seem to work no matter where I place the [Key] attribute.
Using PHP can you create a pseudo form submit without ever generating a form? Just initialize and declare variables and them pass them to another page via the POST or GET methods?
I have a controller: twitter_status with two functions:
tweet_post
tweet_comment
in routes.rb I have
map.resources :twitter_status
In my show post view, I have a partial: _show and _show_comment
In _show I have: tweet_post_twitter_status_path (...) and that works fine.
But in the in _show_comment partial I have:
tweet_comment_twitter_status_path (...)
but I have a NoMethodError in the show.html.erb view.
Any ideas?
Previously attoparsec was suggested to me for parsing complex binary file formats. While I can find examples of attoparsec parsing HTTP, which is essentially text based, I cannot find an example parsing actual binary, for example, a TCP packet, or image file, or mp3. Can someone post some code or pointer to some code which does this using attoparsec?
Where keys are represented by element type and values are represented by #foo and .bar (spaced and ready for explode()). Is it possible, or does something exist for it?
I know that this question might incite some wrath, and I'm hoping nobody links to that post about parsing HTML, but I'm hoping it's not impossible. Thanks for the help.
Addendum: Ideally, PHP would be used, since it's the only scripting language I know.
I'm currently a junior in high school and I've been slacking off on my community service to develop websites and do some personal projects in C#. Currently, I'm developing an web-based IM-Chat through node.js (the server-side Javascript). If I were to post this or other projects on Github or on Google Code, could this be considered community service?—to the programming community?
I trying to restful server that one can upload image, By use django-piston I can put,get,post information restfully but don't know how to upload image.
I am using ASP.NET 4.0 and MVC 2 I have added these lines which i found in other articles -
To the Web-Config -
<httpRuntime requestValidationMode="2.0"/>
To the Controller -
<ValidateInput(False), AcceptVerbs(HttpVerbs.Post)>
To the View Page -
<%@ Page ValidateRequest="false" %>
But still gives me "A potentially dangerous Request.Form value was detected from the client"
I am trying to use the Markitp editor in this way -
<%= Html.TextAreaFor( model => model.Description,"markitup")%>
Hey everybody,
I am a novice TCL programmer.Here I go My 1st post with stackoverflow forum. I would like to write a regular expression that matches any & only the strings starts with character A and ends with B. Whatever the characters coming inbetween should be displayed. For instance AXIOMB as an input from the user which starts with A & end with character B. Here is my try regexp { (^A([C-Z]+)B$)} Thank you
I am using the <a> element to increase the font size in my webpage.
<a href="javascript:increaseFontSize();">+</a>
The problem with it is that i cannot set a background image.
So what component should i choose from the VS2008 toolbox that has OnClientClick property and does not post-back?
For examaple, i set the OnClientClick property in a ImageButton, but the postback is executed after the ClientSide click
This question is related to the post here. Is it possible to initialize an array in a function call or constructor call? For example, class foo's constructor wants an array of size 3, so I want to call foo( { 0, 0, 0 } ). I've tried this, and it does not work. I'd like to be able to initialize objects of type foo in other objects' constructor initialization lists, or initialize foo's without first creating a separate array. Is this possible?
<%using (Html.BeginForm("Numbers", "Numbers", FormMethod.Post))
{ %>
<table id="numbers">
<tr>
<th>
prvi_br
</th>
<th>
drugi_br
</th>
<th>
treci_br
</th>
</tr>
<%int rb =1; %>"
<% foreach (var item in Model) { %>
<tr>
<td>
<%= Html.Encode(item.prvi_br) %>
<input type="radio" name="<%= Html.Encode(rb) %>" value="<%= Html.Encode(rb) %>" />
</td>
<td>
<%= Html.Encode(item.drugi_br) %>
<input type="radio" name="<%= Html.Encode(rb) %>" value="<%= Html.Encode(rb) %>"/>
</td>
<td>
<%= Html.Encode(item.treci_br) %>
<input type="radio" name="<%= Html.Encode(rb) %>" value="<%= Html.Encode(rb) %>"/>
</td>
</tr>
<% rb++; %>
<% } %>
</table>
<p>
<input type="submit" value="Save" />
</p>
<%} %>
How post this form with only one checked radio button? In my case all of 3 radio buttons is possible to check. How to restrict so that it is possible check only one radio. In this article I found good solutions but it can not be applied because I have a table.
How can I make Grizzly HTTP server allow JaaS for simple HTTP AUTH?
I can't see any code/sample out there: There's another post here in StackOverflow that directly assumes that jaaS is available in Grizzly, but doesn't explain how to add it.
Hi,
So i am able to display my own facebook wall posts on my own website,( just the last 4 posts). But i like to display the last x wall posts of a fan page i admin?? How do i get the wall posts from my page??
I am a fan of this page but how do i use stream_get to get the wall post??
regards
Post a snippet of code from your favorite templating engine, with the name of the engine and a link to its homepage; show off its basic syntax and maybe some neat features about it that makes it unique.
Hopefully this will give people an idea of what's out there and make it easier for them to decide on an engine.
I'm in the middle of developing an e-commerce site that is using Paypal as it's payment gateway. All I want to do is run some code before the user heads off to Paypal, but I have no idea how to do it. Eg:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult GoToPaypal(FormCollection collection)
{
//do what I want to do
//go to paypal
}
Can you do this? Example HTML and C# would be lovely :)
I'm using the Ruby GData Library to access Google Docs and I recently got the GData::Client::CaptchaError because I was re-logging in with every request. Reading this post, it recommends not logging in with every request, but caching the authentication token. How do I go about doing that correctly? Google says it expires every 24 hours, and it doesn't seem like I should store it in the session, so what should I do? I'm using Ruby on Rails with all this.
Thanks so much
I am trying to use Eclipse to build some existing software (written in C), which is built with a Makefile. For this reason I created a 'Makefile project' in Eclipse.
However, I just found out, the in the 'C/C++ Build / Settings' menu, I only see the 'Binary Parsers' and 'Error Parsers' tabs. However, I really need the 'Build Steps' tabs, because I also need to add a post-build command.
How can I make the 'Build Steps' tab appear in my project?
Hi ive set up 2 scripts, both communicating back and forth.
One thing id like is for 1 script to post an unknown amount of GETs to the other script.
Id like the other script to some how be able to grab all the GETS and put the values in an array.
if encoding using escape(data) in javascript, how to deconde it in server side?
I use ajax to post encoding data with escape javascript function, how can I decode it at the server side with classic asp
I have a PHP script which takes a value from a row in my MySQL database, runs it through a function, and if it determines it's true returns one value, and if it's false, it needs to go to the next value in the database and check that one until eventually one returns true.
I think I need to use mysql_fetch_assoc, but I'm not really sure in what way to use it... I wish I could post my code to be more specific, but it's a lot of code and most of it has no bearing on this issue...
or the other way around?
I use generic lists all the time. But I hear occasionally about IEnumerables, too, and I honestly have no clue (today) what they are for and why I should use them. So, at the risk of having something on the net forever more proclaiming my ignorance, I humbly post this question.
Hi everyone I am not clear with SQL reporting services can someone pls give me breef explanation or post some tutorial with examples and concept explanations. ]
Thanks a lot.
Hi, how can i make this code to don't pause the browser but still return value.
You can rewrite this with new method of course.
function get_char_val(merk)
{
var returnValue = null;
$.ajax({
type: "POST",
async: false,
url: "char_info2.php",
data: { name: merk },
dataType: "html",
success: function(data)
{
returnValue = data;
}
});
return returnValue;
}
var px= get_char_val('x');
var py= get_char_val('y');