|
OK, so you are not planning to write it, but how do you expect to 'make' it? One possibility is that you have the compiler on your website, and allow a user to enter the source code on a web page. You then send that source to the server, compile it, capture the output and display the results back on the web page. You would then have some object code on your server, so what would you expect to do with that?
Veni, vidi, abiit domum
|
|
|
|
|
prince_crazy wrote: please help me out to make online compiler in c#.net???
Take time to explain your problem in detail. Also tell us what you've tried so far and where are you stuck. If you haven't started anything and just need the source code, then you've come to the wrong place. We don't write or give code to you.
If you don't have time to explain your question again, feel free to logoff from CodeProject and play your favorite game. We're professionals who have a job elsewhere and try to help fellow developers with their problems. We don't have time to answer your question if you don't have the time to explain your question well.
prince_crazy wrote: please please help me out
please
please
Remember that this is not Facebook; this is CodeProject, a professional site for programmers.
|
|
|
|
|
A simple version could:
Start by capturing the source code and writing to a text file.
Then execute the C compiler on the server, sending the output to a file so it can be displayed to the user
If it compiles OK, execute the compiled program, again directing the output to a file which you can then display to the user.
You can get moe sophisticated - like this site[^]
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
Your comments:
Quote: please please ... please
and then:
Quote: i dont have time to explain
You want help also and you are arrogant too. This doesnt work arround.
Be humble brother. Firstly no one will take what ever you just said. Pay respect to people. They are far knowledgeable then what you are. And do your homework. If you did that, you would not have come here to ask such a question.
|
|
|
|
|
I have a ForwardPosting.aspx page. It is a content page under the master page "MasterPages\MasterPage.master".
When its loading, the "MainFields" Div is shown normally. The "MainFields" Div markup code is the part bolded part along with its "MainFieldsDivStyle" CSS styling as following:
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.MainFieldsDivStyle
{
border-color: Black;
width: 75%;
border-style: solid;
margin-top: 22px;
background: rgb(219, 219, 219);
background: rgb(219, 219, 219);
}
.PopUpDivStyle
{
border-color: Black;
width: 50%;
border-style: solid;
margin-top: 22px;
background: rgb(219, 219, 219);
background: rgb(219, 219, 219);
}
.PopUpTableStyle
{
height:50px;
width:88px;
margin-left: 0px;
}
.StatusDDStyle
{
border: thin solid #000000;
background-color: #DADADA;
text-align:right;
}
.ErrorMessage
{
color: red;
text-align: right;
font-family: "Sakkal Majalla";
font-style: normal;
font-size: x-large;
}
.CellStyle
{
background-color:#7DE6FF;
border-color:Black;
border-style:solid;
border-width:1px;
}
.FileUploadStyle
{
direction:rtl;
}
.style2
{
font-size: 26px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CpMainContent" Runat="Server">
<script type="text/javascript">
function textCounter(field, maxlimit) {
var countfield = document.getElementById('<%=lblCharacterRemaining.ClientID %>');
if (field.value.length > maxlimit) {
field.value = field.value.substring(0, maxlimit);
return false;
}
else {
countfield.innerHTML = maxlimit - field.value.length;
}
}
function IsFileSelected() {
if (document.getElementById("<%=AttachmentsSelecter.ClientID%>").value == "") {
document.getElementById("<%=AttachmentsSelecter.ClientID%>").style.color = "Transparent";
document.getElementById("<%=AttachmentsSelecter.ClientID%>").style.backgroundColor = "Red";
}
else {
document.getElementById("<%=AttachmentsSelecter.ClientID%>").style.color = "black";
document.getElementById("<%=AttachmentsSelecter.ClientID%>").style.backgroundColor = "Green";
}
}
</script>
<div id="MainFields" runat="server" class="MainFieldsDivStyle" >
<table id="ReplyingForm" runat="server" width="98%">
<tr>
<td width="30%" style="text-align: right">
</td>
<td>
</td>
<td width="48%" height="50px">
</td>
<td >
</td>
<td width="10%" >
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td align="right">
<asp:textbox ID="SourceTxtBox" runat="server" Height="35px"
style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px; border-style:solid; border-color:Black; "
Width="500px" Enabled="False"></asp:textbox>
</td>
<td align="right" class="CellStyle">
<asp:Label ID="FromLabel" runat="server" Text="مـــــــن"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;" Width="110px"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td align="right">
<asp:DropDownList ID="TargetName" runat="server" DataSourceID="SDS1"
DataTextField="Name" DataValueField="Indx" Height="35px"
style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px; margin-bottom: 0px; border-style:solid; border-color:Black;"
Width="504px" BackColor="White" />
</td>
<td align="right" class="CellStyle">
<asp:Label ID="ToLabel" runat="server" Text="إلـــى"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="30px"
style="font-size: 26px;; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;"
BorderColor="Black" Width="110px"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td align="right">
<asp:textbox ID="RefNoTxtBox" runat="server" Height="35px"
style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px; border-style:solid; border-color:Black; "
Width="500px" Enabled="False"></asp:textbox>
</td>
<td align="right" class="CellStyle">
<asp:Label ID="RefNoLabel" runat="server" Text="مرجع الرسالة"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;"
BorderColor="Black" Width="110px"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td align="right">
<asp:textbox ID="LetterIDTxtBox" runat="server" Height="35px"
style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px; border-style:solid; border-color:Black; "
Width="500px" Enabled="False"></asp:textbox>
</td>
<td align="right" class="CellStyle">
<asp:Label ID="LetterIDLabel" runat="server" Text="رقم الرسالة"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="30px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;"
BorderColor="Black" Width="110px"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td align="right">
<asp:textbox ID="SubjectTxtBox" runat="server" Height="35px"
style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px; border-style:solid; border-color:Black; "
Width="500px" Enabled="False"></asp:textbox>
</td>
<td align="right" class="CellStyle">
<asp:Label ID="SubjectLabel" runat="server" Text="الموضــوع"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;"
BorderColor="Black" Width="110px"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align: right">
<asp:RequiredFieldValidator ID="CommentsRequiredValidator" runat="server"
ErrorMessage="لم تقم بإدخال الملاحظات" ControlToValidate="CommentsTxtBox"
CssClass="ErrorMessage" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
</td>
<td>
</td>
<td align="right">
<asp:TextBox ID="CommentsTxtBox" runat="server" TextMode="MultiLine" Height="100px"
Width="500px" BorderColor="Black" BorderStyle="Solid" Style="font-size: 22px;
font-family: 'Sakkal Majalla'; text-align: right;" MaxLength="400" onkeyup="textCounter(this,400);"></asp:TextBox>
</td>
<td align="right" class="CellStyle">
<asp:Label ID="CommentsLabel" runat="server" Text="الملاحظات"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;"
BorderColor="Black" Width="110px"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td style="text-align: right">
<asp:Label ID="lblCharacterRemaining" runat="server" Text="400" Height="35px" Style="font-family: Fanan;
font-size: 20px; text-align: center; margin-top: 0px; border-style: solid; border-color: Black;"
Width="80px" BackColor="#F9F9F9" Enabled="False" BorderColor="Black" BorderStyle="Solid"
BorderWidth="1px"></asp:Label>
</td>
<td class="CellStyle">
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td align="right">
<asp:DropDownList ID="RAPDDL" runat="server" Height="35px"
style="font-family: Fanan; font-size: 22px; text-align: center; margin-top: 0px; border-style:solid; border-color:Black; "
Width="80px" DataSourceID="SDS2" DataTextField="Count" DataValueField="Count">
</asp:DropDownList>
</td>
<td align="right" class="CellStyle">
<asp:Label ID="RAPLabel" runat="server" Text="مهــــــلة الـــرد"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;"
BorderColor="Black" Width="110px"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td align="right" >
<asp:DropDownList ID="ImportanceDD" runat="server" Height="32px"
style="font-family: SC_AMEEN; font-size: 20px; text-align: center; margin-top: 0px; border-style:solid; border-color:Black;"
Width="80px" DataSourceID="SDS3" DataTextField="Importance"
DataValueField="ImportValue">
</asp:DropDownList>
</td>
<td align="right" class="CellStyle">
<asp:Label ID="Label1" runat="server" Text="الأهمية"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;"
BorderColor="Black" Width="110px" >
</asp:Label>
</td>
<td>
</td>
</tr>
<tr >
<td style="text-align: right">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="لم تقم باختيار أي ملف مرفق" CssClass="ErrorMessage"
ControlToValidate="AttachmentsSelecter" SetFocusOnError="True"
Display="Dynamic">*</asp:RequiredFieldValidator>
</td>
<td>
<asp:CustomValidator ID="CustomValidator1" runat="server"
ErrorMessage="نوع الملف المرفق الذي قمت باختياره غير صحيح"
ControlToValidate="TmpTxt" OnServerValidate="AttachmentValidator1"
CssClass="ErrorMessage" SetFocusOnError="True" Display="Dynamic">*</asp:CustomValidator>
</td>
<td align="right" style="text-align: center">
<asp:FileUpload ID="AttachmentsSelecter" runat="server" onchange="IsFileSelected()"
Width="500px" BorderColor="Black" BorderStyle="Solid"
Height="35px" BackColor="White" BorderWidth="2px" style="margin-left: 4px; font-size: 20px; font-family: Tahoma;"
CssClass="FileUploadStyle" />
<br />
<asp:TextBox ID="RecTmpTxt" runat="server" Visible="False" Width="1px">Scratch</asp:TextBox>
<asp:TextBox ID="SubTmpTxt" runat="server" Visible="False" Width="1px">Scratch</asp:TextBox>
<asp:TextBox ID="TmpTxt" runat="server" Visible="False" Width="1px">Scratch</asp:TextBox>
</td>
<td align="right" class="CellStyle" >
<asp:Label ID="AttachmentLabel" runat="server" Text="المرفقات"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;" Width="110px"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align: right">
<asp:CustomValidator ID="SubmittedByValidator" runat="server"
ErrorMessage="لم تقم بإدخال إسم الذي قام بالتسليم"
ControlToValidate="SubTmpTxt"
OnServerValidate="SubmittedByValidator_ServerValidate" CssClass="ErrorMessage"
SetFocusOnError="True" Display="Dynamic">*</asp:CustomValidator>
</td>
<td>
</td>
<td align="right">
<asp:textbox ID="SubmittedByTxtBox" runat="server" Height="35px"
style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 2px; border-style:solid; border-color:Black; "
Width="500px"></asp:textbox>
</td>
<td align="right" class="CellStyle" >
<asp:Label ID="SubmittedByLabel" runat="server" Text="قام بالتسليم"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: center;"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align: right">
<asp:CustomValidator ID="ReceivedByValidator" runat="server"
ErrorMessage="لم تقم بإدخال إسم الذي قام بالاستلام"
ControlToValidate="RecTmpTxt"
OnServerValidate="ReceivedByValidator_ServerValidate" CssClass="ErrorMessage"
SetFocusOnError="True" Display="Dynamic">*</asp:CustomValidator>
</td>
<td>
</td>
<td align="right">
<asp:textbox ID="ReceivedByTxtBox" runat="server" Height="35px"
style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px; border-style:solid; border-color:Black; "
Width="500px"></asp:textbox>
</td>
<td align="right" class="CellStyle" >
<asp:Label ID="ReceivedByLabel" runat="server" Text="قام بالاستلام"
BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px"
style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: center;"
></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td align="center">
<asp:Button ID="PosttheForward" runat="server" BackColor="#6262FF" BorderColor="Black"
BorderStyle="Solid" BorderWidth="1px" ForeColor="White" Height="40px"
style="text-align: center; font-size: 24px; margin-top: 16px; margin-bottom: 20px; font-family: 'Sakkal Majalla';"
Text="حــــول" Width="131px" />
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
<table id="ValidationSummaryTable" runat="server" width="80%">
<tr>
<td rowspan="5" align="right">
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
CssClass="ErrorMessage" DisplayMode="List"
Height="91px" Width="80%" />
</td>
</tr>
</table>
</div>
When the "ForwardPosting.aspx" page is loading I want to put a statement that fires "PopUpDiv" which showing a message "You can not forward..." with "OK" button". While the "PopUpDiv" is shown, the Background style turned to be fully grey. When the user press the "OK" button, the user redirected to another page.
The "PopUpDiv" markup:
<div id="PopUpDiv" runat="server" class="PopUpDivStyle" visible="false">
<asp:Panel ID="Panel1" runat="server" Width="600px" Height="150px" >
<br />
You can not forward the letter because the period finished.
You can only make replying.<br class="style2" />
<br />
<asp:Button ID="PopupButton" runat="server" Height="38px" Text="OK" Width="99px" style="color: #0066CC; font-weight: 700; font-size: medium" />
</asp:Panel>
</div>
So how to preform it using the ModalPopupExtender of the AjaxToolkitControls?
|
|
|
|
|
I've googled and binged and still feel wholly ignorant
I tend the database side of a 'system' or process that our clients update by GETting task info from our web service into an Excel spreadsheet. As tasks are completed, they use a different tab on the spreadsheet to POST info on the task back through the web service. The web service is written in Delphi and hits stored procedures for both the GET and POST. FWIW, I don't have access to the Delphi source code. I'd like to learn to do some of this in .Net/C# and I have access to VS2013.
The GET side returns what LINQ would consider a projection, so there is no 'entity' model in EF, just a complex type. I can duplicate the results of the GET using WCF Data Services. The POST side should talk to a stored procedure that requires a number of parameters that are likewise not an entity, but an amalgam of properties from a couple of SQL tables. This is where I cannot figure things out and can't find any discussion of anything similar. First, the vast majority of examples deal with querying an OData service and the few that deal with POSTing all assume you're creating a new ENTITY or updating an existing one.
So, finally, the question: can anybody tell me if what I'd like to do is even possible with WCF Data Services & EF and, if so, in general terms HOW.
If the answer is that I can't do this in WCF DS & EF, then what do you recommend as the means by which I can learn how to do this, and actually accomplish it?
|
|
|
|
|
How to create timetable with Gridview or Table format?
|
|
|
|
|
Hi all
I know what ever i am going to write will look bit silly, but please if you people can help it will be great for me.
I am working as a developer from past 2 years. i work on web and windows applications.
still now in web application i worked on concepts like ajax, javascript, css, html and c# concepts in a basic manners.
But now i want to go for some new concepts in web application to enhance my skills.
If you guys can suggest me some topics/links for this i will be very thankful to you all..
Thank you
|
|
|
|
|
|
|
How to create connection pool in asp.net?
------------------------
Page Like
|
|
|
|
|
|
I want to show a text from textbox 1 to textbox 2 with different colors in each text,here i am using Array to get text...
|
|
|
|
|
Better you can change the color property of the the textbox2 control dynamically in javascript. For example if you have 10 predefined colors, you can change it dynamically when the event get fired. Event can be a button click or onchange, etc.
|
|
|
|
|
HI..
I developed mvc3 website with webservice which is working fine on local system but when i uploaded that site on server i'm getting 404 error...Please give me the solution
Here is my code for webservice call.
$.ajax({
type: "POST",
contentType: "application/json; ",
url: "../../WebService1.asmx/addtoqueue",
data: "{'bookid':" + bookid + "}",
dataType: "json",
success: function (data) {
if (data.d == "login") {
// alert(data.d);
document.getElementById('msgp').innerHTML = "Book Added To Queue</br></br>";
$(".click").click();
}
else {
document.getElementById('msgp').innerHTML = "Please Login to Proceed !!</br></br>";
$(".click").click();
}
},
error: function (result) {
alert(result.text);
}
});
Thanks in advance
|
|
|
|
|
Hi,
Since most of the free api's are not accessible(In India) i want to send sms via phone.
I Googled it but all i got to know is, it can be done by AT commands.
Can anyone please help me out with a simple code.
Thank you.
A used key is always better than a new one.
|
|
|
|
|
Can someone nkows how to implement a real time event notification
like one on facebook?
Using ASP.NET MVC 4 and C#?
|
|
|
|
|
Sounds like you're looking for SignalR[^].
Quote: SignalR can be used to add any sort of "real-time" web functionality to your ASP.NET application.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I want to start for a new application for the bus reservation system.
I want to generate a seating layout dynamically. Every bus has different seating layout.
i am not getting any idea how to start , which controls should i use , or which concept should i use to implement this ... please give me any suggestion or Idea.
|
|
|
|
|
|
For a starter, try this:
1. Store your row and column configuration for each bus in a database in multiple tables that are normalized.
2. While rendering the page, place a ASP.NET Panel or PlaceHolder control and generate the inner html yourself.
3. Use a DIV control for each seat and set it's size as square. Make it clickable and assign a JavaScript method to its onclick event.
4. When a seat is selected, change the DIV's CSS style to a predefined style that gives a visual clue that it is selected and maintain a JavaScript array to store the state of each seat.
5. Store the array information in a hidden field and pass it back to the server on postback.
This might seem to be very rudimentary, but I'm sure you'll find it exciting. You'll also learn a lot of HTML, CSS, JavaScript, etc. that are essential to mastering any web development technology.
|
|
|
|
|
That seems to be a common homework question. Beyond thatraja's movie theatre example, the question was also often asked for airplane/flight seat booking system.
It is important that you get used to the bsaics of software development. divide the big problem into many small problems, until you can solve each of them. And then combine the solutions. Try it. Perhaps you'll have to iterate several times, but only by doing it will you learn it.
|
|
|
|
|
Hi,
I havn't worked in such projects. But i think there will be few types of seats based on the bus and you would be knowing the seats count, booked seats no. and other related information from database during the page load. So that you can load different types of images as seats inside the DIV initially. When the user cliks on the seat, you have to show the different image like seat has booked.
Thanks & Regards
Ashok
|
|
|
|
|
i have requirement for my project .... that i need to provide Edit template Facility to user using ASP.Net & C#. i will provide user templates...he can select that template and edit that for that i need a solution.how to achieve EDIT TEMPLATE functionality.after editing that template he can download it.
|
|
|
|
|
I'm creating a WCF service to go in my ASP.NET application. I'm at the beginning stages so mostly what I have is design questions.
So basically there is data that I would like people to pull out but only if they are authenticated. (Everyone pulling data would be external). The way my application is designed is I have a certain ID that associates users with a specific company. So my end goal is to allow people with those companies to query data for their company only.
So my thought was to create a table in my database that would have three columns. CompanyID, UserKey, UserSecret. My thought was that they would somehow pass the userkey and usersecret when they first initiate the connection to WCF. On the backend it will retrieve the CompanyID based off the key and secret.
The reason for doing this is so when they call GetAllUsers() it will only get all users for their company and not other companies.
So my questions are:
* Is my design wrong or is there a better way to accomplish this?
* I chose not to use active directory authentication due to the added time it will take to authenticate a user against AD vs SQL
I was thinking along the lines of the way SoapHeaders work. They set the SoapHeader when they create teh connection. Then each method on the web service would compare the key & secret against the database to make sure it existed (if it did I would get the CompanyID back and use that for the methods such as GetAllUsers() )
Thanks in advanced!
|
|
|
|