|
|
I get a problem on writing a web page using C#.net 2.0. I have added some check boxes to a table cell and a button. When I check on some of the check boxes and the click the button, the table cell's find controls cannot find out the control.... And the web page doesn't know which check boxes have been checked
Many Many Thanks for helping~~
|
|
|
|
|
you have to add controls after each post back...try this...
<< >>
|
|
|
|
|
Thanks for your reply. But if I need to add controls after each post back, then I don't know which check boxes have been clicked by the user.
|
|
|
|
|
so for this issue...you might store checjbox's states in a hidden field, or session, or somewhere else,.. so that you can read and bind these when creating checkboxes dynamically...
Hope you get the idea
<< >>
|
|
|
|
|
Hi,
I think you don't determine cell's ID that you find control.
|
|
|
|
|
Hi,
Thanks for your reply. I have used the debug mode to check the controls in table cell and using the while loop to get the controls one by one. But I still cannot find the check box in the table cell. Please kindly help. Thanks again
|
|
|
|
|
Yes you cannot find the controls which added dynamically as web is stateless env...that's why you have to re-create after each postback...
<< >>
|
|
|
|
|
Hi,
You can use the code in the code behind:
<br />
for (int i = 0; i < TableID.Rows.Count; i++)<br />
{<br />
CheckBox chk = (CheckBox)TableID.Rows[i].FindControl("CheckBoxId");<br />
if(chk.Checked)<br />
else<br />
<br />
}<br />
I hope it help for you
|
|
|
|
|
Need help... When I do comparison betwen a cell contents of the grid and and arraylist I need to disable that particular row in the grid.... Is it possible...
for (int i = 0; i < mylist.Count - 1; i++)
{
foreach (GridViewRow row in grdSelectClient.Rows)
{
if( row.Cells[5].Text.ToString() == mylist[i].ToString())
{
//Code for disabling the row when comparison is equal....
}
}
}
-- modified at 6:32 Monday 7th May, 2007
-- modified at 6:34 Monday 7th May, 2007
|
|
|
|
|
Hi,
I hope you have got the solution by this time but still I suggest you to write the following code inside the "if" block in your code
row.Enabled = false;
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
I had to generate a Word Report with password.
Upon the request from the clients the application will create a Word Report at the server(where Word 2000 is installed) closed that file, exported the same to the client system. After that the file is deleted from the server.
But in some client system some gif files were not getting loaded(There also it was using Word 2000). Actually i tested from 5 to 6 machines which have been installed Word 2000. It was getting loaded at some and not at the other.
But it was also not getting loaded at the systems where Word 2003 is also installed.
But whatever the client is the file is generated correctly at the server before it is exported. I have checked that by commenting the code that deletes the file at the server.
Please help....
-- modified at 6:28 Tuesday 8th May, 2007
O
|
|
|
|
|
Hello,
I want to capture webcam image from ASP.Net application using C#. Client should access my ASP.Net page which should be able to access the webcam image from client's browser and upload on my web server.
Please respond it immediately.
Jitendra
|
|
|
|
|
hi,
i want to import excel sheet datas into mysql table using C# code. anybody please help me with proper code.
Regards
Vijay.
|
|
|
|
|
i think i had replied u before with proper code... u better check ur last 3-4 posts where u asked the same question.
|
|
|
|
|
thanks vaibhav,
but the thing is that i need only the code to upload the excel datas into the database without using datagrid. bcoz i'm not using datagrid in my application and i don't use stored procedure as the application is already a running project in which i have to add a small part. i hope u got my idea. i need only the code for importing datas into mysql table. pls help me..
Regards
Vijay.
|
|
|
|
|
I get the keycode from keyboard in IE, by using window.event.Keycode
But same fails in Mozilla ,how can I detect Keycode in Mozilaa.
Thanks In advance
Navneet Hegde
Nashik.
Develop2Program & Program2Develop
|
|
|
|
|
The window.event object only exists in IE. In Mozilla the event object is sent as a parameter to the function.
---
single minded; short sighted; long gone;
|
|
|
|
|
Pleasure having your words , Now its working well even on Opera.
Thanks
Navneet Hegde
Nashik
Develop2Program & Program2Develop
|
|
|
|
|
Hi all,
i need to invoke a function, when the user clicks the left button of the mouse, inside a textbox. i am using asp.net 2.0 with c#.
can anybody help me.
Thanks in advance
Sebastian
|
|
|
|
|
hi,
It is possible to track click event of textbox in javascript.
but in C# textbox doesnt have click event. So you can not create eventhandler for that.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Ok. i can use vb also. can you say how to implement this.
Many Thanks for reply
sebastian
|
|
|
|
|
Hi,
R u Developing webapplication or windowsapplication?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
its a webapplication
thanks
sebastian
|
|
|
|
|
why do you want to handle click on textbox?
<< >>
|
|
|
|