|
Hi Friends,
I have a GridView in which the row or the data is getting selected on the checkbox click.
I want to enable paging in the GridView such that when i go to next page then the previuos selection
remains as it is...means i can perform operations on current selection as well as previous selection.
Do anyone have any idea?
Thanks in advance,
|
|
|
|
|
I'm not sure if you can do that
Paging is a custom tool for asp.net and therefore may be hard to manipulate
Can you explain a bit more about what the problem is, might be able to think of another solution
|
|
|
|
|
yeah sure!
I have GridView, in which there is a checkbox control on teh selection of which i performs some operations like download the data etc.
Now i ahve a no. fo records in the GridView and I want to do paging,
and if i select 1 and 3 records on page 1 by checking the checkbox and goes to page2
and select record say 8 and 9 from page to and I click the download button
It should download records 8 and 9 as well as 1 and 3 which are from teh previous selection.
I do not want to lose the checkbox selection if i navigates from page to apge.....
|
|
|
|
|
you could try storing the values in a session, i.e. put the checked rows ID in a session and then when the user clicks the button it then downloads all things that match the row id values
|
|
|
|
|
Sorry!
but i m not getting it,can please explain in detail
see I am nto able to do paging,since i m binding the GridVeiw manually
like gdview.datasource=some dataset
gdview.databind()
now the code in PageIndexChanging is
protected void gdview_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gdview.PageIndex = e.NewPageIndex + 1;
gdview.DataBind();
}
now when i run teh app. and go to page 2 on GridVeiw it doesn't show the next record
and when i debug after placing the breakpoint at
protected void gdview_PageIndexChanging(object sender, GridViewPageEventArgs e)
it goes to some Deassembly tab
D:\AjaxControlToolkit\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs
like this........
|
|
|
|
|
|
Hi
how to use the c and vb coding in .net web application . send some example
|
|
|
|
|
Am I the only one who doesn't understand this post?
|
|
|
|
|
how to use c codings and vb coding in .net
|
|
|
|
|
Can't u user .net in your application?
|
|
|
|
|
Ah, the age old classic, on being misunderstood, repeat the same question. You should really have put it in capitals to grind it into the reader's brain.
|
|
|
|
|
yes I think this person needs to explain a bit more what their problem is
|
|
|
|
|
If you mean, how can you use C# and VB.NET in the same web app, you can mix languages between pages, but not in the code behind. Either way, I would suggest you do some basic reading, because you appear not to know enough about the topic at hand to ask a question that makes sense.
C and C# are two different things.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i wrote one program in vb 6.0 language (not vb.net) . i want to use that program in my c# application or vb.net app without migration
|
|
|
|
|
VB and vb.net are quite different but VB and C# are very differnet
I think you will need to write the app again but in vb.net, this shouldnt be too hard
|
|
|
|
|
i have a webpage that use javascript that call some method in a webservice, the webservice is registered into scriptManager of the masterPage of my web application. the page works fine at the begining and after while its not working, i dont know why, all javaScript that use webService methods is stopped even the links of the menu (the menu is created dynamically using a webService to get the links that the user is able to access),iam using kaspersky antivirus. i tried to stop the anti-virus and its work fine then, i could not understand the relationship between the antivirus and the webService or javaScript? and i dont know if its true that the problem is with kaspersky? if so, how could i deal with running antivirus? if not then where is the problem ?
and thanks
Programming is away of life
|
|
|
|
|
|
You should jus put the image inside a link or inside a button then use the onlclick from there
|
|
|
|
|
give commandArgument to image button.
protected void Image1_Click(object sender,ImageEventArgs e)
{
string s = Image1.CommandArgument.toString();
}
Best Regards,
Chetan Patel
|
|
|
|
|
I have a buttonfield in a gridview control.I want to retrieve the value of the buttonfield when we select the buttonfield.How is it possible.I tried ,but i cant retrieve the buttonfield value.
string s = GrdAdmnCriteria.Rows[RowIndex].Cells[2].Text;
i do like that.in the 2 cell of grid the buttonfield.but it will retrieve nothing what is the treason
|
|
|
|
|
use commandArgument
private void Button1_Click(Object sender,EventArgs e)
{
((Button)sender).CommandArgument.ToString();
}
Best Regards,
Chetan Patel
|
|
|
|
|
Hello friends...
In my applicatioin i have to upload images without using file control bcoz i don't want to show a textbox and button, insted i want to show a simple image on click the browse window should open.
For that what i have done i have used file control as a hidden field and called its click event on the image click......
Its working fine but i have to upload this image also on the server for that i have written code on the buuton1Click event.
now i have a function which takes the id of these two controls and called its click event one by one..
My problem is that if i have button_click event first and file_click event second both the event fired..
but as per the requirement the file_click should fire first in this case button_click is not firing...
What should i do now...
Help me plzzz
Deepak Nigam
|
|
|
|
|
You cannot do what you want to do. The best you can do, is to find a way to style the button that is part of the file upload control, to be the button with the image on it. Your browser works hard to stop you from interacting with the file upload control on the client side, for security purposes.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have created a class that returns a class object which have info about the username,pwd,emailid of current user.
Now i want to use this email id in my aspx.cs page to show the current logged in user and its email id....
i m creating an isntance of that class and using that to get the user email...
but i m getting null...
anyone had any idea?
Thanks in Advance,
|
|
|
|
|
your obviously not setting it at the right time, read through your code and make sure the username is declared and avaliable before you set it to show to the current user
|
|
|
|