|
hope this will help
create a static variable
if u have enabled paging in grid then
in pageindexchanging event set the static variable to e.newpageindex*5(no:of rows per page)
in row_created event
if(e.row.rowindex>0)
(LinkButton)e.row.cells[1].controls[0]).text=Convert.tostring(e.row.rowindex+1+staticvariable)
|
|
|
|
|
You should have a column say S.No in gridview as
<template column="">
Best Luck
Faiq Afridi
|
|
|
|
|
Hi,
Could anyone point me in the right direction.
I have a procedure that populates a DataSet with details from a database, it uses connections, dataadapters and commandbuilder objects. The DataSet is then stored in the session object and displayed to the user for editing etc (this might be done on different pages). At a later stage the changes made by the user need to be updated back to the database using a different procedure, do I need to use the same dataadapter / commandbuilder / sqlcommand objects I originally used to create the DataSet, or can I simply create new ones in the second procedure?
Thanks
Tim
|
|
|
|
|
I would create new ones in a second procedure.
Ben
|
|
|
|
|
Thanks Ben,
I wasn't sure if the DataSet object had some sort of connection / memory of the objects that created it, and thus needed the same objects for updating the database.
Cheers
Tim
|
|
|
|
|
I am using asp.net login control for authentification. How to delete users that are registered?
Thanks!
|
|
|
|
|
There is a aspnet_membership table. Find the user based off email and delete them.
I would delete based off userid
Select * from aspnet_membership where email = 'puttheiremailhere'
Then based off the userid returned
delete from aspnet_membership where userid = 'thisisaGUID'
NOTE if you didn't want to delete the logins, but wanted to disable them there is a IsApproved flag that you can set to 0. This is also the table to check if they typed their password too many times and locked themselves out. There is a IsLockedOut flag as well.
Hope that helps.
Ben
|
|
|
|
|
I think using Membership.DeleteUser(username); is easier.
|
|
|
|
|
how to connect ASP.net and COM+ which are running in two machines?
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi all,
Am using editor and multiline textbox.user selects one of it by using radio button.I used 2 required field validators,to validate those 2 controls.
Its all fine upto here.In the button click event,in Internet explorer its working fine by displaying appropriate error message, but in mozilla it is showing two error messages at a time.
I hard coded these validators visibility to false in the appropriate radio button selected value loop.
Pls guide me any other way to forward
Have a Nice Day Dudes
|
|
|
|
|
All I have to say is what the F**K was microsoft thinking when they made the textbox component this way. Microsoft left no easy way to trap the error code coming off a detected client side script attack. It makes no sense that there is no event to capture when a detected validation has failed. The work arounds to make something as simple as string x = Textbox.Text; is rediculous. If you work at Microsoft and you read this all I have to say is EAT MY ASS!
nothing
|
|
|
|
|
The time shown at the bottom of the page in Last Visit is : 6:22 Monday 2nd April, 2007. But the actual time (in India) was 4:15pm Monday 2nd April 2007. The later is the same date/time on pc as well at that instance. What could be the problem? How can I obtain the time/date from the zone where the client is located?
|
|
|
|
|
Hi all,
I am showing a tooltip generated by javascript on mouse over of a datagrid cell.The problem i face is that i am not able to go to next line and the tooltip spans the entire screen.I tried inserting a "br" tag but it is displayed as it is .How do i achieve this!!!
Pls help...
|
|
|
|
|
Try building a string using the string builder!!
Gautham
|
|
|
|
|
error on stringbuilder .No such class!!!
Which namespace to use???
|
|
|
|
|
|
Javascript newline character is \n
|
|
|
|
|
<authentication mode="Windows">
<identity impersonate="true" username="registry:HKLM\SOFTWARE\MY_SECURE_APP\identity\ASPNET_SETREG,userName"
password="registry:HKLM\SOFTWARE\MY_SECURE_APP\identity\ASPNET_SETREG,password">
runtime error:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Error reading configuration information from the registry.
|
|
|
|
|
I want to create url for persons.
Suppose a person picks url name as amit..then url will be www.xyz.com/amit.
I taken one field as url in database. Now the problem is when I will type www.xyz.com/amit in browser my home page should be displayed..How to do this..?
|
|
|
|
|
Hi
You can keep any one file with file name from default.htm,default.html,index.html,or home.htm.
Then you can keep this file as home page or can redirect to the home page.
Working:
The IIS will search for the default file if we didn't specify the exact file name. We can set the order of search for the default file in the IIS.
Gg
|
|
|
|
|
hi
How will we create a Timer application in asp.net
thanks
|
|
|
|
|
sorry, i don't think, it will be very easy to create timers. better you apply javascript or caching
Regards
sebastian
|
|
|
|
|
You can try Microsoft's Ajax toolkit a timer is given there.
|
|
|
|
|
Thanks for ur reply
I will check out that...
|
|
|
|
|
Hi all,
Can we add HTML pages frameset in an ASP.NET 2.0 application. If Yes Please tell me how? If not is there any alternate method. Actually i would like to display two "aspx" pages in a single explorer window.
I hope you people can help me.
Thanks in advance
Sebastian
|
|
|
|