|
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.
|
|
|
|
|
Is attachment through asp.net fileupload control outside asp.net ?
Well.
I mean the virus scanning like, Mail attachment.
|
|
|
|
|
Masood Kochi,SSF wrote: Is attachment through asp.net fileupload control outside asp.net ?
What do you mean ?
Masood Kochi,SSF wrote: I mean the virus scanning like, Mail attachment.
Virus scanner programs may provide some APIs which can be used to scan files through code. If you are looking for a free one, I don't think there would be one.
|
|
|
|
|
Hi , i have a problem . suppose that i have to purchase some items(a single entity) and a group (contain another group or items) , and all items , nd group has unique serial no . let suppose i purchase 3 items
X(3) , y(2) , z(2) .. in this X is a group and in this group 2 items
X(3) ---> A(2) , B(1)
y(2) --> c(3) ,
Z(2) --> d(1)
suppose A is a group which further contains 3 items E(item)(2) ,
F(item)(1) , G(group)(1).
and may b there is onther group under G .
now i have to enter unique serial no. for every element .
(in brackets there is a quantity of a item or group)
Thanx in advance .
|
|
|
|
|
If your items are represented by a class, adding a serial number property will do what you want. Beyond that, I'm not sure what you're asking, or how it relates to ASP.NET ?
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.
|
|
|
|
|
ORDER__
|- X(3") -->A(2")-->B
| -->C
| -->D(3)
|- Y(1") -->E(1)
|- Z(2") -->F(1")-->G(1)
-->H(1")-->I(3")-->J(1)
-->K(2)
" represent group which contains another group or item .
--> represent items under
() in bracket dgit represnt quantity fot particular product .
Now i have to assign unique serial no to evert quantity .
|
|
|
|