|
which browser u use
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
|
I'm trying to change the color of edit box , i want to get the handle of edit box , is there any other way.
{
m_Brush.DeleteObject();
m_Brush.CreateSolidBrush(m_BackColor);
CDC* pDC = GetDC();
pDC->SetBkMode(OPAQUE);
pDC->SetBkColor(m_BackColor);
pDC->SelectObject(&m_Brush);
CRect rc;
GetClientRect(&rc);
ScreenToClient(&rc);
pDC->Rectangle(0, 0, rc.Width(), rc.Height());
pDC->SetTextColor(RGB(0, 0, 0,));
pDC->TextOut(2, 2, m_Text.GetBuffer(m_Text.GetLength()));
}
Dona
|
|
|
|
|
Wrong forum. Try in Visual C++
|
|
|
|
|
hello everyone I'm having trouble getting the html to be read as text.
plus the aspx file is not as it should be it doesn't give you the data retrieved from the database what should I do?
Thanks in advance
BiG RaLpH
|
|
|
|
|
How can I connection to SQL server by asp form
Please help me.
|
|
|
|
|
you can add an sql data source control to your page. and follow the wizard to get you to configure your data source.
BiG RaLpH
|
|
|
|
|
Hi,
Create Connection Object,And Connect To SQl DataBase.
SqlConnection Con=New SQlConnection
("SERVER=SERVERNAME;User Id=sa; Password=...; DataBse=...DBName");
Naik M
|
|
|
|
|
I want to change the name of the browse button name "e.g like get the length"
or I want to create anew file upload control code thx.
plz urge nt
let's work together
|
|
|
|
|
Will you plz tell me why you need that. That button is for browsing purpose. To do other task on the browsed file you can put another button
Thanks & Regards
Mishra
|
|
|
|
|
I work for acompany and they want to change the language of the broweser button thx for replay
let's work together
|
|
|
|
|
u are using 1.1 or 2.0?
Ramana
|
|
|
|
|
I work in 2.0
let's work together
|
|
|
|
|
i wanted to calcuate the ip address of the machine which is tying to access my website(intranet application).
At clienty machine it shows the ip addess of server machine .y this is happening.
for that i wrote the following code
IPAddress[] ip;
string str = Dns.GetHostName();
IPHostEntry hostentry = Dns.GetHostByName(str);
ip = hostentry.AddressList;
Response.Write(ip.GetValue(0).ToString());
Soniagupta1@yahoo.co.in
|
|
|
|
|
Did you try this one ?
Request.UserHostAddress()
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
thanks a lot..........
Soniagupta1@yahoo.co.in
|
|
|
|
|
i have try using this code.when i write 100 char (max Length) contineuosly then it will work..but when i m copy some text and paste on that text box at that time it will not be dispaly the error msg.
<script language="javascript">
function textboxMultilineMaxNumber(txt,maxLen){
try{
if(txt.value.length > (maxLen-1))return false;
}catch(e){
}
}
</script>
runat="server" Height="103px" MaxLength="100" Width="166px" onkeypress='return textboxMultilineMaxNumber(this,100)' TextMode="MultiLine"
Jintal Patel
|
|
|
|
|
Hi,
Check The Text Box Properties . And Set The Property of Text Box .
Naik M
|
|
|
|
|
maxlength does not restricts the user to type only that much length which is defined in the properties in asp.net.
Soniagupta1@yahoo.co.in
|
|
|
|
|
If you want ot set maximum length of a multiline textbox, You can use the following code in page load.
System.Text.StringBuilder jScriptStr2 = new System.Text.StringBuilder();
jScriptStr2.Append("");
jScriptStr2.Append("function limitText (textObj, maxCharacters){");
jScriptStr2.Append("if (textObj.innerText.length >= maxCharacters){");
jScriptStr2.Append("if ((event.keyCode >= 32 && event.keyCode <= 126) || (event.keyCode >= 128 && event.keyCode <= 254)){");
jScriptStr2.Append("event.returnValue = false;");
jScriptStr2.Append("}}}");
Page.RegisterStartupScript("textLimiter", jScriptStr2.ToString());
And In Html of textbox add
OnKeyDown="limitText (this, 500);"
Thanks & Regards
Mishra
|
|
|
|
|
i am updating the database from another machine.actally it is placed on server. i used update query. it says operation must use an updateable query.
it's an intranet aplication.
i am using window XP
-- modified at 3:55 Tuesday 18th September, 2007
Soniagupta1@yahoo.co.in
|
|
|
|
|
Actually this is some permission issues LIke
An ASP.NET worker process (Aspnet_wp.exe) runs under the default ASPNET account.
-and-
• You do not enable impersonation on that application.
-and-
• You try to connect to or write to an Access database.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
there is no problem in establishing the connecton to the database.problem is only in updating th query.
and how can i enable te poperties u mentioned ?
Soniagupta1@yahoo.co.in
|
|
|
|
|
• Configure the ASP.NET worker process to run under the SYSTEM account in the <processModel>section of the Machine.config file.
• For security reasons, Microsoft recommends that you enable impersonation on your ASP.NET application. This method works if the impersonated user has necessary permissions to the computer and the database that you are accessing.
• Grant read and write permissions for the "Everyone" group on the database and the database folder. This method is not safe; therefore, Microsoft does not recommend this method.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
This error comes due to insufficient access rights.
I got the following text from a site. May be this can help you...
You need to grant NTFS write permissions on your database file (.mdb) to a special user account your web scripts run on. The account is usually called Internet Guest Account (IUSR_<machinename>). To grant permissions right-click database file, choose Properties and Security tab (you need to disable Windows XP simplified security if you don't see it). Select or lookup IUSR account and choose read and write permissions (or modify permission to select both).
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|