|
Sonia Gupta wrote: Now i an selecting the particular itme in the dropdiwnlist, and accordingly the counting should be refreshed only in that row
You need to attach event handlers for this dropdown.
|
|
|
|
|
can u explain a bit more with code?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: can u explain a bit more with code?
What is your actual requirement ? Do you want the dropdowns to be posted back automatically when it changes ? or do you want to get selected value of dropdown when any button pressed on the same row ?
|
|
|
|
|
in the particular row of dropdownlist , how can i change the label value when i change the dropdownlist selected index.so the changes should be done at that row only.i mean a row(gridview row) contains a label and a dropdownlist.when i changed the index of dropdownlist the corresponding label value should get changed only i that row.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: the corresponding label value should get changed only i that row.
If you need to do this in server side, you have to make the dropdown's autopost back true and attach an event with that. This can be done easily on client side. You have to write a javascript function that accepts your DropDown id and Label id.
In datagrid's item_databound event, add the javascript attributes to your dropdown.
|
|
|
|
|
You have to create SelectedIndexChanged Event of Dropdownlist on RowCreated Event of gridview.
for Example
OnRowCreatedEvent
DropDownList ddl=(DropDownList)e.Rows.Findcontrol("ddlID");
ddl.ID=e.Rows.RowIndex;
ddl.SelectedIndexChanged+=(Press tab 2times);
now On SelectedIndexChanged Event you can easily change corresponding label of Selected Rows
Int index=Convert.ToInt32((DropDownList)Sender).ID);
((Label)GridView1.Rows[index].FindControl("lblID")).Text="Value Changed";
best Regard
Pathan
-- modified at 3:08 Wednesday 17th October, 2007
|
|
|
|
|
i have a dropdownlist and label in each row of gridview.how can i update the particular row label text , on changing the index of dropdownlist.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Since you don't know how many DropDown controls would be there, it's better to put those in a GridView /Datagrid template column.
|
|
|
|
|
|
i have webgarden mode and i have three server.
my fileupload user control can be used from any server.
files should be upload at perticular server location in Physical directory.
how it can be achived.
or any idea.
-- modified at 1:00 Wednesday 17th October, 2007
|
|
|
|
|
one thing....
where u r storing the uploaded files? in DataBase or in any folder at physical Directory?
based on that u write logic of upload button.
Ramana
|
|
|
|
|
|
hi,
i have the 5 textboxes and 5buttons(all are html controls)
ids are
textbox1-button1
textbox2-button2
all these controls are coming dynamicaly
like that all
if i click the button1 then txtbox1 value has to be displayed ..simlar for all
how can i do this ina javascript
|
|
|
|
|
hi
give the ids to your html control
go to html part of page
select the particular control and event from dropown
from up side of page
and write the code
in event
alert(docuement.getelementbyid('ur controls id').value)
|
|
|
|
|
hello,
how can i get the value of tetbox1 for button1 click and value of textbox2 for button2 click... all these(controls) are coming dynamically...
see this way i have given the ids to controls..
<% for (int i=0; i<_nRowCount; i++) {%>
<% } %>
<asp:button id="btn_CreateRow" onclick="OnCreateRow" runat="server" text="AddNew">
|
|
|
|
|
beklo.com/rameshgoudd wrote: type=button value=Save önclick=TestServer(this.id)
You need to pass textbox id's also to this function.
|
|
|
|
|
k...........but i how can get the textbox value for related button click event
|
|
|
|
|
As I told, you have to pass both text box id's. Already you have defined a javascript method to handle button click. So what's the problem ? To get values of text box, use getElementById() to find the texbox object and get value.
|
|
|
|
|
u can give the clientid
when u create it dynamically
|
|
|
|
|
Hi ,
while creating button add the java script method and map it to onclick()
event().In that javascript function add the functionality to get the value of the textbox.
The Javascript function
function fun()
{
button1.value = document.getElementById("textboxid").Value;
}
hi ! i am working in a MNC and i lov programming
|
|
|
|
|
We developed a website using .Net 2.0, we run the system on IE7 operating system Windows XP, we use the CSS to format the style of the text, it look fine. But when we run the website on IE7 operating system windows vista the CSS format did not take effect on the text. Is there any bugs on Windows Vista
|
|
|
|
|
vanhawk wrote: Is there any bugs on Windows Vista
No. It will be your CSS referring problem. Ensure that you are following W3C standard.
|
|
|
|
|
The design of the page work properly on IE7 operating system Windows XP, but on IE7 operating system Windows Vista the CSS did not work properly. Till now I'm still thinking that we the same code and the same IE browser which is IE7 the only diffirence is the Operating System.
|
|
|
|
|
vanhawk wrote: IE7 operating system windows vista the CSS format did not take effect
yea there are some bugs in IE7 with CSS for your reference you can follow the below link
IE7_CSS[^]
Regards,
Sandeep Kumar.V
|
|
|
|
|
How a crystal report program in .net web application is run ,it will display in word format not to export into a directory.simply when we run it will display in word format
-- modified at 1:34 Wednesday 17th October, 2007
|
|
|
|