|
ok i'll change the gridview name is it the solve for my problem
where the solution ???????????????????????????????????????????????????????????????????????????????????????
Kareem Elhosseny
|
|
|
|
|
Try This
String Str = GridView1.Rows[e.RowIndex].Cells[0].Text;
Bharani
|
|
|
|
|
my brother i make exactelly this code
Kareem Elhosseny
|
|
|
|
|
is there a problem when i make all column as a templet filed is this make the problem
Kareem Elhosseny
|
|
|
|
|
No, There wont be any problem if u Made all the field to be template
Bharani
|
|
|
|
|
The name just makes your code readable, it plainly won't solve the issue
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I know i spend more time in this problem and i dont know where is the error
here is my code again
the cell value return null again where is the problem
protected void grdSparepart_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
//my problem here the string be null WHY???????????
string spareid = grdSparepart.Rows[e.RowIndex].Cells[0].Text;
new DataAccess.Service().SparePart_Delete(spareid);
DataSet ds = (DataSet)Session["dataset"];
ds.Tables[0].Rows[e.RowIndex].Delete();
grdSparepart.DataSource = ds;
grdSparepart.DataBind();
lblmsg.Text = "delete ok ";
lblmsg.Visible = true;
}
Kareem Elhosseny
|
|
|
|
|
If you have DataKey attribute set of your GridView then you know:
GridView1.SelectedIndex = e.RowIndex;
In that case you know the GridView1.SelectedValue and that is your DataKey.
With that value you can do a delete in the database and after that reload your DataSet ds and Databind() it to GridView1.
Have Fun
|
|
|
|
|
i am working in .net2.0
i am getting the imageURL from database and store this value in a variable
how call this variable in design page image src . my img is html control it is not a server control
with out using cookies , session
my coding like
.aspx.cs file
borderimage="images/br.git";
.aspx
<img src="<%=borderimage%>" />
but it dose not working
please help me
with regards,
bretto
|
|
|
|
|
Any errors are you getting ? if so the whats the error could please write here !!!
Thanks,
Arindam D Tewary
|
|
|
|
|
hi it display error like this
The name 'border_tr' does not exist in the current context
with regards,
bretto
|
|
|
|
|
and what is border_tr ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
brettokumar wrote: The name 'border_tr' does not exist in the current context
but where are you using this variable ? I can't see this in the code given.
|
|
|
|
|
brettokumar wrote: but it dose not working
What does 'does not work' mean ? Does it compile ? Does it create HTML ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
complie error
with regards,
bretto
|
|
|
|
|
I want to develop a website in multilanguage by ASP.NET 2.0 and Backend Sql Server 2005.Can u give me Idea. How can i develop this type of site
Vishal Rastogi
|
|
|
|
|
Any string you use, should be stored in a resource, and then you create resources for each language. That way, you just swap out the resources.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
hi,
border in gridview for every row is not visible in IE but its visible in firefox.......how can i set border for all rows in grid view
Ashok
|
|
|
|
|
Set the gridview property bordercolor and border width.
Thnx
Rasma Raj
|
|
|
|
|
ya
i ve set the gridview property for Rowstyle=BorderWidth; but its not supporting in IE . but it works in firefox
Ashok
|
|
|
|
|
you can set a class for Gridview like this style
.GridStyle{border-collapse:collapse !important;border:solid 1px #e0e0e0 !important}
and set GridLines="Both" for your gridview...
|
|
|
|
|
How I can impliment virus scanning for Attachment ?
Got ? Give...
|
|
|
|
|
Well, when you get the attachment, save it, and scan it. Find a virus program you can control through code.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Well , Ha Ha Ha
You can implement in your website
Any solution from others ?
|
|
|
|
|
Well, are you asking an ASP.NET question ? Or are you asking how to write your own virus scanner ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|