|
i have a two textbox and a button inside the grid. when i click the button i need to check the two textbox.
|
|
|
|
|
Hi all
i have Data Container having data eg CategoryName and EmployeeName i want to show the data on the aspx page the problem is that i must show the data Catogary wise in datalist or repeater. means like this
CategoryName
EmployeeName EmployeeName EmployeeName EmployeeName EmployeeName
EmployeeName EmployeeName EmployeeName EmployeeName EmployeeName
EmployeeName EmployeeName EmployeeName EmployeeName
CategoryName(other)
EmployeeName EmployeeName EmployeeName EmployeeName EmployeeName
EmployeeName EmployeeName EmployeeName EmployeeName EmployeeName
EmployeeName
Means Catefgory name must be the header for the EmployeeName Please tell me how to achieve this
|
|
|
|
|
Hi
All!
I am using ASP.Net 2.0. I am trying to save some information on client machine but my application is saving data on client as well as on the server.... i dont wanna save data on server....is it possible ...how???
i m writing the code...
HttpCookie mycookie = new HttpCookie(Register); mycookie["U"] = User.ToString();
mycookie["C"] = Customer.ToString();
mycookie.Expires = DateTime.Now.AddYears(1);
Puneet Agarwal
|
|
|
|
|
No, it doesn't save any data on the server.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Just wanted to know whether you are accessing your web page from the server machine itself ??
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Hi all,
I have a problem ie.,
while running project on my machine .It is running faster.
It is storing images in my temporary internet folder.
But if i am accessing my webpage in other machines which is connected over the network using my IP address.It doesnot stores it in Temporary Internet files folder.
Because of this my apllication is running slow.
Is that any way to store images in client machine.Please Help me.
Thanx in Advance..
C.Babu
|
|
|
|
|
|
Hi,
I am having problems firing a javascript function on an asp.net page. I add the onclick event to the button, but the event does not fire.
Here is my code:
VB
btnSubmit.Attributes.Add("onclick", "val_update(" & Me.drpLocations.ClientID.ToString & "," & Me.drpStatus.ClientID.ToString & "," & Me.txtUserLoginName.ClientID.ToString & "," & Me.Form.ClientID.ToString & ");")
ASPX
<br />
<br />
<script language="javascript" type="text/javascript"><br />
<br />
var msgInvalid = "Not validated"<br />
<br />
function val_update(valLocation, valStatus, valUser, valForm){<br />
if (valStatus.selectedIndex == 2 && valLocation.selectedIndex == 0) {<br />
msg = "You need to add a Location"<br />
alert(msg);<br />
return false; } <br />
if (valUser.value = "") {<br />
msg = "You need to add a UserName"<br />
alert(msg);<br />
return false;<br />
} else {<br />
alert(msgInvalid);<br />
return false }<br />
<br />
}<br />
<br />
</script><br />
<br />
'button here - normal button with ID, runat command, and text.<br />
<asp:Button ID="btnInsert" runat="server" Text="Insert User" /><br />
<br />
Every time I click the button, the else statement gets processed, and "Not fired" is alerted. Not sure what I am doing wrong. Is there any way how I can do the above validation client-side?
|
|
|
|
|
Use the document.getElementById method to get the elements from their id.
---
b { font-weight: normal; }
|
|
|
|
|
I am not to sure how to do that, as the asp.net gives my textboxes and dropdown boxes different names to the names I specify in the asp.net.
EG. My txtfield is called "txtUserLoginName", but when I view source, it's called "ctl00$cphCenter$txtUserLoginName"
|
|
|
|
|
playout wrote: I am not to sure how to do that, as the asp.net gives my textboxes and dropdown boxes different names to the names I specify in the asp.net.
But you already do that in the code. The problem is that you are treating the id strings as variable names instead of strings in the Javascript code.
---
b { font-weight: normal; }
|
|
|
|
|
I found the problem, thanks. Got it to work now. Thanks for the help. If you didnt point it out to me, I would probarly still be sitting clueless.
|
|
|
|
|
you are doing correctaly but you need to be get values in function instead of passing in function.
like
getElimentbyId('<% drpLocations.ClientID %>')
then use it.
|
|
|
|
|
HI,
i have a problem i want to enter a new row in the grid and this row contain some textboxces in which i enter the data and whn i press Insert buttion in my grid that data is inserted in the database.Tell me some other way to doing this or send me some codesnippet
|
|
|
|
|
I think this[^] will be helpful.
Best Regards,
Apurva Kaushal
|
|
|
|
|
use textbox in footer template and insert button too.
use this if this is not possible the tell me i will give you code.
|
|
|
|
|
Hi there,
I've been going through the tutorials, but either missed it (was late last night) oder it's just not there: I need some information on how to upload multiple image files on one page. Please note, that I have to use .NET 1.1!
Any starting point? Thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
For a start you can have a look at this.[^]
Best Regards,
Apurva Kaushal
|
|
|
|
|
My probelm is,
When i have two textboxes with two difeerent values, when i click inside the third textbox ,i need to get the sum of first two textboxes values.
Is it possible without any button click event.
How to do>> am i need to write any javascript for this???
kissy
|
|
|
|
|
Hi there...
This is the javascript function
function getSum(obj)
{
var v1 = document.getElementById('txt1').value;
var v2 = document.getElementById('txt2').value;
if ( !isNaN(v1) && !isNaN(v2) && !isEmpty(v1) && !isEmpty(v2) )
{
var sum = parseInt(v1) + parseInt(v2);
obj.value = sum;
}
else
{
alert("Please fill the fields with valid numbers");
}
}
function isEmpty(txt)
{
if (txt == "")
{
return true;
}
else
{
return false;
}
}
There are three text boxes in the form txt1, txt2, and txtSum
in the page load add this code ...
<br />
txtSum.Attributes.Add("onclick", "getSum(this);")<br />
Hope this would help
Best Regards
3ala2 
|
|
|
|
|
Ur idea is really working good and my exact doubt here is ,
I have to do this with the database values,i need to check the txt1,txt2
if ( !isNaN(v1) && !isNaN(v2) && !isEmpty(v1) && !isEmpty(v2) )
{if(v1>v2){
var sum = parseInt(v1) + parseInt(v2)
obj.value = "+" & sum}}
it is not working,bcz i need to check it and do as per my requirement.This adding of '+' symbol before and the condition checking are failed.I need to do the operations with the database values.
Thanks once again.
How to do.
My Purpose to do this is,
I have 2 columns for fees(txt1,txt2) and if txt1>txt2 then i need to disply if txt1>txt2 +(sum=txt1-txt2) and vice versa.
-- modified at 2:51 Wednesday 22nd November, 2006
kissy
|
|
|
|
|
Thanks once again, my problem got solved.
kissy
|
|
|
|
|
Hi Greetings
I Need a ASP.NET code that allow users to select Multiple files in File Open Dialog Box.
This is easy in Windows Application but its very Complicate in ASP.NET web Application
Regards
RPL
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
HI Greetings
I have done Multiple File Upload in My project.i want to select multiple files by drag and drop on to ASP.NET control(eg: DataGrid,DataView)those file paths will added to that control.i have seen this drag and drop event in Windows Application but i want to achieve this in ASP.NET.
Simply i want the design like Outlook 2003 drag and drop attachment process in asp.net.
Thanks in advance.
Regarding
RPL
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
Hi friends
I have checkbox control which when checked/unchecked should prompt a message
"Are you sure you want to Check/Uncheck?"...
Also the postback operation on checking/unchecking the CheckBox should not affect my page's normal working..that is, i have a button when clicked enables this CheckBox and when clicked the second time,disables the CheckBox... So this enabling and disabling operations shouldnt be affected by the CheckBox's event...
Please help me!
Thanx in advance!
|
|
|
|