|
You really understand the system.
|
|
|
|
|
|
There isn't enough information here for anyone to help.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi.
I have an application consists of 2 textboxes, 2 buttons, a modalpopup extender.
Button1 and Textbox1 is in a modalpopupextender that is shown when a button is click (not shown here)
I added an OnKeyPress event on my textbox (Textbox1) on Page Load that will execute a javascript on client side code which calls a button (Button1) click event.]
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.TextBox1.Attributes.Add("onKeyPress", "doClick('" + Button1.ClientID + "',event)");
}
}
This is the Javascript codes, this will call and execute the click event of Button1
function doClick(buttonName, e) {
var key;
if (window.event)
key = window.event.keyCode;
else
key = e.which;
if (key == 13) {
var btn = document.getElementById(buttonName);
if (btn != null) {
btn.click();
event.keyCode = 0
}
}
};
This is the Button1 Click event
protected void Button1_Click(object sender, EventArgs e)
{
if (Textbox1.Text.ToString() == "ITDevt")
{
Button2.Visible = true;
Textbox2.Visible = false;
Button2.Visible=true;
Button1.Visible=false;
popup.Show();
}
else
{
popup.Hide();
Textbox1.Text = "";
}
}
Assume that the modalpopupextender is shown, so I entered a text in Textbox1 and presses Enter key on keyboard (so the OnKeyPress event is rendered).
When I trace the Button1_Click event, the code block runs. But the popup (modalpopupextender) hides.
Can you help me show again the modalpopupextender and hide Button1 and Textbox1 then show Button2 and Textbox2?
|
|
|
|
|
Ask this in the ASP.NET forum. What you're asking has nothing to do with C#.
|
|
|
|
|
I noticed in one of my professor's MVC Java programming projects he put a Controller class inside a model package.
Is it true that in MVC often people use just MV and don't bother with the C because they don't think it's worth creating another layer just for a couple of extra classes?
It seemed illogical to me to put a controller inside a model package.
|
|
|
|
|
CsTreval wrote: Java
What has this got to do with C#?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
My mistake. I thought I was on the 'General Questions' forum.
|
|
|
|
|
CsTreval wrote: Is it true that in MVC often people use just MV Maybe yes, maybe no; but this is not the place for such a question.
|
|
|
|
|
Greetings
I'm using InstallShield for deploying projects and I'm new in using it
I need to know how to include some applications and executable files to be installed while installing my application what I mean is that I need to include for example the .NET framework 4.0 so if it does not exist at the client it is installed during the installion of my application as well as the SQL Server Express edition.
Finally as the big picture of what I want to do is like making a setup project that is when installed it installs with it other applications needed by my application like .NET Framework and SQL Server for the database as well as attaching the database to the SQL Server instance. So when the client starts to setup my application when finished it uses the application without the need to setup other application or attaching the database to the SQL Server
|
|
|
|
|
You should not include SQL Server in your installation. There are a couple of reasons:
0) You can only distribute SQL Server Express for copyright reasons - not SQL Server full version.
1) They may already have SQL Server installed on the network. If so, then they will presumably want to use that version.
2) If they do have SQL server installed and you start proliferating SQL server Express instances, you are going to annoy the heck out of the database administrator...
3) A single site installation of SQl Server is a lot more likely to be backed up than a number of scattered version under user control.
4) Sql server is quite complex for a "normal" user to install and administer - it is not a good idea!
5) It will destroy the primary advantage of using Sql Server over SqlCE or SQLite - multiuser access. If everyone installs their own copy of SQL server, then you will have multiple copies of your database, each used by a single person. This will cause some confusion, and (depending on how you wrote the original database) may take some considerable effort to combine into a single instance when the problem is realized.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
What is the client does not have a SQL Server on his machine and the application require the database so he will have to install a SQL Server on his machine then he will have to attach the database himself. I need to make a single setup file as the software you buy e.g Microsoft Dynamics you do not have to install a separate SQL Server and to attach the database yourself. However, you give me a hint to query if there is an instance of SQL Server on the client machine if there is no instance I need only to setup the express edition to make the program running
|
|
|
|
|
SQL Server is a complicated beastie, and it really isn't that simple to install and administer: it's very easy to get it wrong and c**k the whole thing up. And most users aren't aware of it's existence in their LAN environment.
So ask yourself this: "Do I need SQL Server?"
Or would you be better off using a single user database which requires no installation, administration or maintenance? Because if you aren't using the multi-user facilities of SQL Server, then you are using a sledgehammer to crack a nut.
And if you do, then you need to ensure that someone competent installs and maintains it because otherwise you are going to give your users horrible problems down the line...
Seriously: don't install it for them.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
<pre>
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Applica
{
class Program
{
static void Main(string[] args)
{
DirectoryInfo da = new DirectoryInfo("C:\\Folder1");
FileInfo[] Arr = da.GetFiles();
FileInfo ap = Arr[Arr.Length - 1];
long Totbyte = ap.Length;
string filePath = ap.FullName;
Console.WriteLine("Total Bytes = {0} bytes", Totbyte);
string temPath = Path.GetTempFileName();
string temPath2 = Path.GetTempFileName();
const int BufferSize = 1024;
byte[] buffer = new byte[BufferSize];
using (BufferedStream input = new BufferedStream(File.OpenRead(temPath)))
{
int bytesRead;
using (BufferedStream output = new BufferedStream(File.OpenWrite(temPath2)))
{
while ((bytesRead = input.Read(buffer, 0, BufferSize)) > 0)
{
decimal[] arry = new decimal[Totbyte];
for (int count = 0; count < buffer.Length; count++)
{
arry[count] = buffer[count];
Console.WriteLine("{0}={1}",arry[count],buffer[count]);
}
byte[] data2 = new byte[Totbyte];
for (int count = 0; count < arry.Length; count++)
{
data2[count] = (byte)arry[count];
Console.WriteLine("{0}={1}",data2[count],arry[count]);
}
string filePath2 = Path.Combine("C:\\check", Path.GetFileName(filePath));
output.Write(buffer, 0, bytesRead);
}
}
}
}
}
}
|
|
|
|
|
Do you have a question to ask?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
|
As a school teacher you probably know what manner is, or you not as has noting of it?
You see, 'does no work' is a very poor declaration. It does work and do exactly what you told to do. To describe a problem you should tell us the input, the expected output and the real output.
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Hey guys, thanks you very much. I will try to find someone on Craigslist who can do this for a small fee. Again, thank you very much.
|
|
|
|
|
Just before you go, please tell us, what do you teach? Are you the box trainer?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
To be quite honest I don't know what a box trainer is. I can only imagine that you are making a rude comments which is ok. I teach 12 year old children at a Public School 219 in Brooklyn . We are currently short staff, so everyone does a little of every thing to make our education system work. I was train as a social studies teacher, but I have been teaching everything but social studies. Thank you and have a great day.
|
|
|
|
|
And?
They are "your students" - so you should in theory know more than them.
And let's be honest here: reading data and converting it to a table of numbers is a trivial task in any modern language.
"THE VISUAL PRESENTATION DOES NOT WORK" Yes, it does: it does exactly what you tell it to. All you have to do is work out what you want it to do, and tell it to do it...
Which is, as I said, trivial. So what part of it is giving you a problem?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Hey guys, thanks you very much. I will try to find someone on Craigslist who can do this for a small fee. Again, thank you very much.
|
|
|
|
|
Is the education system in the USA really so rubbish that they let teachers who know nothing about complicated technical subjects teach it to people who probably know more about how to use the technology than the teachers?
If so, then I'd fear for the future of your country, because that is like getting someone who can't drive to teach airline pilots to fly...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OriginalGriff wrote: education system in the USA really so rubbish
Nope. I r a produck of da puplick edukashun sistum and I terned out just fine.
I would suspect that there is much more to this story than meets the eye.
|
|
|
|