|
hai,
currently i m using asp.net with c# (.net 2005, 2.0 framework).
here i m trying to merge two dataset column wise and the column count,table name same.
for example, i use two dataset ds1 and ds2.
ds1 contains A,B,C,D column.
ds2 contains E,F,G,H,I,J column.
i need the resultant in gridview as A,B,C,D,E,F,G,H,I,J
Note : always the Rows will be equal in both ds1 and ds2 dataset.
how to achieve it? - KARAN
modified on Monday, June 30, 2008 2:59 AM
|
|
|
|
|
It's always good to look documentation before you post something. See here[^]
|
|
|
|
|
Seems this fell on deaf ears, he just repeated the question.
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 i want to disable the back button for ie...,
My enduser cant go previous page using that back button...,
How to do that...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
You can't. People who ask this, are usually asking because their permissions system is broken. If you build a persmission system properly, you will store a key in the session to tell you the user is logged in. If they log out, this is cleared, and every secure page will redirect to the login page if you browse to it and the session object is not set to tell you that a user is logged in.
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 i am using session on my forms,
Using user only i am doing all those things..,
So i cant abondom session...,
So i looked in js...,
They given this script,
Its working cool,
Becoz of this my session will get any probs?????,
Still now i didnt face any session probs of this script...,
But i like to confirm it,
Plz tell me can i use this script to avoid go back operation in my browser...,
This script i called in all the page body onload event:
function disable()
{
window.history.forward(1);
}
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
The only thing that might affect you is people can turn javascript off in their browser
We are not a Code Charity
|
|
|
|
|
New one wrote: This script i called in all the page body onload event:
function disable()
{
window.history.forward(1);
}
This might work. Sometimes. Anyone who wants to defeat it, can. Trivially. So, write good code in the first place, and you won't need this.
New one wrote: Hi i am using session on my forms,
Using user only i am doing all those things..,
So i cant abondom session...,
This makes no sense at all. If a session object marks that a user is logged in, of course you can abandon it. The session is unique per user, that's why you use it in the first place.
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 don't know how to disable 'back' button,
but,
I have a idea ....
suppose, u have 10pages as 1.aspx,2,3,....9.aspx
now the user moves from page 3.aspx to 4.aspx
now, when the user arrives at 3.aspx, use Session["pagenumber"]="3";
when the user navigates to page 4.aspx, change it as Session["pagenumber"]="4";
at the entry of each page (in the page load function) check this entry !
|
|
|
|
|
hi all,
I just want to retrieve the cell value from the gridview using the following
code,but it returns nothing null
plz help me
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int index = e.RowIndex;
//here to delete in data base
//the problem in the next code this string (spareid)carry null
string spareid = GridView1.Rows[index].Cells[0].ToString();
new DataAccess.Service().SparePart_Delete(spareid);
//here to delete in dataset to reflect in gridview
DataSet ds = (DataSet)Session["dataset"];
ds.Tables[0].Rows[index].Delete();
GridView1.DataSource = ds;
GridView1.DataBind();
//here notification for delete
lblmsg.Text = "delete ok ";
lblmsg.Visible = true;
}
plz help me i dont know where is the error
thanks in advice
Kareem Elhosseny
|
|
|
|
|
Is your page load interacting with your grid at all ? If you look at this code in the debugger, do any of the cells have data for that row ? For any row ?
Tell me it's not really called gridview1 ???
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.
|
|
|
|
|
|
No, that won't cause it, perhaps you could answer my questions ?
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.
|
|
|
|
|
Dear friend;
my question why the cell carry null value ?
i make all solution but it also carry null
Kareem Elhosseny
|
|
|
|
|
I can't answer you, because I asked you questions to try to work out the problem and you did not answer them.
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.
|
|
|
|
|
Christian Graus wrote: Tell me it's not really called gridview1 ???
. Last week I was invited to one company for checking their code and giving some advice for their project. I can see a gridview named as gridView256 ! The page which they wrote contained 256 gridviews and all named like gridview1 .. 256. What a disaster !
|
|
|
|
|
im not using any server controls
with regards,
bretto
|
|
|
|
|
I also face that type problem. at that time i change the cell index even the original cell index is =0, Try this ..
|
|
|
|
|
Are you binding the grid in the page load ? make sure you are doing it inside "!IsPostBack" blocks.
elhosseny wrote: string spareid = GridView1.Rows[index].Cells[0].ToString();
It's not safe to do the above. "Rows[index]" returns a row instance which may be NULL or the cell may be NULL. Check it is NULL, if not proceed with delete.
|
|
|
|
|
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.
|
|
|
|