|
hi
i have multiline textbox in that i want to enter 300 characters and that will be complete in 5 lines. how to handle that one in javascript i wrote that one but i am facing when 5 lines are entered deleted last line i cant entered again that line how to solve this problem i am mentioning that javascript code also please help me......
var iCount;
CheckLimit.iCount=0;
function CheckLimit()
{
var obj;
obj = document.getElementById('<%= txtmessage.ClientID %>');
if(obj.value == '')
{
CheckLimit.iCount = 0;
return true;
}
else
{
if (event.keyCode == 13)
{
CheckLimit.iCount = ++CheckLimit.iCount;
if(CheckLimit.iCount >=6)
{
return false;
}
}
}
if (event.keyCode != 8 && event.keyCode != 9 &&
event.keyCode !=37 && event.keyCode !=38 && event.keyCode !=39 && event.keyCode !=40 &&
event.keyCode !=46)
{
if(obj.value.length >300)
{
return false;
}
}
return true;
}
|
|
|
|
|
guptha19sept wrote: in javascript
This is the C# forum.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello,
i have an application that connect to sql server.
I am going to create a track database.What i want to ask if i can send to sql a parameter or defining a variable in order to know which user has made a change.
Note : all user access the database with the uname : sa / pass : sa and for this reason i want to separate the sql access by a parameter ...
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
Your application can have a login facility. When you insert/update data from database, keep this login id along with the row modified.
|
|
|
|
|
ellllllllie wrote: can send to sql a parameter or defining a variable in order to know which user has made a change.
Of course you can, its just another parameter.
ellllllllie wrote: all user access the database with the uname : sa / pass
VERY BAD. NEVER, EVER let everyone have sa priviliges. It leaves you wide open to problems. For example as sa ANY user could drop the entire database. Create a generic user by all means, but NEVER give them sa rights. In most big companies this would be a sackable offence!
Bob
Ashfield Consultants Ltd
|
|
|
|
|
ellllllllie wrote: Note : all user access the database with the uname : sa / pass
You really want to get fired from your job, don't you? By giving everyone access to the SQL Server using the SA account, YOU ARE GIVING EVERYONE "GOD" RIGHTS TO THE ENTIRE SQL SERVER! If you knew anything about any kind of Security at all, you'd know that this is a very, very, very, BAD, BAD, BAD (repeat ad nauseum) idea! Your SQL Server, and every database it's hosting will be a smoldering pile of junk in a week.
|
|
|
|
|
hi all,
Is "String Key" and "Tag" properties are different in TreeView?
How to access the "String key" of any nodes?
|
|
|
|
|
"Tag" property is normally used to keep some information about the particular node. I haven't heard about "String Key". Where does this belongs to?
|
|
|
|
|
Hi. I've created a new form and inserted a picturebox. Picturebox has a *.Tiff/*.Tif image in it.
The tif image is a multipage image. So, is it possible to move through pages?
Thanks in advance.
Regards,
Matjaž
|
|
|
|
|
Yes, but you'll need to find a third party library or sample to do it, there's no direct support in C#.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Ok, thats not correct. I just found out that u can use GDI+ in C# and can easily, with less than 10 rows of code, create an multipage tiff viewer.
Thanks anyway.
Regards,
Matjaž
|
|
|
|
|
max00slo wrote: I just found out that u can use GDI+ in C# and can easily, with less than 10 rows of code, create an multipage tiff viewer.
Sounds like it is time for your first article
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Heh... good idea. Any tutorials on how an article should look, or should i just look at some and write something simmilar?
Regards,
Matjaž
|
|
|
|
|
|
|
Really, good for you! But, you should know something about GDI+ TIF format support. GDI+ doesn't support JPEG compressed TIF images. So, if you someday find that suddenly you can't see any images, you'll know why.
Seriously, find a third party library that offers full support of the TIF specification if you're going to work with TIF files.
|
|
|
|
|
Hmm... triend with some Kodak compressed files (the standard) and got some tifs from the net and they've all worked fine. Maybe you've ment fully/highly compressed files. Anyway... works for me - FOR NOW.
Thanks.
Regards,
Matjaž
modified on Wednesday, November 26, 2008 4:05 AM
|
|
|
|
|
hi
we have SQLSERVER database on the server and i want to connect my PDA Emulator with the Database and Fetch some record from sercer. i use Connection string="Data Source=SERVER;Initial Catalog=FleetDB;User ID=sa;Password=sorcim"
but when i open the connection it throw exception ("SqlException")
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
wasimsharp wrote: but when i open the connection it throw exception ("SqlException")
What is the exception message says?
|
|
|
|
|
Message is "SqlException" there is no more Exception information about message
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
Hi,
Can anyone help me out on establishing RTSP(Real Time Streaming Protocol) connections in C#.Net...
Thanks in Advance
smitha
|
|
|
|
|
Here[^] is the RFC for that protocol. I think you need to understand that and create a program which sends messages in the specified format.
Hope this helps.
|
|
|
|
|
hi Smithakrishnan
do u have source code to connect ip camera with rtsp protocol in c#.
need help please.
by vasante
|
|
|
|
|
Dear All,
Currently i am working on shared Assemblies
step 1
I'll open and visual .net ide and ill take one class library project and add some methods into it.
step 2
I'll create one strong name key by using sn -k tool.
step 3
now i add key file into assembly info file
step 4
now i build my application.
step 5
now i installed my dll file using gacutil -i <xyz.dll> tool
step 6.
now i take some client application now i click Add Reference but my xyz.dll is not displaying in .net tab
my dll file should display in .net tab can any one solve this problem pls tell me step by step process.
Thanks
|
|
|
|
|
Why do you need it to be in the GAC ? That just causes problems with testing deployment. Just browse to the file.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|