|
write as fallows in button click...........
i did it in asp.net1.1, i hope this will help u....
private void Button2_Click(object sender, System.EventArgs e)
{
CheckBox chk;
Label lbl;
string str="",streid="";
foreach(DataGridItem dgitem in DataGrid1.Items)
{
chk=(CheckBox)dgitem.FindControl("CheckBox1");
if(chk.Checked)
{
lbl=(Label)dgitem.FindControl("Label9");
str=lbl.Text;
streid =string.Concat(str,",",streid);
}
}
streid=streid.TrimEnd(',');
cmd=new SqlCommand("delete from emp where Eid in("+streid+")",con);
cmd.ExecuteNonQuery();
binddata();
}
Pradeep Reddy
|
|
|
|
|
i have to refresh a mainpage from a popup window whose parent is another popup which is opened from the main page.....
i have to do this using javascript...
can any one help me....
thank u
|
|
|
|
|
Hi,
Try, window.opener
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Hi,
you have to add a attribute to that button during the page load event of the form that would call the popup .the code for that is like:
**********************************************
loginButton.Attributes.Add("onclick", "window.showModalDialog('/MyWebsite/login.aspx', null, 'status:no; dialogWidth:360px; dialogHeight:229px; help:no; scroll:no; menubar:no; resizable:no')");
***********************************************
This code is for modalDialog
or for popup
button.Attributes.Add ("onclick", "javascript: functiontoopenpopup();");
this will open the popup window.
In the popupwindow code....on the Page_unload you have to write this code.
*****************************************
window.close();
window.opener.location.reload();
*****************************************
This will close the popup and refresh the parent window.
Regards,
Kaps
|
|
|
|
|
Hi,
Please reply to the correct message,
Then only the poster will get a notification mail.
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Hi,
i need to refresh the mainpage from a popup as shown below
Main Page ---> Popup1(opened from main page) ----> Popup2(opened from Popup2)
i have to refresh the mainpage when popup2 gets closed....
how can i do this....
thank u
|
|
|
|
|
Hi i am using frameset in my form...,
The one frame contain header another frame detail page...,
in that detail page want to be display based on the system propeties...,
it means in that place i dont want any scroll bars...,
the page want to be display with in that frame...,
How to do that?,
plz hlp me...,
Magi
|
|
|
|
|
if you dont want the scroll bar you can use
"scrolling=no" attribute in to a frame
I dont know, is this you are expecting...
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
ya if u give scrolling="no" it will not show scroll bars...,
But if u give like that,in that details page some of the information will be hide...,
My question is, if i give scrolling="no" also.., what are the things i have in that page everything want to be diplay with in that frame...,
Magi
|
|
|
|
|
Hi,
That is based upon how you are aligning the data in the page for display, and also the size of data...
did you try?did you stuck anywhere?
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
No actually,if user system resolution will change also..,
based upon it want to align with in the frame.....,
Magi
|
|
|
|
|
Hi friends
I have one dropdownlist populated by country names.
When I select country from dropdownlist,i am getting following error.
plz solve my problem
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Thanks in advance
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
hi..
i have a textbox containig 100 lines...
i have scrollup the text automatically on load()...
rgs
Bala
|
|
|
|
|
hi,
I think when we focus on the text box it will automatically scroll to top.
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
hi..
assume there is 100 records in datagrid.. am updating ,deleting and modifing few records...
i have to reflect d changes in database and also i know the changes made in datagrid...
rgs
Bala
|
|
|
|
|
How can I add two numbers without using + operator.
|
|
|
|
|
My frist questen would be, why you can't use
the "+ operator" ?
The only thing that I got in mind is
to go through a for-loop, increasing
the number every time.
But this won't help either, you have
to use the "++ operator".
sorry, that I can't help
I would say, that is not possible, but I'm not sure.
greetings, pdluke
|
|
|
|
|
Thank
Actually it was a question asked by some one from me in interview. Any how thank u
|
|
|
|
|
|
Iam new to ASP.Net 2.0 I want to know how to change the position of any control (Text box, label etc) from one place to another place. Iam unable to drag the control.How is this possible?
Thanx in advance
|
|
|
|
|
Where you want to drag the controls ? In designer or at the runtime in browser ?
|
|
|
|
|
Hai prasanna
U do this --Go to Tools-->Options-->here u willl find a herarchy of Options like Environmet,Performence tools,....HTML Designer click it---->Choose
CSS Positioning-->Check both the checkboxes -->click OK
now u can place the controls where ever u want
|
|
|
|
|
Hi Yuvachandra, Thank you for your reply
|
|
|
|
|
I am new to asp.net 2.0 and i am badly confuse....Any help which can point me in a correct direction...
When we should use SqlDataSource and when we should ado.net datareader etc...What are the criteria to choose.....
Please help...
Amit
|
|
|
|
|
The SqlDataSource control allows a developer to access data stored in any relational database that supports ADO.NET. It can use the System.Data.SqlClient provider to access a SQL Server database, the System.Data.OleDb provider, the System.Data.Odbc provider, or the System.Data.OracleClient provider to access Oracle. Therefore, the SqlDataSource is certainly not only used for accessing data in a SQL Server database.
In order to use the SqlDataSource, you simply provide a value for the ConnectionString property and specify a SQL command or stored procedure. The SqlDataSource control takes care of working with the underlying ADO.NET architecture. It opens the connection, queries the data source or executes the stored procedure, returns the data, and then closes the connection for you.
Regards,
Satips.
|
|
|
|