1
Answer

More than 1 applicaionid, roleid etc. old users can't login

r p

r p

16y
2k
1

Hi,
I am in the process of developing my website step by step.
I finished the first step for registration in the month of November and
I created a virtual directory called - 'NovemberSite' in my live server and also created a database called 'Novembar' 

then hosted the site. Users stared to register.

I finished the next stage in December and I deleted folder of 'NovemberSite'
and the database 'November' created another virtual directory called
'DecemberSite', then copied all the oldfiles from Novemberfolder and updated files to the DecemberSite.
I created a database called 'December' I moved the tables, stored procedures etc beginning with 'aspnet_'
to the December database from November database
using Database Publication wizard.

I did the same in Jan. I copied all the files of
DecemberSite folder and December database to JanuarySite folder and January database together with the
latest updations.
Now, recently, I got complaints from users who registered in November that they can't login to the site.
I opened the latest database -January and I could see the same role administrator is entered 3 times
(because each time when I chaged database I had to create roles.) in the aspnet_Roles.
I could see 3 different application names in the 'aspnet_Applications'(I used to modify application name
in the web.config file). I can see all the users who registered from Novermber in
aspnet_Users table
of January database. I think when I changed the folder and database,
the roleid and applicationid may have changed and this may be the reason why
my users who registered in Novermber could not login.
Now, I am planning to create a final virtual directory - MYSITE and keep all the files in that directory
and a final database called MYDB and keep always registration in that folder. But,
How can I make application id, role id etc for all users as per the latest copy of the database?
Thanks

Answers (1)
0
Vulpes

Vulpes

NA 98.3k 1.5m 11y
To center the column header text, you can do:

dataGridView1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;

To set all the columns to the same width, I think you'll have to set them individually as I can't find a property to do this 'en bloc'.
0
viva

viva

NA 27 22.3k 11y
thanks for your reply but I didnt get HorizontalAlign="Center" in HeaderStyle and ItemStyle

Can you please answer it specifically for datagrid view? and wherethese settings are??
0
Kiresh Gangariya

Kiresh Gangariya

NA 214 1.8k 11y
try to give HorizontalAlign="Center" in HeaderStyle and ItemStyle