|
In my website I want to give a feature to admin, that:
1. It can create an HTML content (including images) for a page and then save it.
2. Admin can create any number of such pages and mark them as active/inactive.
3. When a user logs in any random active page is displayed as her home page.
Can anybody suggest how should it be done.
Any help is greatly appreciated.
Thanks.
|
|
|
|
|
I think you then need to store the html in database and a handler that handles the aspx extension should be used to call the database for the page based on some id.
|
|
|
|
|
Would it possible to get a suggestion on which HTML editor be the best to use in this case.
Also, if I write a handler for aspx pasges wouldn't it affect functioning of other aspx pages.
|
|
|
|
|
joindotnet wrote: get a suggestion on which HTML editor be the best to use in this case.
There are lots of free html editors available over NET. .You can use anyone.
joindotnet wrote: I write a handler for aspx pasges wouldn't it affect functioning of other aspx pages.
Yes it would affect.. All the requests would be redirected to your custom handler. Just just need to Server.Transfer to the existing aspx files(if not from database).
|
|
|
|
|
I think writing a handler could cause configuration problems, my website is very large.
Is there any other suggestion for this.
|
|
|
|
|
i m using createuserwizard control with custom database.
i have hosted the same database and the application on two different machine (e.g one on my developing machine and another is testing machine) for testing purposes.
Now what happen when i create user using my machine database and application then works fine. but when i create user using my application and another machine database then user is created but when i login using another machine application and database it does not responded.
is there any application associated with users??
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Can u tell me the solution of this problem?
I am using GridView control to display data from AccessDataSource.
Is it also possible to edit the data in GridView Control while running the application?
Can I insert, delete and update data in the databse using these 2 controls?
One more thing I want to ask is:
I want to add one column in which I want to show a checkbox. and I want to update it while running in database.
plz help me as I am a newbie.
thanks
|
|
|
|
|
|
To all your Questions , the Answer is "Yes"
For the last Question , you can add a templateField and Add a Checkbox. like this
<asp:TemplateField HeaderText="Parent" SortExpression="Parent">
<ItemTemplate>
<asp:DropDownList ID="drplstparent" runat="server" BackColor="Transparent">
</asp:DropDownList>
< / ItemTemplate >
< / asp:TemplateField >
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
i ve take two textboxes so i want to compare both textboxes value and print a message that value not same like this with javascript so plz help me soon??????
thanks and regards vivek
|
|
|
|
|
Use CompareValidator with dialog mode
Regards...
- Amit Kushwaha
|
|
|
|
|
<script language="javascript"><br />
<!-- <br />
function checkEmail() { <br />
if (document.TheForm.Email.value != document.TheForm.EmailVerify.value) { <br />
alert ('The email addresses do not match. Please re-enter.') <br />
return false; <br />
} <br />
} <br />
<br />
Use the code and change the control anmes as required in your page, and then call the function on the click of the button.
|
|
|
|
|
You can use this:
function CompareValues()
{
var textBox1=document.GetElementById('ID_OF_TextBox1');
var textBox2=document.GetElementById('ID_OF_TextBox2');
if(textBox1.value!=textBox2.vale)
{
//do what you want
}
}
|
|
|
|
|
hi
while redirecting to a page in a web application i got this error
can any one help me to sort out this problem
Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.masterpage_master'.
Source Error:
Line 1: <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: C:\Inetpub\vhosts\shieldpro.in\httpdocs\MasterPage.master Line: 1
|
|
|
|
|
Rename the namespace,
delete all the old dll's out of the bin folder
recompiled and hopefully it will work.
Get back if it dosent work. Gud Luck
|
|
|
|
|
hi
thanks for your reply
i did it but it is not working
is there any other process
|
|
|
|
|
hi
i could not find the bin folder
in webapplication
and how to compile the site
|
|
|
|
|
compile your application again
then try
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Hi..
I m opening new window from my application and displaying acrobat file there like this
ClientScript.RegisterStartupScript(typeof(Page), "id1", "<script type=\"text/javascript\">window.open('AssFile.aspx', 'CustomPopUp', " + "'width=600, height=600, menubar=no, location=no, directories=no, status=no resizable=yes, scrollbars=yes');</script>");
///////////////////
Now, when i m doing it in my development machine everything works fine, but i have uploaded it to my development server and running through virtual directory.
what i observed is .. the acrobat file is displayed but in restored mode and i want to maximize this window but can not , because the maximize button is disabled. rest of the buttons are ok...
could u please guide me..
thanks,
hemant
By:
Hemant Thaker
|
|
|
|
|
Try:
maximize=yes
or
resizeable=1
|
|
|
|
|
|
Why dont you use Repeater to draw this.
Repeater can draw any html on the screen.
Use Nested Repeater to do this job.
|
|
|
|
|
thanks for your reply..
Though I dont have an idea on repeater, I will learn it and get back to you..
thanks again
-----------------------------
I am a beginner
|
|
|
|
|
Most welcome...
|
|
|
|
|
Hi to All,
Since, I am not so familiar with all controls, Could anyone please help me out, in choosing the appropriate controls for the requirements.
I am planning to create an richUI site with good speed(data retrival)...more or less a Social Network site....
Now, before I go ahead, I need to decide what controls to use and what not, for the main design (say a master page)....
So, in order to put all the links on the left side, and whatever data will be changing (say, something like scrapbooks or msges in orkut.com) on the main page.....what controls i need to use....For the left side links, i can use the accordian control...But what about my main contents (scrapbook/mails/something else, which will be changing according to the links on the accordian control) on the side??...should I put those in a Update Panel or an Update panel inside an ContentPlaceHolder?....
What about dividing the whole page into a table?....put accordian into left side, panels into the contentplaceHolder...?....Problem may occur when i resize the page...
Please advice me for the same...
-----------------------------
I am a beginner
|
|
|
|