|
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
|
|
|
|
|
I purchased a book (ASP.NET 3.5: Social Networking) which contains some sample code I'm having some trouble with. The code includes an inherited class called "IConfiguration", however visual studio is giving me an error which reads:
"The type or namespace name 'IConfiguration' could not be found."
Here's my code:
using System
using System.Configuration;
using StructureMap;
public class Configuration : IConfiguration
{
}
----------------------------------------------
My only guess is this "IConfiguration" is something I may need to somehow add to a new 3rd party application called "StructureMap", but I'm unsure of how, if this is in fact that case.
Anyone know what I should do for this?
Thanks.
|
|
|
|
|
Open the StructureMap namespace in Object browser and see if it is defined or not.
|
|
|
|
|
Hi Abhishek. No, I opened the StructureMap file but it's not defined within there. Do you know how I would go about doing that (I'm new to StructureMap)?
Thanks again.
|
|
|
|