Hi all, I'm working on a large file transfer(P2P) in UDP air application. I want to connect client and server using TCP. Can anybody tell me how to connect both both in TCP. Thank you.
hello friends,
<div>
<label>
Date:
<span><input type="text" id="date" /></span>
<%--<%=Html.EditorFor(model=>model.Date) %>--%> // Should I use this as Input type?
</label>
<label>
Number#:
<%=Html.TextBox("Number", ViewData["inq"] ?? "")%>
</label>
<label>Comment</label>
<span>
<%=Html.TextArea("value")%>
<%=Html.ValidationMessage("value")%>
</span>
</div>
I am trying to get these three fields on the screen while user enters I am retreving the user enter data on front end.. when I am debugging I am not seeing these fields..
On the view I am using beginForm
<% using (Html.BeginForm("Update", "Home", FormMethod.Post, new { @id = "id" }))
{ %>
my method..
public JsonResult Update(StudentInfo info)
{
Update///
return Json(Status.ToString());
}
when I see in info I am not getting these three fields..
can any one help me out thanks
I am getting AJAX Control Toolkit is undefined error when I have the CombineScripts="true" on the ToolkitScriptManager:
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" EnablePageMethods="false" ScriptMode="Release"
LoadScriptsBeforeUI="false" runat="server" CombineScripts="true">
<CompositeScript>
<Scripts>
<asp:ScriptReference Path="~/JavaScript/jquery-1.4.1.min.js" />
<asp:ScriptReference Path="~/JavaScript/Custom.js" />
</Scripts>
</CompositeScript>
</ajaxToolkit:ToolkitScriptManager>
But when I set the CombineScripts to false everything seems to work. Why is this happening?
hey all,
I have to make a SMS sending application in .NET, which uses the attached Blackberry handset(blackberry tour 9630 to be precise) to send SMS. I have never worked on smartphone application development, so want help in doing this. I searched SO for an answer and found one question, but its in java and i think that code would run on blackberry itself and not on desktop, correct me if i am wrong.
So if someone could point me in the right direction I would be very grateful.
Thanks in advance to all those who reply.
/*
* Each physical page in the system has a struct page associated with
* it to keep track of whatever it is we are using the page for at the
* moment. Note that we have no way to track which tasks are using
* a page, though if it is a pagecache page, rmap structures can tell us
* who is mapping it.
*/
include/linux/mm_types.h
Here Please lemme know what is "pagecache page" means?
Thanks!
I've a Core Data application. In the producer thread, I pull data from a web service and store it in my object and call save.
My consumer object is a table view controller that displays the same.
However, the app crashes and I get
NSFetchedResultsController Error: expected to find object (entity: FeedEntry; id: 0xf46f40 ; data: ) in section (null) for deletion
on the console. When I debug it, everything works fine. So I understood that it's like a race issue.
How is these kind of problem solved? What's the best way to design a producer-consumer app with core-data?
Hello friends..
colNames: ['A','B','C','D'],
colModel: [
{ name: 'A', index: 'A', width: 90 },
{ name: 'B', index: 'B', width: 100 },
{ name: 'C', index: 'C', width: 70 },
{ name: 'D', index: 'D', edittype: 'select', width: 100, editoptions: { value: { 1: 'Yes', 2: 'No'}} }
],
My concersn here is.. I am displying A B C D values from db2... for Last Column D I need to put defalut drop down list for all the rows.
Thanks can any body help me out..
thanks
Hello
I am using ibatis and C#. i get a result from a select query that has CreatedDate as one of the field. The Datatype of CreatedDate in Mysql is Date. I assign the result set of the select query to a Ilist< DeliveryClass **. Here the DeliveryClass CreatedDate as DateTime. When i run the application, i get **Unable to convert MySQL date/time value to System.DateTime. What could be the problem?
Hi,
I am trying my hands on asp.net+ajax+httpmodule.
My Form
<form id="LoginForm" runat="server">
<asp:ScriptManager ID="LoginScriptMgr" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="LoginPanel" runat="server">
<ContentTemplate>
<asp:Label ID="lblLoginHeader" Text="Login" runat="server"></asp:Label>
<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
<asp:Button ID="btnLogin" Text="Login" runat="server" OnClick="Login" />
<asp:Label ID="lblLoginStatus" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</form>
C# Code
protected void Login(object sender, EventArgs e)
{
lblLoginStatus.Text = "Login Successful";
}
Web.config
<httpModules>
<add name="TimeModule" type="MyWebPortal.App_Code.TimeModule,App_Code"/>
</httpModules>
HTTP Module
public class TimeModule : IHttpModule
{
private HttpApplication oApps = null;
public void Dispose()
{
}
public void Init(System.Web.HttpApplication context)
{
oApps = context;
context.PreSendRequestContent += new EventHandler
(context_PreSendRequestContent);
}
void context_PreSendRequestContent(object sender, EventArgs e)
{
string message = "<!-- This page is being processed at " + System.DateTime.Now.ToString() + " -->";
oApps.Context.Response.Output.Write(message);
}
}
When i remove the TimeModule from Web.config my ajax works. If add the TimeModule then the label doesn't show the message "Login Successful".
Removing the ajax panel and with httpmodule available the label shows the message. So, how ajax panel was related to httpmodules?
I have an issue with the SAP .NET Connector
I have built a web application (ASP.NET, C#) that connects to SAP BAPI procedure to fetch results from SAP database.
I have connected it to SAP BAPI procedure and it also fetches the results for the web application.
My issue is, during the first attempt it takes 25 to 30 seconds to fetch the results, but from the second attempt onwards the results are fetched with no time.
I don't know exactly why it is taking so long to fetch the results on the first attempt.
Can somebody help me with this?
How to apply limit in php, mongodb when using mapreduce function?
I tried this
$cmd=array(// codition array
"mapreduce" => "user",
"map" => $map,
"reduce" => $reduce,
"out" => array("inline" => 1),
"limit"=>2
);
$db=connect();
$query = $db->command($cmd);// run command
But its not working it gives 2 documents.I can't use limit on sub documents.
If I have 100's of sub documents and then I want paging in sub documents.Then it fails.Is it possible to apply limit on sub documents?
Hi all, I'm trying to send large files using UDP Adobe air to CPP. While transferring large files some packets are missing. How can I retrieve the missing packets data? I'm first of all connecting client(air) with server(cpp) using tcp. After connection establishment I'm starting file transfer. I am planning to get the file missing data using tcp and then resending the missing packets using tcp. Can anybody tell me how can i come to know which packets are missing while transferring. Thank you.
Hello,
I am using a Xib (tab bar controller with navigation bar).
when i use navigation bar in app delegate then Xib slides little bit bellow.Actually i want a navigation bar on enter page so it is compulsory to define navigation bar in app delegate.
Please help me how i solve this problem.
We are currently evaluating Web servers for an embedded device. We have laid down the evaluation criteria for things like HTTP version, Security, Compression etc.
On the embeddable side, we have identified the following criteria:
Memory footprint
Memory management (support for plugging in a custom memory manager)
CPU usage
Thread usage (support for thread pool)
Portability
What I want inputs on is:
Are there any other criteria that an embeddable software should meet?
What exactly does it mean when someone says that a software is designed for embeddable use?
We currently have zeroed in on two Web servers:
AppWeb
Lighttpd (lighty)
Feature wise, both the above Web servers seem to be on par. However, it is claimed that AppWeb is designed for embedded use while Lighttpd is not. To choose between the above two Web servers, what criteria should I be looking at?
hello friends,
i have
public jsonresult update(studentinfo s)
{
for(i=0;i>0;i++)
{
var x = // i am getting some x so i am checking again
if( x != null)
{
var updateuser = student.update(s.student,"","");
**return json(updateuser.ToString());** // if i keep it here i am getting exceptoin saying not all code paths return value bec this return i can not keep it out for loop bec each and evary updateuser i need to return json..
}
}
}
how to overcome this type of things?
thanks
I have a remote tracking branch tracked locally in my local repository using 'git branch -b branch-name origin/branch-name'.
My remote branch is test2/test2 (origin/branch-name) which is being tracked locally as test2.
The origin is also named test2.
I haven't checked-out my local tracking branch test2.
When i do a 'git pull origin remote-branch:local-tracked-branch' i get this error
[test2]$ git pull test2 test2:test2
From /gitvobs/git_bare/test2
! [rejected] test2 - test2 (non fast forward)
Whereas when i checkout my local tracking branch test2
and do pull 'git pull origin local-tracked-branch' i don't get the error
and i do a pull using 'git pull test2 test2'
From /gitvobs/git_bare/test2
* branch test2 - FETCH_HEAD
Auto-merging a.txt
Automatic merge failed; fix conflicts and then commit the result.
i know that adding a + (git pull test2 +test2:test2) would help but it overwrites local changes.
So how do i know which of my local branches are created by me locally using 'git branch new-branch-name' or tracked locally from remote branches using git branch -b branch-name origin/branch-name'?
How to invoke a dll that is dynamically created (during runtime) in a sharepoint site? i am recieving an error that i dont have the load permissions.
Any help on this will be grateful.
I have one TextBox and one listbox for searching a collection of data. While searching a text inside a Listbox if that matching string is found anywhere in the list it should show in Green color with Bold.
eg. I have string collection like
"Dependency Property, Custom Property, Normal Property". If I type in the Search Text box "prop" all the Three with "prop" (only the word Prop) should be in Bold and its color should be in green. Any idea how it can be done?.
Data inside listbox is represented using DataTemplate.
Hello friends i have a beginform is soemthing like this,
<% using (Html.BeginForm("edit",
(Model.ExceptionCategoryID == "EXP") ? "expense" : "pricing", FormMethod.Post,
new { @id="exc-" + Model.ExceptionID}))
{ %>
<input type="hidden" id="Status" runat="server"/>
<%= Html.ValidationSummary(true)%>
input submit button
<input id="bSubmit" type="submit" class="button" value="Save" />
<script type="text/javascript">
$(document).ready(function() {
$('#bSubmit').click(function() {
var Status = "<%=Model.ExceptionStatus.Trim()%>";
alert(Status);
$('#1_Status').attr('value',Status);
});
</script>
on sbmit I am trying to send the Status value.. on controler
var sta = Request.Form[0];
I am getting something like 3%24Status in the From key..
why its hapeening ?
thanks