|
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.”
|
|
|
|
|
how should i provide the access rights ? i am using the window XP.
Soniagupta1@yahoo.co.in
|
|
|
|
|
I'm stuck with a problem just before deliverying the work for UAT Testing. I tried but couldn't sort out.
problem Description: There are 2 Div tags In an aspx page. say Div1 and Div2. Both the Div tags contain a set of Server controls inclucding Validation controls. Based on the selection of a dropdownlist in Div1- the Div2 is made visible. Controls inside the Div1 are validated and error messages are prompted properly on the click of Save Button. But the Validation controls inside the Div2 are not working. I'm using ASP.NET 1.1 and Javascript.
Anybody has got any Idea how to resolve this...
And also I would like the know the difference between these two Javascript statements.
div1.style.display="inline"; <br />
div1.style.display="block";
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
J O N wrote: the Validation controls inside the Div2 are not working
This problem was due to the Javascript Function which was called on the Click of Save Button that does the validation for DIV1 then returns true. The return statement bypasses the call to Page_ClientValidate() function which explicitly skiped the DIV2 validation.
I Included these statements in the end of Javascript function to resolve the problem.
if (typeof(Page_ClientValidate) == 'function') <br />
Page_ClientValidate();<br />
return true;
Now it validates the controls inside Both Div1 and Div2.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Can you help me to access the table in a form?
I am need a sample program in asp.net with VB coding for the following action taken.
My table contain following fields that is
Name, StudentID, Mark1, Mark2 as string
the table contain 20 records
data entry for mark1 only
display the ID at the top of the form
next get a mark1 with textbox
click the submit button
go to the next ID display the top of the page
the textbox is empty
this action going to end of the table
(move the record upto 20th record)
If end of the table the following message is displayed.
Message = "No more records."
Please above action how to made. this is very urgent.
could you help me at earliest.
Thanking you
abglorie
|
|
|
|
|
I am providing here logic.... you can take help from this logic if you need further then post here.
On page load
if Session("Data") is nothing
1- Fill the data from data base in dataset
2- Hold it into Session("Data")=Your datase
3- Set a counter in Session("Cnt")=0
4- Get the 0 index row from the datase and show it on form.
else
1- get the counter from session
int cnt=Session("cnt)
2- increase the counter
cnt=cnt+1
3- Get the dataset from Session("Data")
4- Get cnt index data from dataset
5- Show the data on form
6- Again save current index in session
Session("Cnt")=cnt
end if
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Please give me a exact full coding (form tags and vb coding)
thank you
abglorie
|
|
|
|
|
I have written a code in vbscript as
Sub validates(byval sender as object,byval e as e.eventargs)
Dim app As String
app = txtname.Text
If app = "" Then
MsgBox("Please Enter your Name")
End If
End Sub
calling this in the buton event
<asp:button id="Button1" runat="server" onclick="validates()" style="z-index: 103; left: 408px; position: absolute;top: 240px" text="Check">
adding attribute in the Page_load event as
button1.attributes.add("onclick","return validates")
by running this code first it going for saving the data presnt in the Button_click event and then getting an error message while saving the record then getting validation error.
What modifications I have to do for thiscode inorder to run at the client side itself
Please help me
Priya
|
|
|
|
|
what is difference between remoting and webservices
Naik M
|
|
|
|
|