|
please dont post your question again and again that too with a change of name......
|
|
|
|
|
Pl. avoid spinning a new thread for the same post messing up the forums.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
hiii
i hav written the code but still it is not showin the value
in the textbox when i run the program.I want that it calculates the value of two textbox n shows the result in third textbox.
the code is:
int result = int.Parse(TextBox1.Text) * int.Parse(TextBox2.Text);
TextBox3.Text = result.ToString();
|
|
|
|
|
TextBox3.Text =Convert.ToString(int.Parse(TextBox1.Text) * int.Parse(TextBox2.Text));
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Blue_Boy wrote: TextBox3.Text =Convert.ToString(int.Parse(TextBox1.Text) * int.Parse(TextBox2.Text));
this is same as,
int result = int.Parse(TextBox1.Text) * int.Parse(TextBox2.Text);
TextBox3.Text = result.ToString();
|
|
|
|
|
So what is happening? Is an exception being thrown?
|
|
|
|
|
Did you try to debug it.Is it value is properly assigned to the textbox.Any error or exception?
|
|
|
|
|
There is nothing wrong with this code. Problem seems with your execution ? Where are you executing these ? Any thing here is runtime created ?
|
|
|
|
|
I want to assign a integer value to a textbox during runtime.
plz help m new to asp.net.the code i have written does not shows
the value in textbox during runtime....:
int Total = (Convert.ToInt32(Txtproductprice.Text) * Convert.ToInt32(Txtproductquantity.Text));
//string total = Convert.ToString(Total);
Txttotalprice.Text = Total.ToString();
thank's
|
|
|
|
|
pariksht wrote: nt Total = (Convert.ToInt32(Txtproductprice.Text) * Convert.ToInt32(Txtproductquantity.Text));
//string total = Convert.ToString(Total);
Txttotalprice.Text = Total.ToString();
int result = int.Parse(TextBox1.Text) * int.Parse(TextBox2.Text);
TextBox3.Text = result.ToString();
|
|
|
|
|
It may also be worth while looking at TryParse to make sure the text boxes contain valid numbers.
|
|
|
|
|
Do you reset control values before assign value to TextBox?
Txttotalprice.Text =Convert.ToString(Convert.ToInt32(Txtproductprice.Text) *Convert.ToInt32(Txtproductquantity.Text));
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
hi sir
please help me
i want the primary key column value on gridview_rowcommand()
please send me code if possible
thanx
hi sir
i am using following code:
<asp:templatefield headertext="Status">
<itemtemplate>
<asp:linkbutton id="lb1" runat="server" onclick="lb1_Click" commandname="lock_user" commandargument="<%# Container.DataItemIndex %>">Lock
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if ((e.CommandName).ToString() == "lock_user")
{
int index = Convert.ToInt32(e.CommandArgument);
string userid = GridView1.Rows[index].FindControl("UserIdName").ToString();
WebMsgBox.Show(userid);
}
}
but it gives blank messagebox and i want that userid.
modified on Friday, July 10, 2009 6:35 AM
|
|
|
|
|
|
vikas shukla wrote: please send me code if possible
What have you tried so far? A simple Google search would have gave you a nice idea.
void mygridview_RowCommand(Object sender, GridViewCommandEventArgs e)
{
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = ContactsGridView.Rows[index];
}
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
<asp:TemplateField>
<ItemTemplate>
<asp:Button runat="server" CommandName="BtnUpdate" CommandArgument='<% Eval("PrimaryKeyField") %>' />
</ItemTemplate>
</asp:TemplateField>
himanshu
|
|
|
|
|
I have to develop an application, which can able to connect to a GPS device which is connected to serial port in our system and also able to read all the data from the device.
Currently I am able to make connection to my system's serial port but not able to connect to that GPS device and also not able to read the data from the device.
So in brief problem is that, "how we read the device which is connected to our system's serial port."
Please help me out to solve this problem.
|
|
|
|
|
avika wrote: Please help me out to solve this problem.
You are in wrong forum. It has nothing to with ASP.Net.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I have to develop this in ASP .Net web application. I got some information regarding to Serial Port classes and methods from MSDN but still not able to get it. Please help me if you have any idea regard to this.
|
|
|
|
|
avika wrote: I have to develop this in ASP .Net web application.
AFAIK, this is no ASP.Net thing.
avika wrote: Please help me if you have any idea regard to this.
Did you look at this[^]?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Are you trying to build a web application that connects to the serial port of the clients PC? You won't be able to do that with ASP.net.
|
|
|
|
|
I am able to connect to serial port but not able to read the data from the connected device. Here is the code which i am using to read the device-
// Create the serial port with basic settings
SerialPort port = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);
port.Handshake = System.IO.Ports.Handshake.None;
port.ReadTimeout = 5000;
port.Open();
//retrieve number of bytes in the buffer
int bytes = port.BytesToRead;
//create a byte array to hold the awaiting data
byte[] comBuffer = new byte[bytes];
//read the data and store it
port.Read(comBuffer, 0, bytes);
string str;
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
str = enc.GetString(comBuffer);
txtData.Text = str;
port.Close();
when i am running this code then I get 0 in BytesToRead and comBuffer.
I think i am doing something wrong but what it is not have any idea.
|
|
|
|
|
Hi all ,
Is it possible to create short cut keys in ASP.Net to navigate between pages.
Thanks ,
Amit PAtel
|
|
|
|
|
Amit Patel1985 wrote: Is it possible to create short cut keys in ASP.Net to navigate between pages.
The simple answer to this is a NO.
Though you can do something with JavaScript [^]to achive this.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hello,
I want to develop a web chat application. In this application the user Just need to login to the webpage and can be able to chat with the other users who are logged in at that point of time. This application that i want to develop resembles GTalk that we can use once we sign in to or gmail account. This application is completely web application which doesn't need any installation.
I need to develop this application in ASP.Net. In future this application can be enhanced with Remote Desktop viewing as well.
->Can any one suggest me the approach(logic of exchanging data between 2 users) and the technology that I can Implement so that i will not stuck in future. I don't need Code, just outline flow of implementation will satisfy my need.
->If you have any Idea how Web based GTalk was Implemented? I mean the approach the followed by Google.
Please help me in this Regard.
|
|
|
|