|
Have u tried this:
document.getElementById("Button1").disable = false;
|
|
|
|
|
hi there,
Thanks for the support but the script "document.getElementById("Button1").disable = false;" was not working so i have created a textchange event it working fine now.
private void textbox_TextChanged(object sender, System.EventArgs e)
{
Button.Enabled = true;
}
regards
ybasha
|
|
|
|
|
It should work as its working on my m/c, just whether ur browser support javscript???
|
|
|
|
|
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
|
|
|
|