|
kiranreddy wrote: i have made a small windows application with (loginpage and some functionality) ASP.NET2.0 and sqlserver 2000
Windows Application using ASP.NET ?
kiranreddy wrote: now i want this project to be run in different system
I guess you have to developed a web site and want to deploy on IIS ? Am I correct ?
|
|
|
|
|
actually i want to make that as a setup file
and install it in other system
|
|
|
|
|
The point is, you said it's a windows app. Is it, or is it an ASP.NET app ? Why do you need an installer ? Have you written a website that a lot of people will deploy to different servers ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
kiranreddy wrote: i want to make that as a setup file
Which Setup file? Is its a Windows Application or Web Application ? Are you looking for ASP.NET Web Setup Project ?
|
|
|
|
|
|
Then what the hell are you doing in the ASP.NET forum ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Are you asking for a windows application with a WebBrowser control in it?
this is weird. If it is so, then also this is not the correct place for you. This is an ASP.NET Forum
|
|
|
|
|
Hi to all,
How to convert bytes to file???
Thanks,
krishna.
|
|
|
|
|
Try
public bool writeByteArrayToFile(byte[] buff, string fileName)
{
bool response = false;
try
{
FileStream fs = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(buff);
bw.Close();
response = true;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return response;
}
|
|
|
|
|
thanks Aman Bhullar
|
|
|
|
|
hi sir,
i want to know the keypress event in web application with the language c# for a textbox.textbox should have only integer value.send me javascript also if there is any use of javascript.
|
|
|
|
|
You can write onkeypress event in javascript.And in that you have to check keycodes of numbers.
Life Is Beautifull
|
|
|
|
|
sir i want that code please
|
|
|
|
|
write this code in page load
txt.Attributes.Add("onkeypress", "javascript:return DecimalLength(Event)");
and in page source:-
function DecimalLength(e)
{
var KeyChar = (e.which) ? e.which : e.keyCode;
if(KeyChar > 57 && KeyChar < 48)
{
if(window.event)
e.returnValue = false;
else
e.preventDefault();
}
}
//Check keycode for numbers.
Hope this will help you...........
Life Is Beautiful
|
|
|
|
|
ais07 wrote: if(KeyChar > 57 && KeyChar < 48)
hmm...... So, if the number is greater than 57 and AT THE SAME TIME is less than 48......
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Silly mistakes....
|
|
|
|
|
Yeah, it's not a big deal, except that the OP is obviously clueless, and would be unable to debug this code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Sir,
This code which I had suggested is only for reference not to copy as it is.
Life Is Beautiful
|
|
|
|
|
Yeah, well, the guy asking you is as dumb as a post, he's going to copy and paste it, and have no idea how to fix it. I know you were just showing the concept, and I've made dumber mistakes, I am not taking a shot at you. I just could see problems brewing because the OP is too dumb to know what this code does, he sure as hell can't debug it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
sir it's not working.can we do this from code behind.
|
|
|
|
|
vikas shukla wrote: sir it's not working
No, for the reason I stated. A number can't be > 57 AND less than 48 at the same time.
vikas shukla wrote: can we do this from code behind.
I'm sorry, but you may well be too dumb to do this at all. Do you REALLY want your page to reload itself every time someone presses a key ? Thankfully Microsoft realises how retarded that would be, so they don't offer support for it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
vikas shukla wrote: i want to know the keypress event in web application with the language c# for a textbox.textbox should have only integer value.send me javascript also if there is any use of javascript.
What's clear here, is that you are absolutely lost, and completely clueless about what you're doing. If you knew anything about ASP.NET, you'd know what use javascript is, and why no C# code will exist for a keypress event. I suggest you buy a basic book and work through it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
you mean it will postback to the server on each keypress??
|
|
|
|
|
He has absolutely no idea about web development, obviously.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
yes. I agree. Should read basic books on ASP.NET
|
|
|
|