 |
|
 |
<%--<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<script type="text/javascript">
function show_hide(tblid, show) {
if (tbl = document.getElementById(tblid)) {
if (null == show) show = tbl.style.display == 'none';
tbl.style.display = (show ? '' : 'none');
link.InnerText = "Update Entry";
if (show) {
//document.getElementById("Open").innerText = '[ + ]';
document.getElementsByName("Close").text = '[ - ]';
alert('open')
}
else {
//document.getElementById("Open").innerText = '[ + ]';
document.getElementById("Close").value = '[ + ]';
alert('close')
}
}
}
</script>
<body>
<form id="form1" runat="server">
[ + ]
|
sample data
|
sample data
|
sample data
|
sample data
|
sample data
|
|
</form>
</body>
</html>
--%>
|
|
|
|
 |
|
 |
No formatting, no text, no question, and without a doubt: wrong forum.
|
|
|
|
 |
|
 |
Judging by this and the other posts he thinks this is helping.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
 |
|
 |
Richard MacCutchan wrote: he thinks this is helping
That would be a long stretch.
|
|
|
|
 |
|
 |
You are obviously lost, please read the guidelines[^] and, more importantly, follow them.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
 |
|
 |
Are you really this stupid, or have you taken a course? Stop posting your crap here and learn to use a source repository instead.
|
|
|
|
 |
|
 |
Wrong forum. Try here[^]
Signature construction in progress. Sorry for the inconvenience.
|
|
|
|
 |
|
 |
<script type="text/javascript">
function show_hide(tblid, show) {
if (tbl = document.getElementById(tblid)) {
if (null == show) show = tbl.style.display == 'none';
tbl.style.display = (show ? '' : 'none');
if (show) {
//document.getElementById("Open").innerText = '[ + ]';
document.getElementById("Close").innerText = '[ - ]';
}
else {
//document.getElementById("Open").innerText = '[ + ]';
document.getElementById("Close").innerText = '[ + ]';
}
}
}
</script>
|
|
|
|
 |
|
 |
No formatting, no text, no question, and without a doubt: wrong forum.
|
|
|
|
 |
|
 |
This forum does seem to be a dumping ground.
|
|
|
|
 |
|
 |
It has been so from day one. This forum has the disadvantage of being the first in the list (left pane), having an innocuous forum name, and not having any help text at the top.
|
|
|
|
 |
|
 |
Wrong forum. Try here[^]
Signature construction in progress. Sorry for the inconvenience.
|
|
|
|
 |
|
 |
Hi We try to connect the Oracle 10g application server with .NET 3.5 framework @ win 7home basic i7 64bit processor and failed in connection .But it is connection if i install the same OS as 32 bit processor.Is there any chance to make it work with 64 bit OS?
|
|
|
|
 |
|
 |
I'm sorry, but you have chosen the wrong forum for this. This forum is for .NET 4.5 and Visual Studio 11.
|
|
|
|
 |
|
|
 |
|
 |
Imports System.IO
Imports System.Data.SqlClient
Module clsErrorLog
Private FILE_NAME As String = DateTime.Now.ToString("dd-MM-yyyy") & ".txt"
Private FULL_PATH As String
Sub LogMsg(ByVal MessageType As String, ByVal LogName As String, ByVal FormName As String, ByVal EventName As String, ByVal msg As String)
Select Case (LogName.ToUpper())
Case "EVENTLOG"
WriteLogMsg(MessageType, Dynamic_Path.EventLogPath & "\EventLog", FormName, EventName, msg)
Case "EXCEPTIONLOG"
WriteLogMsg(MessageType, Dynamic_Path.ExceptionLogPath & "\ExceptionLog", FormName, EventName, msg)
End Select
End Sub
Sub WriteLogMsg(ByVal MessageType As String, ByVal Path As String, ByVal FormName As String, ByVal EventName As String, ByVal msg As String)
'FULL_PATH = Path & "\" & MessageType & FILE_NAME
FULL_PATH = Path & "\" & FILE_NAME
If Not Directory.Exists(Path) Then
Directory.CreateDirectory(Path)
End If
Dim fi As FileInfo = New FileInfo(FULL_PATH)
Dim sw As StreamWriter
If fi.Exists = False Then
sw = fi.CreateText()
Else
sw = fi.AppendText()
End If
sw.WriteLine(DateTime.Now & " - " & FormName & " - " & EventName & " - " & msg)
sw.Flush()
sw.Close()
End Sub
'Function ReadLogMsg(ByVal MessageType As String) As String
' Dim strErrorLogData As String
' Dim oFile As System.IO.File
' Dim oRead As System.IO.StreamReader
' oRead = File.OpenText(Application.StartupPath & "\ErrorLog\" & MessageType & FILE_NAME)
' strErrorLogData = oRead.ReadToEnd()
' Return strErrorLogData
'End Function
'Sub DatabaseMsg(ByVal ErrorLogId As Int32, ByVal MessageType As String, ByVal LogName As String, ByVal FileName As String, ByVal Msg As String, ByVal IsMailed As Boolean)
Sub DatabaseMsg(ByVal strQuery As String)
Try
Dim sqlConn As New SqlConnection
Dim sqlCmd As New SqlCommand
Dim sqlDA As New SqlDataAdapter
sqlConn = ModConnectonProperties.sqlConnect()
sqlConn.Close()
sqlConn.Open()
sqlCmd.Connection = sqlConn
sqlCmd.CommandType = CommandType.Text
sqlCmd.CommandText = strQuery
sqlCmd.Parameters.Clear()
sqlCmd.ExecuteNonQuery()
Catch ex As Exception
clsErrorLog.LogMsg("Module", "ExceptionLog", "clsErrorLog.vb", System.Reflection.MethodBase.GetCurrentMethod.Name, ex.Message)
End Try
End Sub
End Module
clsErrorLog.LogMsg("Email", "EventLog", Me.Name & ".vb", System.Reflection.MethodBase.GetCurrentMethod.Name, "Sent Mail Function - Start.")
clsErrorLog.LogMsg("Email", "ExceptionLog", Me.Name & ".vb", System.Reflection.MethodBase.GetCurrentMethod.Name, ex.Message)
clsErrorLog.LogMsg("Email", "EventLog", Me.Name & ".vb", System.Reflection.MethodBase.GetCurrentMethod.Name, "Sent Mail Function - End.")
|
|
|
|
 |
|
 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualBasic;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Data.SqlClient;
namespace EMS.Logs
{
public class clsErrorLog
{
Dynamic_Path1 objDP = new Dynamic_Path1();
private string FILE_NAME = DateTime.Now.ToString("dd-MM-yyyy") + ".txt";
private string FULL_PATH;
public void LogMsg(string MessageType, string LogName, string FormName, string EventName, string msg)
{
switch ((LogName.ToUpper()))
{
case "EVENTLOG":
WriteLogMsg(MessageType, objDP._EventLogPath + "\\EventLog", FormName, EventName, msg);
break;
case "EXCEPTIONLOG":
WriteLogMsg(MessageType, objDP._ExceptionLogPath + "\\ExceptionLog", FormName, EventName, msg);
break;
}
}
public void WriteLogMsg(string MessageType, string Path, string FormName, string EventName, string msg)
{
//FULL_PATH = Path & "\" & MessageType & FILE_NAME
FULL_PATH = Path + "\\" + FILE_NAME;
if (!Directory.Exists(Path))
{
Directory.CreateDirectory(Path);
}
FileInfo fi = new FileInfo(FULL_PATH);
StreamWriter sw = default(StreamWriter);
if (fi.Exists == false)
{
sw = fi.CreateText();
}
else
{
sw = fi.AppendText();
}
sw.WriteLine(DateTime.Now + " - " + FormName + " - " + EventName + " - " + msg);
sw.Flush();
sw.Close();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualBasic;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using EMS.Module;
namespace EMS.Logs
{
public class Dynamic_Path1
{
IniFile ObjDynamic_Path = new IniFile(Application.StartupPath + "\\Settings\\Dynamic_Path.ini");
public string CSVFeedBackPath;
public string PAPFeedBackPath;
public string EventLogPath;
public string ExceptionLogPath;
public Dynamic_Path1()
{
CSVFeedBackPath=ObjDynamic_Path.GetString("DYNAMIC_PATH", "CSV_FEEDBACK", "");
PAPFeedBackPath = ObjDynamic_Path.GetString("DYNAMIC_PATH", "PAP_FEEDBACK", "");
EventLogPath = ObjDynamic_Path.GetString("DYNAMIC_PATH", "EVENTLOG_PATH", "");
ExceptionLogPath = ObjDynamic_Path.GetString("DYNAMIC_PATH", "EXCEPTIONLOG_PATH", "");
}
public string _CSVFeedBackPath
{
get { return CSVFeedBackPath; }
set { CSVFeedBackPath = value; }
}
public string _PAPFeedBackPath
{
get { return PAPFeedBackPath; }
set { PAPFeedBackPath = value; }
}
public string _EventLogPath
{
get { return EventLogPath; }
set { EventLogPath = value; }
}
public string _ExceptionLogPath
{
get { return ExceptionLogPath; }
set { ExceptionLogPath = value; }
}
}
}
|
|
|
|
 |
|
 |
What is all this supposed to mean? Do you have a question?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
 |
|
 |
Hi all,
At my company we are using excel to register our working hours. I created a very intelligent xls file but because some people use open office i had to remove a lot of it. Now that means that the HR person needs to do a lot of work entering the data from the basic excel sheet to my intelligent work sheet so the calculations are done for her.
For the moment i am trying to create an Excel Add-in using vb.net to do this.
The purpose of the add-in is to import the data from the basic to the intelligent sheet. but i seem to have run in to a problem:
How can i write data into the current XLS file. normally you open the file using code but because it is an excel add-in the file is already open in excel. So how can i use the current open file
any help is welcome.
Cornille Michiel
|
|
|
|
 |
|
 |
Hi, this is not the correct forum for this question. You will probably get a better response asking your question here[^].
|
|
|
|
 |
|
 |
Hi all,
any one can tell me how to create a temporary table in MySql.
shanmugapriya
|
|
|
|
 |
|
 |
I'm sorry, but you have picked the wrong forum for this question. As your question is dealing with a database, you should really ask it in this[^] forum.
|
|
|
|
 |
|
|
 |
|
 |
The reason for using the correct forums is that the question may be asked by other users in the future. Now, suppose that they are looking for the answer here in Code Project, do you think it likely that they would look in this forum, or in the database forum instead? This is part of the reason for the forums - to help other users, so no I won't offer help in this forum - I'm thinking of more than just this poster.
|
|
|
|
 |
|
 |
Would you go to a coffee shop and ask for a whisky?
|
|
|
|
 |