|
may I suggest you'e got your design wrong?
Showing thousands of items, in any control, is extremely flawed. The more items you are showing the less useful the control will be.
Have a think about what you want to achieve.
Does the user have tyo find an unknown item? If so, a search facility would be of more use.
Is the 1000's reduced by the context of the rest of the form? If so, use the rest of the data to drive the content of the list; combo or otherwise.
If you use any well designed interface, online or offline, you will see it reduces the ability of the user to make mistakes. By giving a huge fat list of every item in your database you are inviting the user to pick the wrong item.
Garbage In = Garbage Out
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|
Use two controls. The first one allows you to select the company, and once selected, populates the next one, which would be for selecting employees.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Dear All,
I'm Using AT commands and C# to send SMS using a GSM Modem.
I want to try to set the "Sender's Name" to be displayed to the receiver instead of displaying the telephone number.
Can this be done by passing some parameters in the AT commands?
|
|
|
|
|
I think that that would be managed by the recipients cell phone to check the number based off entires in the phone book.
|
|
|
|
|
is there any way to control it by the application which sends the msg??
|
|
|
|
|
No*
*It may be possible to spoof the sms sending phone number, which in turn will spoof the name if the phone book record has that number contained. Don't ask me how, I don't know.
|
|
|
|
|
actually i dont want to spoof, i just want to display a name which i hardcode in my application in their inbox. If they use the reply feature it should reply to the actual sender number.
|
|
|
|
|
Again, no. That number would have to be saved in the recipients phone book, you cannot assign a name to it. Sorry.
|
|
|
|
|
Sometimes you can receive an SMS which has a sender's name set, even if it's not in your phone book.
Orange in the UK do this with most of their service info messages
|
|
|
|
|
In the US/ Canada I've never seen this before, ever. And I get a fairly decent amount of spam SMS on my phone, all from +333000 or something similar, never from an actual name, unless it is stored in my phone book.
|
|
|
|
|
Is it just their service messages that do that? If so they could be cheating and build the directory entries into their firmware.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
U say u are using AT commands and C# to send a message. Actually, this is what i want to achieve. Pls can i see an example, or a source code, showing how to achieve this? Pls. quite urgent. He who goes for revenge must first dig two graves.
|
|
|
|
|
pls help me out to come out of this annoying interactive services dialog in vista which popsup when i start my service which invokes an exe
|
|
|
|
|
Coming out off a dialog box, that's a new one.
As to your question:
you can't avoid it the whole idea behind the vista security model is not to run anything without the permission/knowledge off the user.
Why is your service running an exe, this is very bad. A service can run without any user logged in, if that service then calls an exe you'll get all sorts of strange behavior.
If all your service does is run this exe a better choice would be the scheduled tasks, or just put a shortcut on the desktop and let the user start it up.
This will however not avoid the dialog box.
|
|
|
|
|
hi all ,
I am developing advertising Website-Registering Impression,click etc..here problem is whenever user registering Impression that we are loss the 40% impression and here we doing geolocation also.I attached following code also..Plz reply me if u know...Thanks
using System;
using System.Data;
using System.Data.SqlClient;
using dataacesslayer;
using System.Web;
public partial class Admin_getbase : System.Web.UI.Page
{
string Crid = "";
SqlConnection conn = null;
SqlCommand cmdinsert = null;
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
SqlParameter paramvalue;
conn = new SqlConnection("Data Source=dddd;Initial Catalog=new;User ID=fg;Password=hg");
if (Request.QueryString["Crid"] != null)
{
Crid = Request.QueryString["Crid"].ToString();
}
try
{
cmdinsert = new SqlCommand("sd_Basreg", conn);
cmdinsert.CommandType = CommandType.StoredProcedure;
paramvalue = new SqlParameter("@Crid", SqlDbType.Int);
paramvalue.Direction = ParameterDirection.Input;
paramvalue.Value = Crid;
cmdinsert.Parameters.Add(paramvalue);
paramvalue = new SqlParameter("@IpNum", SqlDbType.BigInt);
paramvalue.Direction = ParameterDirection.Input;
paramvalue.Value = IpAddress();
cmdinsert.Parameters.Add(paramvalue);
conn.Open();
cmdinsert.ExecuteNonQuery();
Response.ContentType = "text/plain"; Response.Write("&imp=registered&");
}
catch (Exception ex)
{
cmdinsert = new SqlCommand("sd_Basreg", conn);
cmdinsert.CommandType = CommandType.StoredProcedure;
paramvalue = new SqlParameter("@Crid", SqlDbType.Int);
paramvalue.Direction = ParameterDirection.Input;
paramvalue.Value = Crid;
cmdinsert.Parameters.Add(paramvalue);
paramvalue = new SqlParameter("@IpNum", SqlDbType.BigInt, 50);
paramvalue.Direction = ParameterDirection.Input;
paramvalue.Value = "0";
cmdinsert.Parameters.Add(paramvalue);
conn.Open();
cmdinsert.ExecuteNonQuery();
Response.ContentType = "text/plain"; Response.Write("&imp=registered&");
}
finally
{
cmdinsert.Dispose();
conn.Close();
if (conn.State == ConnectionState.Open)
{
conn.Close();
conn.Dispose();
}
}
}
private string IpAddress()
{
string IPCity = "";
string strIpAddress;
strIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
string IpAddress = strIpAddress;
Array IpPart = IpAddress.Split('.');
Int64 IpNum = 16777 * Convert.ToInt64(IpPart.GetValue(0)) + 636 * Convert.ToInt64(IpPart.GetValue(1)) + 26 * Convert.ToInt64(IpPart.GetValue(2)) + Convert.ToInt64(IpPart.GetValue(3));
return IpNum.ToString();
}
}
Create PROCEDURE [dbo].[sd_Basreg]
@Crid int,@IpNum varchar(50)
AS
begin
Insert into S_Base(CrId,IpNum) values(@Crid,@IpNum);
end
Please reply me ...if any optimizing code for this
Raaj
|
|
|
|
|
Hi Raaj, I'm not sure what your question is, otherwise I would try to help.
I'm not sure what this means:
..here problem is whenever user registering Impression that we are loss the 40% impression and here we doing geolocation also.
-Ken
|
|
|
|
|
Hi,
How can I trim the following to get the result please?
string s = " 12345 - 54321"
RESULT:
should show
s = "12345-54321"
It seems s.Trim() only trims the outside of the string and not within.
Any thoughts please?
Thanks
|
|
|
|
|
Correct. You'd need to use the Replace method for that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
u can replace the " " with ""
|
|
|
|
|
|
Hi,
How can I create sql database by using Link? Can you give me some links to see and investigate this subject?
Best Regards
Kemal Akkanat
|
|
|
|
|
omegazafer wrote: How can I create sql database by using Link?
What does that mean? Do you want to create database through code? If yes, read the documentation[^].
|
|
|
|
|
I mean, using some codes(in visual studio not in sql), creating sql database. It is like a nhibernate technology. we make classes in vs and give some attributes to properties . After that, When we start the program, our program will create the sql database in sql server automatically.
Best Regards
Kemal Akkanat
|
|
|
|
|