|
Have you tried the obvious?
txtLog.value = txtLog.value & vbCrLf & "Output: Line2"
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I guess I should have tried that but I wasn't sure how the textarea control worked. When I use the line below, the output is as expected.
txtLog.value = "Input has been determined to be valid - continuing" & vbCrLf & "Output: Line2"
I guess that means you need to concatenate any additional lines that you would like to appear in the textarea.
Thank you sir!
|
|
|
|
|
I have an application built in VB6. Want to move it to the web.
The app will be interactive, allowing user to store data.
The database update is being built using VB.NET and Firebird SQL.
My skills: VB6, VB.NET learning PHP, HTML, CSS3
20+ years of programming
What would be the best solution to get a web interface built with my skills?
|
|
|
|
|
|
If you have VB and VB.NET experience then the simple answer would be to build a web application using ASP.NET. The next question would be on whether you should build it using web forms or MVC. For simple applications then web forms is ideal. For more complex applications then you could consider MVC.
It really depends on what the needs of the application are, and finding the right balance between those and your skill set.
|
|
|
|
|
Well, if you already know VB.NET
Then you can use it for your web development.
Of course, this implies that you have access to Windows Server that is able to run IIS.
Using VB.NET + ASP.NET to create a website, is I think the shortest way for you to have a working website
Otherwise, as you said that you are learning PHP...maybe you could use this language to build your website. The interest, is that finding inexpensive hosting opportunities running PHP is easier than for IIS/.NET.
|
|
|
|
|
I had developed a dot net website in c#.I want to embed a video in my website,which should be compatible in all browsers without using html5.I had tried but the video is playing or compatible on IE only.What should i do.please provide some suggestions or code.I will be grateful to you.
|
|
|
|
|
Hi,
I am getting the above error. I am calling the function search_slideshow(). My home page is like this:
<?php include 'search_slideshow.php'; ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php
$findme = 'jassim'; echo $findme;
search_slideshare($findme)
?>
</body>
</html>
and my function is in search_slideshow.php like this:
function search_slideshare($query)
{
....... code here
}
can anyone help please
Technology News @ www.JassimRahma.com
|
|
|
|
|
|
Hi,
I am trying to use the following in my page but getting the above error:
<?php foreach ($result->data as $post) { ?>
<a href="<?php echo $post->images->standard_resolution->url ?>" data-fancybox-group="gallery" title="<?php echo $post->caption->text ?>"><img src="<?php echo $post->images->thumbnail->url ?>" alt="<?php echo $post->caption->text ?>" /></a>
<?php } ?>
Technology News @ www.JassimRahma.com
|
|
|
|
|
In any type of foreach loop you pass in a list of items you wish to iterate over.
Check what the types are that you are passing into your foreach loop. What are $result and $data? Check that they are of the correct types.
|
|
|
|
|
Check the content of
$result->data by using
var_dump($result->data);
You will see the content of your object.
However if it is a big object it can be messy
You can also use this piece of code given in the comment section of the Traversable interface:
http://php.net/manual/en/class.traversable.php#99195[^]
|
|
|
|
|
I have developed MVC3 website and deployed it on IIS7 server.
When I test the site just by running it from my solution, the layouts works fine with IE8 and firefox browsers. But once I give the URL which is taken from the server, my design layout is not getting applied to IE8 browser but works fine with firefox.
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" />
" type="text/javascript">
" type="text/javascript">
" type="text/javascript">
" type="text/javascript">
script tags workes fine but the Link tags are not recognized properly in IE8
Please help me to sort this out
Thank you very much
|
|
|
|
|
Hi,
I've installed VS 2013 Professional Edition and created a project as shown below
1. File->New Project
2. Templates->Visual C#->Web->Visual Studio 2012
3. Selected ASP.Net MVC4 Web Application and clicked on OK button
A new project got created. I haven't done any code changes. Run the application using internet Explorer. Its working fine and when I clicked on Login link,
below exception was thrown. Please let me know if I missed anything.
Exception:
<big>An exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll but was not handled in user code<br />
</big><br />
Exception occurred in Filters->InitializeSimpleMembershipAttribute.cs
method: OnActionExecuting
Line: LazyInitializer.EnsureInitialized(ref _initializer, ref _isInitialized, ref _initializerLock);
Thanks in advance.
modified 9-Oct-14 4:09am.
|
|
|
|
|
It probably means that you have not added the required implementation code for some method that will be called by the framework. Check the MVC documentation, and also look at the place where the exception occurred.
|
|
|
|
|
I haven't done any code changes. I just want to go through the built-in functionality which is ready to use.
Exception occurred in Filters->InitializeSimpleMembershipAttribute.cs
method: OnActionExecuting
Line: LazyInitializer.EnsureInitialized(ref _initializer, ref _isInitialized, ref _initializerLock);
|
|
|
|
|
NarVish wrote: I just want to go through the built-in functionality which is ready to use. Well something is obviously missing, hence the exception. You will need to examine the code more closely to identify the problem. Alternatively you can add an exception handler to help you.
|
|
|
|
|
Step through the code and see where the exception is being thrown. You can then view the full details such as the stacktrace and innerexception which should give you sufficient information to resolve your error.
|
|
|
|
|
Hi all, if I want to dynamically grab the markup of my page after making changes to the DOM using javascript how would I go about it. I know that there are tools out there for viewing the DOM of a page after it has been modified using javascript but I would like to actually grab the new DOM and save it dynamically using code. Thanks in advance for your help.
|
|
|
|
|
You can use outerHTML[^] and innerHTML[^] to get the HTML code for a DOM element and its descendants.
I'm not sure what you mean by "save it dynamically" though - post it back to the server?
|
|
|
|
|
On Windows Server 2008 R2 when the MSSOAPINIT method of the SOAP object is used then the error shown below is thrown
-----------------------------------------
Error Number = -2147352567
Error Short Description = WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: Not enough storage is available to process this command.
HRESULT=0x1: Incorrect function.
- WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: The parameter is incorrect.
- Client:One of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect.
-----------------------------------------
On further analysis it was found that the web service hosted on the same application can be accessed without any error but if the Web service is on one Web Site in IIS and this Web Service is accessed from another Web Site then the error shown above is thrown. Can anyone please suggest what could be the cause of such issue
modified 16-Oct-14 6:29am.
|
|
|
|
|
Hi everybody,
From past many days I am facing a problem regarding servlet.I am new for SMTP server kind of programs.
My problem is
I developed a page which is called as 'contactus.html' for a website which is dynamic website using java. From contactus page where user enter his details and his comments, those details and comments have to send to a mailid as a mail. I tried with the servlet, but i am facing a problem that if i block my antivirus in my system then only my mail is sending from my website to that particular mailid. If my antivirus is 'on' then mail is not sending instead it is showing SMTP error.
Please give me suggesions to getrid of this problem.
|
|
|
|
|
Hi,
I'm trying to make a list of items responsive.
I havve a container div, wich contains divs with class "itemContainer".
after ever .itemContainer there is a div for clear which I set it to display none;
html :
<div id="itemListPrimary">
<div class="itemContainer">
</div>
<div class="clr"></div>
CSS :
#itemListPrimary {display:block;}
div.itemListPrimary {float:left;}
#itemContainer> .clr {display:none;}
@media (min-width: 960px) {
div.itemListPrimary {width: 33.3% !important;}
}
@media only screen and (min-width: 768px) and (max-width: 960px){ div.itemContainer {width:50% !important;}
}
you can see it here :
www.mykonosexclusivevillas.com/our-villas
there should be 3 items in every row but in the 3rd row it breaks
any suggestions ?
thank you
|
|
|
|
|
Ok, Solved
It had to do with the digerrent height of the itemContainer divs.
I set the height to equal and now it's fine.
thanx
|
|
|
|
|
Hi everyone.
I am well and truly stuck .
I have created a huge list of radio buttons on my razor view. Each row is a different set of radio buttons and I have given them each dynamic names.
I am new to MVC and i did not know how i can pass this radio button list to controller
this is my editor template
@model StudentManagement1.TeacherCourseStudent
@{
ViewBag.Title = "Attendance";
}
<tr>
<td>
@Model.Student_Id
</td>
<td>
@Model.Student.Name
</td>
<td>
@Model.Student.Sur_Name
</td>
<td>
@Model.Student.Semester.Semester_Name
</td>
<td>
@Html.RadioButton(@Model.Student_Id.ToString(), "present", true)
</td>
<td>
@Html.RadioButton(@Model.Student_Id.ToString(), "absent")
</td>
<td>
@Html.RadioButton(@Model.Student_Id.ToString(), "leave")
</td>
and this is my Razor view
@model IEnumerable<StudentManagement1.TeacherCourseStudent>
@{
ViewBag.Title = "MarkAttendance";
Layout = "~/Views/Shared/_TeacherLayout.cshtml";
}
@using (Html.BeginForm("MarkAttendance", "Attendance", FormMethod.Post))
{
<table>
<tr>
<th>
Student Id
</th>
<th>
Name
</th>
<th>
Sur Name
</th>
<th>
Semester
</th>
<th>
Present
</th>
<th>
Absent
</th>
<th>
Leave
</th>
</tbody>
@Html.EditorForModel()
</table>
<br /> <br />
<input type="submit" value="Save attendance" />
}
here my controller to which i want to pass values
[HttpPost]
public ActionResult MarkAttendance(IEnumerable<string> Student_Id)
{
return view();
}
modified 4-Oct-14 6:34am.
|
|
|
|