|
can you write the exact code to use the emptytemplate?
|
|
|
|
|
if (gridview.EmptyDataTemplate == true)
maybe this
|
|
|
|
|
Why are you using gridview1 and button1 as variable names ? This isn't real world code, you're just playing about ?
Nada Adel wrote: My problem is the I'm using a sql datasource so I have no dataset or datatable to check against if no data is returned.
That stuff is nasty to begin with.
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'm actually using other variable names, these names are only to point out my problem. Do you have a solution for my problem?
|
|
|
|
|
Hi All
I have a Web Solution contain Asp WebSite project & Asp web service
and when i Add web refrance to link web service with the website
it gives me this error
but i don't know wht is this error reffer to
-----------------------------the error------------------
Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface.
Kareem Elhosseny
|
|
|
|
|
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
|
|
|
|