|
|
i found some javascript html eidtor that allows user to type text and then they can do bold,italic, and underline. I need to store this text in rtf format of the textbox/textArea. So i can display the formated string.
Is there anyother editor that does allows.
Any help would be appreciated
|
|
|
|
|
Hi netJP12L,
following are some RTF Textbox controls for asp.net
http://www.textcontrol.com/
Regards,
Swap.
|
|
|
|
|
Actually, i am trying to work with this editor. I liked it and wondering if it's possible to convert a string( bold,underline) on the editor to rtf formate or any format that preserved the string format.
Thanks
http://www.codeproject.com/jscript/htmlarea.asp?df=100&forumid=4685&select=1857366&msg=1857366
|
|
|
|
|
hi friends
i wish to write MCAD exam.they have specified the requirements as 3 exams to complete the certifications.should i have to write the exams at the same time or can i write it in some months gap.if i write the exam in the second mentioned criteria ,will i get MCAD certification
or MCP (plz clarify my doubt)
regards
saravanan
|
|
|
|
|
Your best bet is to check out the Microsoft Learning Site[^], and may ask the MCP regional support center for help. Btw, I don't see any words talking about the time required between the exams, also MCAD is quite old in my opinion, you might want to look for MCTS or MCPD.
|
|
|
|
|
I am trying to split a change amount into two parts, Bill Amt and Change Amt. Ex. (12.45) Here is the code that is not working even though it seems correct:
my ($ChngeAmt, $Paper, $Cent, @money)
@money = split(/./, $ChngeAmt);
$Paper = $money[0];
$Cent = $money[1];
Why is this code not splitting??
Ty
|
|
|
|
|
What language is this? Perl?
Jon Sagara
I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So i had to leave the place as soon as possible.
--Mr.Prakash
Blog | Site | Articles
|
|
|
|
|
Hi,
I am trying to view the report in web page using ReportViewer Control.
I need to Customize the Reportviewer control Tool bar using code.
I will appriciate if i get idea to customize the Next button in ReportViewer tool bar.
Thank You
saravanakumar
India
|
|
|
|
|
Hi
In your crystalReportviwer property u can set all the property of your report toolbar.(Ex-:HasCrystalLogo-False)
|
|
|
|
|
Hi,
Tanks for your reply,
I think you have not understood my query.
I am using ReportViewer control in ASP.Net 2.0 for Viewing SQL Server Reporting Service(SSRS) report. There is inbuilt toolbar for report viewer,But i need to Create my own toolbar by placing buttons over it so that it will perform same function as original toolbar.
I have written code for Print,Refresh and Parameter button in toolbar. It is working fine.
I need to write a code for Next and Back button in toolbar. It will be appriciable if i get idea for my requirements.
Thank You
saravanakumar
India
|
|
|
|
|
Is there an asp.net file download option that ONLY saves to the users harddrive & does not provide them with any option to immediately "Open" the file in their browser?
Our users have the option to download several files from our website so when they click "Download", they're presented with the typical File Download popup window that contains both "Open" & "Save" buttons.
There's one report in our system however that crashes whenever the user selects "Open". If they select "Save" to save it to their desktop, then it works fine however. So I want to eliminate the ability for them to "Open" this file in their browser and instead, just give them the ability to "Save" it to their harddrive.
How can I do this?
Thanks.
-Goalie35
|
|
|
|
|
You may try with the the DownloadOptions <META> tag:
<META name="DownloadOptions" content="noopen">
More information from here[^].
|
|
|
|
|
Thanks minhpc_bk.
That worked.
-Goalie35
|
|
|
|
|
Hi all,
I have some small divs which onmouseover generate a bigger div to display data inside , but i am unable to call a function in code behind.Here is what i did...
1.Made the div as server control.
2.In code i wrote..
Div1.Attributes.Add("onmouseover","Showbigdiv();")
3.public void Showbigdiv() is where i display bigger div.
But its giving an "Object expected" error.
I am a newbie,please help!!!
Thanks in advance....
-- modified at 10:47 Monday 22nd January, 2007
|
|
|
|
|
It's happening because the js and the codebehind only ever exist together when you're developing...normally, the codebehind exists on the server, the javascript in the browser. So when the browser encounters your mouseover attrib, it looks for Showbigdiv somewhere on your page. Since it's not there, (it's on the server) it can't find it, so Expects an object.
There are a couple of ways to get around this - you could make an out of band call to the server to get the data that you need, or if a postback isn't a problem, I tend to put a nmormal asp:button on the page, with its OnClick handler pointing to Showbigdiv, and visible set to false. Then in the page, define a javascript function similar to:
<br />
function handleMouseOver(()<br />
{<br />
document.getElementById (myAspButtonClientId).click();<br />
}<br />
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi,
Is there a way where I can set a button to validate ONLY 1 control? Instead of the whole page? I dont mean validation controls.. I mean "Causes Validation"
Thanks.
|
|
|
|
|
Dear All,
I created a web application using vs2005 and this is my problem
I want to control access per page and per user basis, futhermore i will do on groups basis later
What i want to do is to create a webfrom for the admin that lists all the webforms of the web application in a checkbox list or a lisbox control.
So after the admin picks a user he sets the "Allow/Deny" the user access to the page by checking or unchecking the items. I will later save to the database.
I installed the aspnet db to create and manage the users and for security but it only gives permissions per folder not per page so is there a way to exploit it?
So what i need is to know how to list the pages and how to manager security
Any keys would be apriciated
Thanx in advance
Best Regards
3ala2
|
|
|
|
|
You can do it in the following way:
You have a User Table: (UserID, Username, UserGroupID)
You have a UserGroup Table: (UserGroupID, UserGroup Description)
You have a Permissions Table: (PermissionID,Description)
You have a Link Table between the Permissions and the UserGroup: (UserGroupPermissionID, PermissionID, UserGroupID)
Lets say you have only 2 user groups: General User and Admin.
A user can be SET to be any of the 2 UserGroups.
Lets say you have 2 Webforms. Webform1 is for General Users and Webform2 is for Admin. Consider each webform like a seperate permission. So lets say Webform1 is PermissionID 1 and Webform2 is PermissionID2:
Permission Table:
=================
Permission ID ... Description
1 ... Webform1
2 ... Webform2
UserGroup Table:
================
UserGroupID ... Description
1 ... General User
2 ... Admin
UserGroupPermission Table:
==========================
UserGroupPermissionID ... UserGroupID ... PermissionID
1 ... 1 ... 1
2 ... 2 ... 1
3 ... 2 ... 2
So you can see from that table that General User is allowed permission 1, whereas Admin is allowed permission 1 AND 2.
After you set the figures in the database, At the top of Webform1 code-behind page, you will need to query the database by passing the session UserID. Use a VIEW of the Permission link table and the usertable. If the UserID has permission "1", then allow him to see Webform1. If he doesn't, then redirect him/her.
Do the same for Webform2. If the user doesn't have Permission "2" in the database, he will simply be redirected away.
HOPE THIS HELPS!
|
|
|
|
|
Thanx mate
what about listing teh webforms issue
how can i solve that?
Best Regards
3ala2
|
|
|
|
|
It is a very straighforward but very very long problem to describe. Please, rephrase your question to make it more precise.
|
|
|
|
|
i just want to list all the webforms names in my project "the aspx only" in checkboxlist or a listbox control. i want the dispalyed text is the webform name and the value is the full path for it
i guess i can do the rest of security issues
how can i do that?
Best Regards
3ala2
|
|
|
|
|
I'll explain what I did:
In addition to the above post, I had a webform which had a datagrid that displayed ALL the records for the different permissions which I have defined(recall Permission Table). Remember that EACH Permission represents a Webform, so there is no need to list the page. You can make the Datagrid entries hyperlinks to the weforms if you like.
You can add/edit/delete all the Permissions which you have on that particular webform, just like you can add/edit/delete user records and such, BUT.. EACH webform, EVEN the Permissions webform, will have hard code which will give different users access/denial.
for instance, lets say that in the Permissions table, you have the following record:
PermissionID = 9
PermissionDescription = Permission Webform
and the Admin User Record is:
UserID = 1
Username = Admin
UserGroup = 2(i.e. Admin)
and the UserGroupPermissions Record(in the LINK table) is:
UserGroupPermissionsID = 3
UserGroupID = 2(Admin)
PermissionID = 9
This means, logically, that the admin is linked to PermissionID number 9.
Now lets go back to the webforms. In the PageLoad even of the Permission Webform(which is what you are asking about), you will HARD CODE the following:
After creating a VIEW of the tables which show a link between Admin and the Appropriate PermissionID for the Current page, you will pass the UserID which should be stored as a Session variable as soon as any user logs in. Pass that ID through a SQL query and check whether the UserID in the Session variable HAS the Permission ID of the link table... IF YES, then Load the page, IF NO, then redirect.
You are asking about the webform itself I think. The Webform itself for this will be the same as any other webform for adding/editing/deleting records. Use a datagrid which should be bound with the information from the appropriate TABLES or VIEWS.
When you create a New Permission, like SiteMap Page Permission, you will HAVE TO HARD CODE the permission authorisation as described above, but this time for the SiteMap page.
I hope this answered your question.
-- modified at 9:24 Tuesday 23rd January, 2007
|
|
|
|
|
Thanx u so much
That was helpful and guess i'll do it this way
But still wondering how i can list the project files dynamically
Thanx again
Best Regards
3ala2
|
|
|
|
|
I have no clue there mate, my system did not need what you are asking for, and I havent explored that option lol..
Anyway, I hope you find your answer.
Take care.
|
|
|
|