|
the problem is how can i browse the pages of my published website at localhost. in 2005
Soniagupta1@yahoo.co.in
|
|
|
|
|
its simple in browser address bar type " http://localmachine IP address/websitename" e.g. http://192.157.1.12/test
prabhakar
|
|
|
|
|
one more thing dont forget to add the startup page name with aspx extension in website virtual directory if startup page is not default.aspx.
prabhakar
|
|
|
|
|
kaushal_prabhakar wrote: one more thing dont forget to add the startup page name with aspx extension in website virtual directory if startup page is not default.aspx.
This is simply unwanted suggestion for the problem since we can browse directly specifying file name.
|
|
|
|
|
if u can browse directly then kindely do it.
prabhakar
|
|
|
|
|
what name have u given will publish the website in IIS and while creating the Virtual directory? the name you created in virtual directory is used for local browser and also check the home directory whether it refer to right project? for example C:\inetpub\wwwroot\prjName\
Hope this will help you.
regards
ybasha
|
|
|
|
|
Hi All,
This is Krishna Prasad,
I want some help from all u guys,
In my project "Admin" will post some tutorials or Articles ,that can be viewed by Registered users.
My question is how admin can post an article?What type of user interface can we prepared and where we can maintain this Article,i mean in the database or some any other backend.I am interested in mainatin in Server folder.But how to do this? Also i want to use XML
Actually i am very new to this topics.
I Requset u guys to help me By explaning r send me any sample code u have.
Thanks in Advance.
Regards..
Y.A.Krishna prasad
|
|
|
|
|
I think u can create a html text editor and save this html file in ur server folder with some specfic name and retrive accordingly which file is requested by the Registered users.
I hope this helps u???
|
|
|
|
|
yadlaprasad wrote: What type of user interface can we prepared
A WYSIWYG[^](What you see is what you get) for rich content formating.
yadlaprasad wrote: i mean in the database or some any other backend.I am interested in mainatin in Server folder.But how to do this? Also i want to use XML
This depends on how big your article text is. If your article is too big then I prefer to store in in individual ASPX files which are created on the fly. If it is a reasonable size, you can maintain in XML file or database.
|
|
|
|
|
Hi Navneeth,
Thank you very much fr u reply,
you r saying is right,I am using that WYSIWYG[^](What you see is what you get) editor.But here how can place images at my desired position,and i have one button called "post article".When i click this button it will be stored in a html page on the fly.i mean dynamically that Html page will be created and that article will be stored in this page.all the pages i am maintaning in a folder named "Articles".Ho we can achieve this?this is what i m trying from last 4days.can u plz help me by sending any sample code for this.otherwise any explanation at least.
Thank you very much
Regards..
Krishna Prasad
|
|
|
|
|
yadlaprasad wrote: But here how can place images at my desired position
There is no efficient way to do this in design time. You can create custom tags. See the following eg
[image name="ImageName" align="left"]
This is a custom image tag. You need to extract the image name from this string ( Regular expressions are good for this ). Then check the image name exist or not in the server. If it doesn't exist, prompt user to upload the image.
yadlaprasad wrote: i mean dynamically that Html page will be created and that article will be stored in this page.all the pages i am maintaning in a folder named "Articles".Ho we can achieve this
Are you using ASP.NET 2.0 or later ? Then I prefer to create ASPX instead of HTML on the fly. Assume you created HTML pages for your articles. Once you are in need of changing the design of that pages, what you will do ? you need to open each page and change the design. This will be a hectic process once you got plenty of pages on server. So an ASPX page can take advantage here. In this you can do the design in user controls (ascx files) or Master pages. So easily design can be changed. This is why I prefered ASPX file that HTML.
To achive what you require, first create a page which will be like how you need the article page. Now open the file when user hits "post article" button. Read the contents, place your article content where you wish in the page. Write that into another ASPX page in the server directory. For these type of files don't use Codebehind file. ASP.NET 2.0 allows you to write Server side code and markup in same file.
Hope this helps.
If this post helps you please vote for it.
|
|
|
|
|
hi Friends,
I am developing one web application in MS.NET 2005 and using some AJAX with the help of Ajax.dll(download from this site http://ajax.schwarz-interactive.de/csharpsample/default.aspx)
Also I am new to this AJAX wrold.
my doubt is through ajax we can enable or hide panal or assign value to textbox control from c# code.??
<br />
Means I have a code behind function in c# like <br />
<br />
[Ajax.AjaxMethod]<br />
public string ChangeMe()<br />
{<br />
<br />
if (DrpDelMode.SelectedValue == "B")<br />
{<br />
Pnlcounter.Visible = false; <br />
PnlBankDet.Visible = true;<br />
TxtPaymentDetails.text="show bank"<br />
}<br />
else<br />
{<br />
Pnlcounter.Visible = true;<br />
PnlBankDet.Visible = false;<br />
TxtPaymentDetails. text="show Counter"<br />
}<br />
<br />
return "Hai Ajax";<br />
}<br />
<br />
Onchange event of a dropdwon control i can invoke a JS function
<br />
function showpanle()<br />
{<br />
alert('ha1');<br />
showpanel.ChangeMe(callback_Show);<br />
}<br />
<br />
function callback_Show(res)<br />
{<br />
document.getElementById("TxtName").innerText = res.value ;<br />
<br />
}<br />
in this above piece of code alert wrking fine and document.getElementById("TxtPaymentDetails").innerText value is null and assign value to TxtPaymentDetails textbox and panle visiblity settings are also not wroking.
how can i can solve this issue? or is it my Ajax.dll's probelm
if I comment the IF Else section in ChangeMe() function it is working.Means " Hai Ajax" shown in TxtName textbox.
-- modified at 2:54 Monday 17th September, 2007
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Make this
document.getElementById("TxtName").value
Instead of
document.getElementById("TxtName").innerText
|
|
|
|
|
thankx for your kind reply.
But visisblity seetings of the panel and assign value to TxtPaymentDetails is also not working!!
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Can you clerify that method
function callback_Show(res)
fire or not ?
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
I think it is firing.
why because in both case some value assigned to TxtName.TEXT textbox.
Means if i comment the IF-Else condition section in ChangeMe()(c#code) function "Hai Ajax" value is assigning to TxtName otherwise NULL value came to it.
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
we are using HTML Editor in web page.The user whatever type or paste, the content,same it store in the database.During Inserting data,we are using Server.HTMLEncode.
Server.HtmlEncode(HiddEditorContent.Value)
content Ex: test with tag p and /p. and font.
SPAN style="BACKGROUND: black; COLOR:
white"
So,it stores the data like above in the database.
After retrieving from the Database,we are using Server.HTMLDecode and showing in the same HTML Editor.
It's fine.It's working.
I need to display the htmlEditor value in the pdf report.
We created the datatable from the database value.Here one of the row value is HTML Editor value.I decode that using server.htmldecode and try to insert into the same Datatable.From there we created the xml.From XMl we are showing the report.
But in the report,it's showing the value like
test with tag p and /p. and font.
SPAN style="BACKGROUND: black; COLOR:
white"
It's not decoded.Can u please someone help me
radsgr
|
|
|
|
|
RADSGR wrote: It's not decoded.Can u please someone help me
In crystal reports ? I don't think that crystal reports can render HTML tags. Try using a thrid party library to do this.
|
|
|
|
|
Hello Friends,
Whenever i'm sending mail through my ASP.NET program it's sending mail perfectly at my yahoo,sify,and at domain-mail id but i'm not receiving mail at my gmail and rediff account..........................
and also i want to send the image or pics as a background of my mail or through copy and paste..............................................
|
|
|
|
|
gmail, rediff account will need secured option (SSL is true). one more thing gmail server is some what slow. try after 10 mins of sending.
for attachement as copy & paste, u have send mail body as HTML.
for attachement code
<br />
MailMessage mail = new MailMessage();<br />
mail.From = txtFrom.Text;<br />
mail.To = txtTo.Text;<br />
mail.Subject = txtSubject.Text;<br />
mail.Body = txtMsg.Text;<br />
mail.BodyFormat = MailFormat.Html;<br />
<br />
'Change the path appropriately<br />
string strdir = "D:\\temp\\";<br />
string strfilename = <br />
Path.GetFileName(txtFile.PostedFile.FileName);<br />
txtFile.PostedFile.SaveAs(strdir+strfilename);<br />
mail.Attachments.Add(new MailAttachment(strdir+strfilename));<br />
<br />
try<br />
{<br />
SmtpMail.Send(mail); <br />
}<br />
catch(Exception ex)<br />
{<br />
Response.Write("Exception Occured: " +ex);<br />
}<br />
finally<br />
{<br />
Response.Write("Your E-mail has been sent sucessfully");<br />
}<br />
// Uploaded file deleted after sending e-mail<br />
File.Delete(strdir+strfilename);<br />
}<br />
Ramana
|
|
|
|
|
Hello Sir,
The code u sent me is great but i think u've sent this piece of code for attachment but i want to send the image as a background not as an attachment.........
And sir also the gmail and rediff not receiving mails.....
and SSL is also true.........
Plz suggest me something else and ver thnx for ur code
|
|
|
|
|
Hi All,
Can any one tell me what is the problem here? I am using ASP.NET 2005 and on menu click event I need to open page which is nothing but a div tab and it contains few combo and a textbox with ok and cancel button.
Everything works fine but I need a proper GUI as it contains Country, Select Sector, select sub industry and select company this should all come in proper way as show below:
Country combo
Select Sector combo
Select Sub Industry combo
Select Company combo
textbox
But it shows something like this:
Country combo
Select
Sector combo
Select Sub
Industry combo
Select
Company combo
textbox
I want left column in one line is Select Sector should in one line.
Please help me...
Following is the code:
<div id="p1" style="display: none; background-color:#FBFBFB ;border:1px solid Blue">
<table width="40%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="text" width="250px">
Country</td>
<td>
</td>
<td align="left">
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server" TargetControlID="ddlcountry"
Category="Country" PromptText="Select a Country" ServicePath="AutoComplete.asmx"
ServiceMethod="GetCountry" />
<asp:DropDownList ID="ddlcountry" CssClass="text" runat="server" Width="250px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="left" class="text">
Sector</td>
<td>
</td>
<td >
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown2" runat="server" TargetControlID="ddlSector"
ParentControlID="ddlcountry" Category="Sector" PromptText="Select a Sector" ServicePath="AutoComplete.asmx"
ServiceMethod="GetSector" />
<asp:DropDownList ID="ddlSector" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left" class="text">
Sub Industry
</td>
<td>
</td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown3" runat="server" TargetControlID="ddlSubIndustry"
ParentControlID="ddlSector" Category="Sector" PromptText="Select a SubIndustry"
ServicePath="AutoComplete.asmx" ServiceMethod="GetSubIndustry" />
<asp:DropDownList ID="ddlSubIndustry" runat="server" CssClass="text" Width="250px"> </asp:DropDownList></td>
</tr>
<tr>
<td align="left" class="text">
Company Name
</td>
<td>
</td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown4" runat="server" TargetControlID="ddlCompany"
ParentControlID="ddlSubIndustry" Category="Company" PromptText="Select Company"
ServicePath="AutoComplete.asmx" ServiceMethod="GetTicker" />
<asp:DropDownList ID="ddlCompany" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left"> </td>
<td>
</td>
<td>
<asp:TextBox ID="myTextBox" runat="server" autocomplete="off"
CssClass="text" Height="14px" Width="249px">
</asp:TextBox>
<ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="myTextBox"
ServicePath="AutoComplete.asmx" ServiceMethod="GetCompletionList2" MinimumPrefixLength="0"
CompletionInterval="1000" CompletionSetCount="12" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td align="left">
</td>
<td></td>
<td align="right">
<input type="button" class="button" id="btnOk" onclick="myfunct1();" value="OK" />
<input type="button" id="btnCancel" class="button" value="Cancel" runat="server" onclick="myfunct();" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
</td>
<td align="left">
</td>
</tr>
</table>
</div>
|
|
|
|
|
No Not again
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
What to do?? My problem is not yet solved...
|
|
|
|
|
try to give border of the table 1 i.w border=1 for table in the div and check the widht of column then make adjustment
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|