|
How to Display Roles in User controls.
|
|
|
|
|
mohanbalal wrote: How to Display Roles in User controls.
What does it mean? Can you be more specific?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
I want to assign Roles to user while creating User account using User control. Not using Administrator Control pannel.
Can I call Administrator control pannel from Hosted site.
|
|
|
|
|
Use this to get all roles: Roles.GetAllRoles
Then loop through the values and add them to a checkboxlist or some other control
When the user is created, loop though the checkboxlist and add the roles to the created user
Alexei Rodriguez
|
|
|
|
|
how to disable close(x) button in a pop up window using javascript
|
|
|
|
|
javascript : document.getElementById('btnid').disabled = true;
this will do
|
|
|
|
|
Abhishek Sur wrote: javascript : document.getElementById('btnid').disabled = true;
this will not disabled the popup Close[X] button. .
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Oh .. My bad..
I have overlook on the Window close button.
Windows close button cannot be disabled.
|
|
|
|
|
It is not possible to disable the close(X) button of the pop up window using script.
|
|
|
|
|
Hi,
Are you talking about the standard javascript alert window or something customized one. If it is JavaScript one then I would say that its not possible but for customized one you can do it using document.getElementById(controlID).style.visible = false.
Either you love IT or leave IT...
|
|
|
|
|
Hi friends
i am using asp.net 3.5 i written mail sending functionality , sometimes i am getting following error msg
Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
can any one help me to fix this problem.
thank you
|
|
|
|
|
mayby you could post your code su we can see what the problem might be.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Before delivering the mail, handshaking[^] is happening and you are getting error there. So I believe, this could be a server issue.
|
|
|
|
|
Hi,
For JS i need the image button id which is in EditItemTemplate.I got the id which is in FooterTemplate by using
gvDataBase.FooterRow.FindControl("ibtnSave").UniqueID
Pls anyone tell how to get that id..........
|
|
|
|
|
(ImageButton) imgBtn = (ImageButton)e.Row.FindControl("YourImageButtonID");
EditItemTemplate is in your GridViewRow object!
In Word you can only store 2 bytes. That is why I use Writer.
modified on Tuesday, April 28, 2009 9:35 AM
|
|
|
|
|
Hi
i Have a application in which i have to sync two database from two other site Can i use two web.config file in one website
|
|
|
|
|
You can use more then 1 connection string with different key in single web.config file
|
|
|
|
|
But i have to change the Membership and role in both database
|
|
|
|
|
Ravi_21 wrote: i Have a application in which i have to sync two database from two other site Can i use two web.config file in one website
Yes. you can use multiple web.config file in your application. But, in this scenario, you don't need to use multiple web.config.
You can create multiple connection string for different database.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
HI
my requirement is different i have two website both have registration form i now i have to sync the data of both website
i have one another website which have the admin section through which i approve the Users that are register in both the two website
i m using asp.net membership and role
here is the problem
|
|
|
|
|
hello,
i have two textboxes on my web page. When focus is on 1'st textbox the input language was English when focus comes on 2'nd textbox and user want to enter the text the language was chinese...
If any one have the solution for it.. please help me.
thnx. in advance..
|
|
|
|
|
Following link can be useful for your problem:
http://forums.asp.net/t/1134838.aspx
Either you love IT or leave IT...
|
|
|
|
|
hi , i try to draw a virification image on my page
and i try some code and it worked alleady but the problem is all controls on the page not display
i want to draw this but without i lose the page controls
here the code i wrote
// Initialize graphics
Rectangle rectF = new Rectangle(0, 0, 100, 150);
Bitmap pic = new Bitmap(100, 150);
Graphics g = Graphics.FromImage(pic);
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
g.FillRectangle(new SolidBrush(Color.White), rectF);
//g.DrawRectangle (Pens.Aqua , rectF);
Font font = new Font("Times New Roman", 12);
// Set font direction & alignmentString
StringFormat format = new StringFormat();
format.Alignment = StringAlignment.Center;
// Finally, draw the font
g.DrawString(GenerateRendomText(), font, System.Drawing.Brushes.Black, rectF, format);
//Response.ContentType = "image/jpeg";
// Set the content type
Response.ContentType = "image/gif";
// Output the image to the OutputStream by using the Save method
pic.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
// Dispose objects
pic.Dispose();
MD_NADA
|
|
|
|
|
GenerateRendomText()?
do you have a try/cach around this structure?
And does the catch nog get reached?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I am looking how to flip pages from thumbnail of a pdf or doc or rtf files in a particular folder.
I hope this is the right place for this post.
Thanks In advance
MJ
|
|
|
|