|
Thanks for your Replay, If you have code or example and Post here, it will better for Me
Mohan balal
|
|
|
|
|
Just try yourself there are lot of articles there.
If you get any error means, tell your error, we will solve your problem.
Regards,
Satips.
|
|
|
|
|
Hi Mohan,
Check for the below code.
Datagrid.Databind
'After binding the datagrid
Dim item As DataGridItem
Dim i as integer=0
For Each item In Datagrid.Items
i+=1
item.Cells(0).Text=i 'Where item.Cells(0) is the first column in your datagrid if you have kept for serial number.
Next
'---------------------------------------
Or you can append the value of "i" while you are using datatable when you fill it with datareader.
Regards,
Raghu.
|
|
|
|
|
Mkanchha wrote: Thanks for Your Replay. Where to Write your code I'm using ASP.NET 1.1
Code behind File or HTML view code.
Are you a Student or an Employee?
Regards,
Satips.
|
|
|
|
|
Please tell me the difference of...OLEDB vs SQLClient..which one is better and why?
Sujit
|
|
|
|
|
these both are providers for different types of database access.
SQLClient is a provider specially optimized to work with MS SQL server, and is very well recommended to use with sql server.
on the other habd OleDB is used with MS ACCESS.
The choice is entirely yours, as to which database you want to use. accordingly u will have to chose the provider
Kunal
|
|
|
|
|
Hi To All
In my Application I want Add the file to database from webpage but I need to Drag and Drop the file to the webpage then It Should Upload to the Database. Any one Can help me
Thanking You
Sunil Tvl
|
|
|
|
|
Sure - what have you tried so far?
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
Hi all,
Can you please explain the proces of deploying a web application.
My application has used crystalreports, html pages images,.js files, usercontrol and mainly we used third party controls.....
Thanks in advance....
Hari
|
|
|
|
|
go to IIS configuration and create a new VIRTUAL DIRECTORY.. follow the wizard steps.. and u will deploy your application.
to access your web site, go to IE and in the location bar typre
http://localhost/websitename
hope it helps
Kunal
|
|
|
|
|
|
hi freinds
I have one xml file which has many elements
I want to use query string to get perticular records from xml file.
Is it possible for xml?
Can i use same way for dataset.
Thanks in advance
pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi All,
I need to upload a file using drag and drop functionality.How can I do this ? Please Help me.
Thanks and Regards
Narendra
|
|
|
|
|
Can anyone help me? I currently using (ASP.NET + VB.NET) with Database (Ms Access) , i have retrive record with command "ExecuteReader()" after this it will show all record depend on database, but want to display 10 reocrds per page, please help me
Thanks
Socheat
................
|
|
|
|
|
Use a datagrid and set the pagesize as 10 for the datagrid. Then bind the datagrid. Note that if you are using datareader , you can't do paging in datagrid. For that use datasets.
|
|
|
|
|
What about ASPRepeater, can i use pagesize, if can help give me an example.
Thanks
Socheat
................
|
|
|
|
|
Hi,
Repeater doesnt support paging. so better u use datagrid of gridview as both of them having functionality of paging which reduce a lot of coding overhead.
And if you are stick to use repeater then you have to put separate linkbuttons to navigate between pages and write your own logic to fetch data from the database to display in the page. This idea is I think not good to implement as per my experience.
I hope you got the idea.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
First make AllowPaging="True" and PageSize="10" and use this:
Protected Sub GridViewUser_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridViewUser.PageIndexChanging
Try
GridView1.PageIndex = e.NewPageIndex()
BindGridView()'Bind GridView
Catch ex As Exception
End Try
End Sub
Hope this helps u...
|
|
|
|
|
I don't understand, what is GirdView1? if i using ASPRepeater, where i can use next link or previou?
................
|
|
|
|
|
a gridview control is found in the ASP 2.0 version under the "Data" header of the toolbox.
if u r using ASP 1.1 the name would be "Datagrid".
these controls are pre coded to display data, allowing you to page, and even support update commands directly..
A repeater is a type of a template control, wherein you specify the look and feel of the control, and along with it do pretty much coding to display data.and the paging functionality would also have to be coded...
so, its recommended to use the DATAGRID or GRIDVIEW..
i hope u get the idea now..
Kunal
|
|
|
|
|
Yes i got it now, if i have more i'll contact u.
Socheat
................
|
|
|
|
|
GridView control is present in the ASP.NET 2.0 which replaced datagrid control in ASP.NET 1.1
Yes you can use repeater control for the same
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I have been attempting to add a Confirmation Popup to a Button that comes from a ButtonField in a GridView. I have successfully identified the Button and added the Javascript with the code below. When I press the Button, a Confirmation Popup comes up with the "Ok" or "Cancel" buttons as usual. The problem is that when I press the "Ok" button….no post back is made. I can't figure it out. Is there some kind of special consideration that I missed with adding this kind of confirmation to a Button from a ButtonField?
Private Sub gv_MaterialGrpLegacy_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gv_MaterialGrpLegacy.RowDataBound
...
Dim RowButton As Button
RowButton = e.Row.Cells(0).Controls(0)
RowButton.OnClientClick = String.Format("javascript:return confirm('Are You Sure You Want To Remove This {0}?');", "")
Thanks to all that have help me in the past, and those who can help me with this!
|
|
|
|
|
I am using this, and its working fine.
<asp:imagebutton runat="server" id="ibtDelete" imageurl="../images/icon_deletepermenant.gif" causesvalidation="false" commandname="Delete" commandargument="<%#Eval("SiteID")%>" alternatetext="Permanently Delete Website" borderwidth="0" onclientclick="return(confirm('Are you sure you want to delete this Website permanently?'))">
With Regards,
Mayank Prajapati
MCP, MCTS
Module Leader
JCTWeb India
www.jctweb.com
|
|
|
|
|
i am using this and its working fine
<asp:ImageButton runat="server" ID="ibtDelete" ImageUrl="../images/icon_deletepermenant.gif"
CausesValidation="false" CommandName="Delete" CommandArgument='<%#Eval("SiteID")%>'
AlternateText="Permanently Delete Website" BorderWidth="0" OnClientClick="return(confirm('Are you sure you want to delete this Website permanently?'))" />
With Regards,
Mayank Prajapati
MCP, MCTS
Sr. Software Engineer
JCTWeb India
www.jctweb.com
|
|
|
|