|
Try this:
HyperLink hlink = new HyperLink();
System.IO.StringWriter sw = new System.IO.StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
hlink.ID = "ZoneLink";
hlink.Text = "TestButton";
hlink.NavigateUrl = "Default2.aspx";
hlink.RenderControl(htw);
Response.Write(sw.ToString());
|
|
|
|
|
This one I have Already tried. The things is that the HyperLink is Not Causing the CrossPage postback. I need cross Page PostBack
|
|
|
|
|
For moment i don't have any idea. Could you please write more code here to see how can we fix that
|
|
|
|
|
|
Im trying to put my ASP.Net application online but I just keep getting "You are not authorized to view this page" errorpage (error 401.1).
Heres what i have done:
-Placed the complied ASP.net application and its files to D:\mypage\
-Created a virtual folder in IIS 5.1 called mypage and selected correct ASP.Net version (2.0.50727)
-Directory security is set to anonymous access (using IUSR_machinename). No integrated windows logon is selected.
Now when i try to open from client side http://client IP/mypage/ i get "You are not authorized to view this page".
Im out of ideas. When I did the same on my local host everything worked fine.
Thax in advance
|
|
|
|
|
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
|
|
|
|