|
where i put this code sir?
|
|
|
|
|
Check in your previous post your answer "how i chk that dataset is empty or not. the table i want to show in gridview has 4 records"
And if you don't know where to put if condition then how can I know?!
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
You are assiging GridView1's DataSource two times using a DataTable and then a DataSet. Remove the line GridView1.DataSource = ds;
Your code should be like
da1.Fill(dataTable); <br />
GridView1.DataSource = dataTable; <br />
GridView1.DataSourceID = String.Empty;
|
|
|
|
|
thanx it works but give another error in
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex].Values[0].ToString() + "'";
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
when i click delete in gridview
|
|
|
|
|
Have you set the DataKeyNames property in the GridView?
Also you are checking DataKey value with RecievingDate columns in the Coupon_Info table.
Therefore check whether you have set RecievingDate to the DataKeyNames property of the GridView
|
|
|
|
|
Hope ma posting in the right place,,,
I have the following:
I installed VS2008, on a vista 64bit machine, on the first run of VS2008, it promots u to select the Enviroment to work in. i selected C++.
My question is, if i wana choose different enviroment like Visual Basic, how can i change the enviroment the next time i run VS2008???
Best regards,
0 will always beats the 1.
|
|
|
|
|
from file menu select new project it open a dialogue box, left side of that dialogue box have different options of languages u can easily change the environment
|
|
|
|
|
scorp_scorp wrote: Hope ma posting in the right place,,
No, this is not the right forum ! This is Forum for ASP.NET
|
|
|
|
|
Kindly Guide me where i can post for VS2008 issues.
Best regards.
0 will always beats the 1.
|
|
|
|
|
|
Thanks.
0 will always beats the 1.
|
|
|
|
|
how can i get the server HDD Serial No in a web application when it runnin from a client Machine.
and if that is impossible can you give me an idea please.
regards,
Live each day as though u'll die tommorow
|
|
|
|
|
AbouZeinab wrote: how can i get the server HDD Serial No in a web application when it runnin from a client Machine.
Why you need the HDD Serial no of Client System ? And its has nothing to Do with ASP.NET
AbouZeinab wrote: if that is impossible can you give me an idea please.
No ! its not impossible. You can do it using ActiveX Components , but It will work only on IE
Sorry for the last Answer.
Yes you can read the Server Serial Number. Check the Link provided by Navaneeth.
modified on Thursday, July 2, 2009 4:32 AM
|
|
|
|
|
Abhijit Jana wrote: Why you need the HDD Serial no of Client System ?
He needs server's not client's
|
|
|
|
|
N a v a n e e t h wrote: He needs server's not client's
My Mistake
|
|
|
|
|
|
Ok Thanks Guys i got it
it was just a security options in the ISS
Live each day as though u'll die tommorow
|
|
|
|
|
Hi everyone.
I am looking for a free library to add a forum to a web site.
It's for a fun club site i am starting with a friend of mine.
I'd like to hear your opinion on which is the best with good set of features. Some of the features i'd like to have are:
-ease of layout customization,
-the ability to translate it to my native language (greek)
-and use of ASP.NET membership provider.
Unfortunately the last couple of years my job required me to do flash & AS fulltime, so i straggle to catch up with the new stuff in ASP.net.
Thanks,
NKAst
|
|
|
|
|
Community server is pretty famous and I guess they got a community edition which will be free to use. Also have a look at Codeplex[^] and you will find many.
|
|
|
|
|
I have seen Community server in action and really is impressive, but i wouldn't go for a commercial product.
I have already searched the codeplex [the first place i visit for open source projects targeting C#], but I have no first-hand experience of any of those.
I would love to hear some opinions from people who had allready worked with a handfull of forums and settle to one or two.
|
|
|
|
|
|
Indeed, DNN seems to have many features i need.
Events, forums, galleries, all integrated under the same system.
|
|
|
|
|
Hello All,
I want to get ClientID of Div tag in javascript so can you please help me for that?
i have declare div with runat="server".
-------- Javascript -----
var divId = document.getElementById('<%=Parent.ClientID%>');
but divId returns null
So can you please help me how i want to get clientID of div?
Thanks in Advance.
Anish Patel
|
|
|
|
|
anish27patel wrote: var divId = document.getElementById('<% = Parent.ClientID %>');
anish27patel wrote: i want to get clientID of div?
Just simply use
var divId = document.getElementById('YourDivID');
You need ClienID for Server Side control. And i believe your div is in your client side .
|
|
|
|
|
Thanks for quick response
but it's also return null
can you please help me out ?
for your more information my script in common palce like inside .js file
Thanks
Anish Patel
|
|
|
|