|
No, that makes perfect sense.
From my standpoint, I'd usually try and do that job on the JS side because I strictly try and keep UX on the JS side.
There is another option, you could pipeline your responses so that you have a standard response object that is parsed out by Angular. This is not fundamentally dissimilar to how I usually structure services that are meant for consumption by Angular, here's a sloppy example:
public class UXResponse
{
public Dictionary<string,string> Templates{ get; set; }
public object[] Models { get; set; }
}
public ActionResult Chart(int stuff)
{
var queriedItems = context.Stuff.Where(x => x.thing == stuff).ToArray();
var chart = ChartProvider.DoSomethingToGenerate(queriedItems);
...
var response = new UXResponse();
response.Templates.Add("controls", chart.ToHTMLResponseOrWhatever());
response.Models = queriedItems;
return response;
}
Then on the Angular side you make a symmetrical interpreter as a service and run your queries through it:
myApp.service('$getStuff',['$http',function($http){
this.query = function(url, data,callback){
$http.post(url, data).then(
function(result)
{
for(var key in data.Views)
{
document.getElementById(key).innerHTML(data.Views[key]);
}
callback(result.Model)
}
}
}]);
Super rough, but that's the idea.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Hi All,
I have to have date ranges selected multiple times in HTML5, Like for example if we have Start Date and End Date, like this, there should be multiple Start and End Dates Selected, if one Start and End Date is Selected, then the drop down (or that element) should allow me to select another one as long as I want one.
Any help would be appreciated thanks in advance my friends.
Here is my code to display one set of Date pickers for start and end:
var template;
if (paramType === 'Date Range') {
var multiple = "multiple='multiple'";
template =
'<div id="Param_' + Id + '">' +
'<div class="parameterHeader ui-widget-header ui-corner-top">' + paramDisplayName + '</div>' +
'<div class="parameterItem ui-widget-content ui-corner-bottom" ' + multiple + '>' +
'<div class="parameterFieldResize parameterField">' +
'<input class="parameterDateRangePicker clearable" placeholder="Start" type="text" name="' + paramName + '_1_Start" id="' + paramName + '_1_Start" />' +
'<input class="parameterDateRangePicker clearable" placeholder="End" type="text" name="' + paramName + '_1_End" id="' + paramName + '_1_End" />' +
'</div>' +<br />
'</div>' +
'</div>';
<pre>
this.JQElem = $(template);
initialParent.append(this.JQElem);
$('#' + paramName + '_1_Start').datepicker({
onSelect: function (dateText) {
$(this).trigger("input");
if (typeof me.values[this.id.split('_')[1]] === 'undefined')
me.values[this.id.split('_')[1]] = {};
me.values[this.id.split('_')[1]]['Start'] = dateText;
}
});
$('#' + paramName + '_1_End').datepicker({
onSelect: function (dateText) {
$(this).trigger("input");
if (typeof me.values[this.id.split('_')[1]] === 'undefined')
me.values[this.id.split('_')[1]] = {};
me.values[this.id.split('_')[1]]['End'] = dateText;
}
});
$("#" + paramName + '_1_Start').change(function (event) {
var dateString = this.value;
if (/^\d{1,2}\/\d{1,2}\/\d{2}$/.test(dateString)) {
dateString = dateString.substring(0, dateString.length - 2) + '20' + dateString.substring(dateString.length - 2, dateString.length);
this.value = dateString;
}
if (isValidDate(dateString)) {
if (typeof me.values[paramName + '_1'] === 'undefined')
me.values[this.id.split('_')[1]] = {};
me.values[this.id.split('_')[1]]['Start'] = dateString;
} else if (typeof me.values[this.id.split('_')[1]] !== 'undefined' && typeof me.values[this.id.split('_')[1]]['Start'] !== 'undefined') {
if (typeof me.values[this.id.split('_')[1]]['End'] !== 'undefined')
delete me.values[this.id.split('_')[1]];
else
delete me.values[this.id.split('_')[1]];
}
});
$("#" + paramName + '_1_End').change(function (event) {
var dateString = this.value;
if (/^\d{1,2}\/\d{1,2}\/\d{2}$/.test(dateString)) {
dateString = dateString.substring(0, dateString.length - 2) + '20' + dateString.substring(dateString.length - 2, dateString.length);
this.value = dateString;
}
if (isValidDate(dateString)) {
if (typeof me.values[this.id.split('_')[1]] === 'undefined')
me.values[this.id.split('_')[1]] = {};
me.values[this.id.split('_')[1]]['End'] = dateString;
} else if (typeof me.values[this.id.split('_')[1]] !== 'undefined' && typeof me.values[this.id.split('_')[1]]['End'] !== 'undefined')
if (typeof me.values[this.id.split('_')[1]]['End'] !== 'undefined')
delete me.values[this.id.split('_')[1]];
else
delete me.values[this.id.split('_')[1]];
});
The same thing was possible for Multi select Dropdown, here is the code for that, but when I am trying to do the same on the Date pickers its not working, any Idea is going to be greatly helpful, a code snippet, a link or even suggestion is going to be very helpful thanks in advance my friends.
var template;
if (paramType === 'Date Range') {
var multiple = "multiple='multiple'";
template =
'' +
'' +
' ' +
' ' +
'<input class="parameterDateRangePicker clearable" placeholder="Start" type="text" name="' + paramName + '_1_Start" id="' + paramName + '_1_Start" />' +
'<input class="parameterDateRangePicker clearable" placeholder="End" type="text" name="' + paramName + '_1_End" id="' + paramName + '_1_End" />' +
' ' +
' ' +
' ';
//Insert HTML
this.JQElem = $(template);
initialParent.append(this.JQElem);
$('#' + paramName + '_1_Start').datepicker({
onSelect: function (dateText) {
$(this).trigger("input");
if (typeof me.values[this.id.split('_')[1]] === 'undefined')
me.values[this.id.split('_')[1]] = {};
me.values[this.id.split('_')[1]]['Start'] = dateText;
}
});
$('#' + paramName + '_1_End').datepicker({
onSelect: function (dateText) {
$(this).trigger("input");
if (typeof me.values[this.id.split('_')[1]] === 'undefined')
me.values[this.id.split('_')[1]] = {};
me.values[this.id.split('_')[1]]['End'] = dateText;
}
});
$("#" + paramName + '_1_Start').change(function (event) {
//convert to 4 digit year (always will be in the 20's)
var dateString = this.value;
if (/^\d{1,2}\/\d{1,2}\/\d{2}$/.test(dateString)) {
dateString = dateString.substring(0, dateString.length - 2) + '20' + dateString.substring(dateString.length - 2, dateString.length);
this.value = dateString;
}
if (isValidDate(dateString)) {
if (typeof me.values[paramName + '_1'] === 'undefined')
me.values[this.id.split('_')[1]] = {};
me.values[this.id.split('_')[1]]['Start'] = dateString;
} else if (typeof me.values[this.id.split('_')[1]] !== 'undefined' && typeof me.values[this.id.split('_')[1]]['Start'] !== 'undefined') {
if (typeof me.values[this.id.split('_')[1]]['End'] !== 'undefined')
delete me.values[this.id.split('_')[1]];
else
delete me.values[this.id.split('_')[1]];
}
});
$("#" + paramName + '_1_End').change(function (event) {
//convert to 4 digit year (always will be in the 20's)
var dateString = this.value;
if (/^\d{1,2}\/\d{1,2}\/\d{2}$/.test(dateString)) {
dateString = dateString.substring(0, dateString.length - 2) + '20' + dateString.substring(dateString.length - 2, dateString.length);
this.value = dateString;
}
if (isValidDate(dateString)) {
if (typeof me.values[this.id.split('_')[1]] === 'undefined')
me.values[this.id.split('_')[1]] = {};
me.values[this.id.split('_')[1]]['End'] = dateString;
} else if (typeof me.values[this.id.split('_')[1]] !== 'undefined' && typeof me.values[this.id.split('_')[1]]['End'] !== 'undefined')
if (typeof me.values[this.id.split('_')[1]]['End'] !== 'undefined')
delete me.values[this.id.split('_')[1]];
else
delete me.values[this.id.split('_')[1]];
});
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
modified 31-Oct-16 16:02pm.
|
|
|
|
|
I want to create a single page on which i can perform full crud operation using dropdownlist, radiobuttonlist, checkbox ,checkbox inside dropdown in a gridview.
and at the left side of each row in gridview should be insert, delete and update.
and should be a button on which click we can see the deleted rows.
please send the code with database script file.
|
|
|
|
|
Member 12736856 wrote: please send the code with database script file. Sorry this is not a "code to order" forum.
|
|
|
|
|
Member 12736856 wrote: please send the code with database script file. It is incredibly rude to ask people to do all the work for you. I hope this is not what you meant and that you will edit your post and ask a more specific question to help you get past where you are stuck.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I have an MVC view page (Views\DataForms\Index.cshtml) with an HTML form that just contains a couple of selects and a hidden element. I'm trying to POST the form to action 'Edit' in controller 'DataForms'. My form tag contains method="post" and action="DataForms\Edit".
The form includes a basic button with type="submit" and value="Submit", nothing unusual. But when I submit the form, the navigation fails with the error page showing the Requested URL as: http://localhost:49796/DataForms/Index/DataForms/Edit
So, the URL I'm actually requesting, is instead being appended to the URL of the current page where my form is. What might be causing this? I've searched the internet and I don't see anyone else raising this issue. Thanks.
|
|
|
|
|
You're specifying a relative URL as the action of your form. That will be resolved relative to the current URL.
Use the action URL helper to specify the form action:
<form method="POST" action="@Url.Action("Edit", "DataForm")">
...
</form>
UrlHelper.Action Method (System.Web.Mvc)[^]
Or use the BeginForm helper:
@using (Html.BeginForm("Edit", "DataForm", FormMethod.Post))
{
...
}
FormExtensions.BeginForm Method (System.Web.Mvc.Html)[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Have a toggle switch where I want to show textboxes based on what is selected on the toggle switch and need help on it. If Contract is selected I want to show contract row, if Order is select order row. Also how do I replace the row on top of the other row depending on which is selected from the toggle switch. So if I select Contract I want the Contract row/textbox to show obviously and if Order is selected, I want the Order row/textbox to show in the same spot as the Contract row/textbox.
Here is the code I have so far but need help completing it:
<div class="col-md-3">
<label class="switch2">
<input class="switch-input2" type="checkbox" id="contractselection" name="contractselection" runat="server"/>
</label>
</div>
<div class="col-xs-4">
<div class="contractrow">
<label for="exampleInputCity">Contract:*:</label>
<asp:TextBox ID="contractnumber" class="form-control" name="contractnumber" placeholder="" runat="server"></asp:TextBox>
</div>
<asp:RequiredFieldValidator ID="rfvcontractnumber" runat="server" ControlToValidate ="contractnumber" ErrorMessage="Please enter a Contract">
</asp:RequiredFieldValidator>
<div class="orderrow">
<label for="exampleInputCity">Solicitation:*:</label>
<asp:TextBox ID="ordernumber" class="form-control" name="ordernumber" placeholder="" runat="server"></asp:TextBox>
</div>
<asp:RequiredFieldValidator ID="rfvsolicitationnumber" runat="server" ControlToValidate ="ordernumber" ErrorMessage="Please enter a Order">
</asp:RequiredFieldValidator>
</div>
</div>
</div>
javascript:
<script type="text/javascript">
$(function () {
$(".contractrow").show();
$(".switch-input2").click(function () {
if ($(this).is(":checked")) {
$(".contractrow").show();
} else {
$(".solicitationrow").hide();
}
});
});
</script>
|
|
|
|
|
Try something like this:
$(function(){
var showTheRow = function(isChecked){
$(".contractrow").toggle(isChecked);
$(".orderrow").toggle(!isChecked);
};
$(".switch-input2").click(function(){
showTheRow(this.checked);
});
showTheRow($(".switch-input2").is(":checked"));
});
.toggle() | jQuery API Documentation[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I have a couple of toggle switches: one with Yes/No option and the other with Delivery/Purchase option. I know that you can use the ControlName.Checked but that just inserts True or False. How do I do this when these are the options.
Here are my toggle switch code for Purchase/Delivery:
<label class="switch">
<input class="switch-input" type="checkbox" id="orderselection" name="orderselection" runat="server" />
</label>
and Yes/No:
<label for="exampleOrderNumber">Are Redelegations Authorized?<label for="exampleInputCity">:</label>
<label class="switch">
<input class="switch-input" type="checkbox" id="authredelegation" name="authredelegation" runat="server" />
</label>
|
|
|
|
|
Use the ternary operator:
C#:
command.Parameters.AddWithValue("@OrderSelection", orderselection.Checked ? "Purchase" : "Delivery");
VB:
command.Parameters.AddWithValue("@OrdersSelection", If(orderselection.Checked, "Purchase", "Delivery"))
NB: For "yes/no" options, it's best to stick with the boolean value. Just declare your database column as a bit .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Greetings gurus,
I have a requirement to collect information from users by presenting a form to them.
Upon completing the form and hitting the submit button, the content of their submission is stored in the db and at the same time sent as an email attachment all at once.
Is this possible?
If yes, does anyone know what I need to modify in the code below?
The code is not fully cooked but I need some guidance on how to submit the record and at same time sending the contents of the record as an attachment via email.
Thanks for your awesome help.
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
Dim table As New DataTable()
Using con = New SqlConnection(ConfigurationManager.ConnectionStrings("PersonnelPolicyDB").ConnectionString)
Using cmd = New SqlCommand("usp_AddABCD", con)
Using da = New SqlDataAdapter(cmd)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.AddWithValue("@oderno", "orderno.text")
cmd.Parameters.AddWithValue("@orderdate", "orderdate.text")
da.Fill(table)
End Using
End Using
End Using
End Sub
Dim table As New DataTable()
Using con = New SqlConnection(ConfigurationManager.ConnectionStrings("PersonnelPolicyDB").ConnectionString)
Using cmd = New SqlCommand("usp_GetABCD", con)
Using da = New SqlDataAdapter(cmd)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.AddWithValue("@orderno", "orderno.text")
da.Fill(table)
End Using
End Using
End Using
End Sub
Private Sub SendPDFEmail(dt As DataTable)
Using sw As New StringWriter()
Using hw As New HtmlTextWriter(sw)
Dim companyName As String = "my Company"
Dim orderNo As Integer = 2303
Dim sb As New StringBuilder()
sb.Append("<table width='100%' cellspacing='0' cellpadding='2'>")
sb.Append("<tr><td align='center' style='background-color: #18B5F0' colspan = '2'>Order Sheet</td></tr>")
sb.Append("<tr><td colspan = '2'></td></tr>")
sb.Append("<tr><td>Order No:")
sb.Append(orderNo)
sb.Append("</td><td>Date: ")
sb.Append(DateTime.Now)
sb.Append(" </td></tr>")
sb.Append("<tr><td colspan = '2'>Company Name : ")
sb.Append(companyName)
sb.Append("</td></tr>")
sb.Append("</table>")
sb.Append("<br />")
sb.Append("<table border = '1'>")
sb.Append("<tr>")
For Each column As DataColumn In dt.Columns
sb.Append("<th style = 'background-color: #D20B0C;color:#ffffff'>")
sb.Append(column.ColumnName)
sb.Append("</th>")
Next
sb.Append("</tr>")
For Each row As DataRow In dt.Rows
sb.Append("<tr>")
For Each column As DataColumn In dt.Columns
sb.Append("<td>")
sb.Append(row(column))
sb.Append("</td>")
Next
sb.Append("</tr>")
Next
sb.Append("</table>")
Dim sr As New StringReader(sb.ToString())
Dim pdfDoc As New Document(PageSize.A4, 10.0F, 10.0F, 10.0F, 0.0F)
Dim htmlparser As New HTMLWorker(pdfDoc)
Using memoryStream As New MemoryStream()
Dim writer As PdfWriter = PdfWriter.GetInstance(pdfDoc, memoryStream)
pdfDoc.Open()
htmlparser.Parse(sr)
pdfDoc.Close()
Dim bytes As Byte() = memoryStream.ToArray()
memoryStream.Close()
Dim mm As New MailMessage("NoReply@domain.com", "myemail@domain.com")
mm.Subject = "iTextSharp PDF"
mm.Body = "iTextSharp PDF Attachment"
mm.Attachments.Add(New Attachment(New MemoryStream(bytes), "iTextSharpPDF.pdf"))
mm.IsBodyHtml = True
Dim smtp As New SmtpClient()
smtp.Host = "myhostname"
smtp.EnableSsl = False
Dim NetworkCred As New System.Net.NetworkCredential()
NetworkCred.UserName = "myusername"
NetworkCred.Password = "mypassword"
smtp.UseDefaultCredentials = True
smtp.Credentials = NetworkCred
smtp.Port = 25
smtp.Send(mm)
End Using
End Using
End Using
End Sub
|
|
|
|
|
It's rather easy. Write code to save to the database and then write code to send it as an email. There are samples of both online all over the place.
Where are you stuck?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Man, RyanDev, it is beginning to sound like you just sit on my posts so you can tell me how easy it is and where to go get it.
I know how to google.
But my question is NOT strictly about how to save data and send email.
If you really wanted to help, you would have read my post completely.
What I would like to do is save the user's data and AT SAME TIME send the data a user just entered as A .PDF ATTACHMENT.
They are not asking to click to save the records and then click to send the records just inserted as an attachment.
They want it done in ONE click.
|
|
|
|
|
samflex wrote: They want it done in ONE click. I understood that from the beginning. Why is this hard for you. In one click, save the data to the database and then send the email. We all do this all the time. It is pretty standard. We won't write the code for you so you have to explain where you are stuck.
Just saying, "I want to..." does not mean anything. So, if you know how to google, do it then. It is like you call your mechanic on the phone and say, "I want to drive my car to the store." What in the world do you think the mechanic will say?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Please do me a favor Ryan.
Next time you see a post from me please avoid commenting on.
How can you say, "we wont write the code for you?
How many lines of code I did I post?
Besides, I asked for ideas.
I have never seen you suggest a solution since I have been coming here.
There are just annoying so called experts like you who feels big by making people feel little.
Even your simple-minded suggestion of saving data and emailing it once again suggests you have no clue what issues I am having.
I know how to save data and email the contents. I am not sure you know what it means to convert user's contents into pdf and email them as attachments.
|
|
|
|
|
samflex wrote: you have no clue what issues I am having. I agree.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Ryandev is great at help if your question is very specific.
It may sound easy to do, but after time when the customer complains, you'll find yourself refining your code more and more to be 100% error free.
I'd start with writing several classes that is ...
- dedicated to updating the database
- dedicated to generating the PDF
- dedicated to sending emails
and then join the 3 together in your click function.
Then you can smooth out the process by making #2 & #3 async, sort of multitask in the background and quickly give the page back to the user while the email sends off.
I was going to post some code for you but my stuff is so customized now, it would be hard for you to follow. You won't be able to paste and go, but just look at it and wonder how it works.
I don't have anything generic anymore, that was years ago.
This is my send engine that I wrote. Years of evolution involved here for me.
Imports System.Net.Mail
Imports System.Threading.Tasks
Imports CO_Standard.Models
Imports System.Net
Imports System.Net.Security
Imports System.Configuration
Public Class sendEngineAsync
Public Shared Function Create_SMTPClient(ByVal smtpC As hx5.common.structure_smtp_connector) As SmtpClient
Dim smtpClient As New SmtpClient()
smtpClient.UseDefaultCredentials = False
smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network
Select Case smtpClient.Port
Case 587
smtpClient.EnableSsl = False
Case 443
smtpClient.EnableSsl = True
Case 25
smtpClient.EnableSsl = False
Case Else
smtpClient.EnableSsl = False
End Select
Dim smtpCredentials = New Net.NetworkCredential
smtpCredentials.UserName = smtpC.Credentials_LoginID
smtpCredentials.Password = smtpC.Credentials_Password
smtpClient.Credentials = smtpCredentials
smtpClient.Host = smtpC.Connector_ServerAddress
smtpClient.Port = smtpC.Connector_SMTP_PortNum
smtpClient.Timeout = 250000
Return smtpClient
End Function
Public Shared Async Function SendEmailAsync( _
ByVal smtpClient As SmtpClient,
ByVal message As MailMessage,
ByVal retryCount As Integer) As Task(Of SendEmailCompletedEventArgs)
Dim currentTry As Integer = 0
While currentTry < retryCount
Try
Await smtpClient.SendMailAsync(message)
Return New SendEmailCompletedEventArgs(Nothing, False, Nothing, currentTry)
Catch ex As Exception
currentTry += 1
If currentTry >= retryCount Then
Return New SendEmailCompletedEventArgs(ex, True, Nothing, currentTry)
End If
End Try
End While
Return New SendEmailCompletedEventArgs(Nothing, True, Nothing, currentTry)
End Function
This is sort of how you use the sendengine
Dim mailMessage As New MailMessage()
mailMessage.From = New MailAddress(smtpC.Options_WebsiteName & " < " & smtpC.Options_SentFrom & " >")
mailMessage.ReplyToList.Add(New MailAddress(smtpC.Options_ReplyTo))
mailMessage.To.Add(New MailAddress(names.firstName & " " & names.lastName & "<" & p.Email_Destination & ">"))
mailMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure
mailMessage.IsBodyHtml = True
mailMessage.BodyEncoding = System.Text.Encoding.UTF8
mailMessage.Priority = MailPriority.High
mailMessage.Subject = m_Subject & " - " & DateTime.Now.ToLongTimeString()
mailMessage.SubjectEncoding = System.Text.Encoding.UTF8
Using SmtpClient As SmtpClient = sendEngine.Create_SMTPClient(smtpC)
Dim result As SendEmailCompletedEventArgs = sendEngine.SendEmail(SmtpClient, mailMessage, p.retryCount)
sendEngineAsync.ProcessSendResult(model, result, pValue)
End Using
smtpC is a model that stores credentials for sending the email message, you would have to make your own model.
|
|
|
|
|
Thank you
I am actually working on a new assumption I made a few minutes after my initial post.
1, code the button_Click sub - this inserts records into the db
2, code getRecords sub - this grabs all the records just inserted by user
3, code the email sub - this includes the bit that converts contents to pdf
Now, if I call the email sub on both the getRecords sub and insertRecords sub, I think everything fires on one click.
I will let you know if this works.
About this Ryan guy, you understood what I was asking for, didn't you?
Your suggested approach suggests that my question is specific enough for you to understand it and provide whatever you could.
What is so complicated about asking how to save records to the db and generate and send a pdf attachment via email?
Understand that he does this every single time I post a question here.
Then someone else, just like you provides a perfect solution based on same "non specific" question I ask.
If he can stay away from my posts, I will appreciate it.
|
|
|
|
|
samflex wrote: What is so complicated about asking how to save records to the db and generate and send a pdf attachment via email?
I was a beginner like you years ago and I got lots of help from the crew here at Code Project. I'll be honest, answering questions like yours is hard because I have no clue what version of .net your using and the level of detail your looking for because I have no history of your work, gained from looking at your code examples.
As far as your thoughts go on 1,2,3 I find it not efficient.
I use MVC and lots of models which are classes. Once you populate a class to hold your data, you just use that class over and over. In other words,
- you send the class to a function to write the data,
- then send the class to a function to generate your pdf,
- then send the class to a function to send the email.
Writing the data and reading it back is a waste of time, and can result in a long wait for the database server to finish. Writes take longer than reads.
Now you can get real fancy and efficient here with .Net 4.5+
You can say or think,
Task, Async
while the database write occurs, I will task creating the PDF,
I will wait for 1 and 2 to complete and send the email in the background and return control to the user.
|
|
|
|
|
My gripe is not with you at all.
I don't mind constructive criticisms at all.
I have made several posts here, some asp.net and some JavaScript.
Each time that guy gets involved, he never offers any sort constructive criticisms at least with me any way.
He always tells you how easy it is and where to go get it.
Then he turns around and says I don't understand what you are asking.
Again, you don't need to make someone look small just because it helps you look and feel big.
someone has to start somewhere.
|
|
|
|
|
I'm sure he's aware now.
Guess overall, perhaps it's the way you crafted your question. it did sort of sounded like you wanted code written. But I read through that and realized you needed interpretation and design.
I was in the same boat as well, started using this site back in 2011 pretty heavy, asked lots of questions for years, and then took the time to help others as a way to pay for the help given to me. But I learned how to better craft my questions, and if I need code written I just ask flat out.
Now I spend more time on Focus Fanatics because I'm in the process of restoring my car and will add a turbo to it next year, parts built from scratch using 3D CAD and casting from 3D printer output after creating a negative of the printed part.
Even on a car forum, you get the same thing, "Oh that's easy and a you tube link"; but others offer tech info you would of never thought of.
|
|
|
|
|
That's very nice of you giving back.
Back in the day, I was very awesome with classic asp.
But I started perhaps as an aweful newbie and it took folks like you to help a newbie.
Then I started giving back too at experts-exchange. It feels better to give than to ask.
In any case, I was not asking for interpretation.
I have found the transition from classic asp to asp.net a bit harder than I had envisioned but it gets better every day.
The code I posted worked pretty good if you just wanted to enter stuff in markup and email as pdf attachment.
The only area I needed help on was to extend it so I can save user's entry in the db and at same time grab it, convert to pdf and email it, all on the fly.
I have figured it out.
It may not be the best approach but it works and I am fine with the design.
So, as I have it now, I use stored procedure to insert records into the db and while the record is being inserted, grab the data as they are being entered by the user, convert them to pdf and email.
Thanks for everything.
|
|
|
|
|
There is such a condition:
To download the content of Outbox from the server of EIS demonstrator films sends a request to the address on the Internet: https://ekinobilet.ru/ekbs/upload.aspx via HTTPS Protocol, method: POST, MIME-type: multipart/form-data in accordance with RFC1867 (http://www.ietf.org/rfc/rfc1867.txt). The request must contain three parameters:
1) login (string username);
2) password (string PASSWORD);
3) get (list | all | <file_name>,<file_name>,...).
Quite a lot of time I suffer over this task, after having tried different options without success. It is necessary that when you open the page, the controller has made a request to the web service and displays the list in the View. I will be very grateful for the help of the community.
|
|
|
|
|
|