|
Hi,
I think in traditional asp you have to do something like Request.Form["CheckBox1"].
Using .Net code on asp will not work.
|
|
|
|
|
So here is the basic idea behind my question:
I am creating a personal website where I will be able to post news about what I am doing(it will also be used for professional purposes) but what I would like to be able to do is have a textbox to enter my News entries and type them how I would like to have them formatted in the textbox, and then when I submit it to the Database it will keep the formatting so that when I pull it back from the database to put it in the news section it keeps the formatting. Basically how a message board Text: section works.
Can anyone give me an idea of how to do this or maybe a plugin I can put on my site to do this for me?
Thanks Alot,
-Seth
|
|
|
|
|
txtNewsArticle.Text.Replace(vbCrLf, " ")
|
|
|
|
|
In vb (I know - I hear you groaning), trying to send .net (I’m using .net 2) appointment to Groupwise (Novell says it accepts iCal and iMip services). Tried a version, got the email, but when I clicked on the attachment, nothing appeared as an appointment. So, tried again, and now I get a whole new calendar (can have multiple calendars in Groupwise, e.g. work, personal) when I click on the ics file - but still no appointment. Any help appreciated... Janet
Dim filePath As String = String.Empty
If System.IO.File.Exists("iCal\2.ics") Then
System.IO.File.Delete("iCal\2.ics")
End If
Dim path As String = HttpContext.Current.Server.MapPath("iCal\")
filePath = path + "2.ics"
Dim myStr As String = String.Empty
myStr = "BEGIN:VCALENDAR" & vbCrLf & _
"VERSION:1.0" & vbCrLf & _
"BEGIN:VEVENT" & vbCrLf & _
"DTSTART:" & DateTime.Now.AddDays(1).ToUniversalTime().ToString("yyyyMMddTHHmmssZ") & vbCrLf & _
"DTEND:" & (DateTime.Now.AddDays(1)).AddMinutes(35).ToUniversalTime().ToString("yyyyMMddTHHmmssZ") & vbCrLf & _
"LOCATION:CDL" & vbCrLf & _
"DESCRIPTION:Click the attached file to receive appointment" & vbCrLf & _
"SUMMARY:testing another appointment" & vbCrLf & _
"TRIGGER:-PT15M" & vbCrLf & _
"PRIORITY:5" & vbCrLf & _
"END:VEVENT" & vbCrLf & _
"END:VCALENDAR"
Dim writer As New System.IO.StreamWriter(filePath)
writer.WriteLine(myStr)
writer.Close()
Dim mail As New System.Net.Mail.MailMessage("yada@emailfrom.net", "yada2@emailto.net", "test email appointment2", "click attached file2 for internet appointment")
mail.Attachments.Add(New System.Net.Mail.Attachment(filePath))
Dim client As New System.Net.Mail.SmtpClient("wahoo")
client.Send(mail)
mail.Attachments.Dispose()
mail.Dispose()
mail = Nothing
|
|
|
|
|
Hi,
The following error did occur after when I choosed "Clean project" and then "rebuild project" from Build menu. Now I am not able to run any file. I have been getting the following error message. I am using VS 2008. In the project properties, the compile output directory is set to "bin". However it is still wirting under Debug directory because "Debug" mode is set to true in webconfig file.
I can't go back and rebuild the project because the following error. I use Visual Studio Development server (not IIS Local server). The following error is a subject for every page I have under my project directory. WHO CAN RESCUE ME?
Please, if you excatly know how to fix problem, let me know.
Thank You.
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'rentaholiday.adm_add_customer'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="adm_add_customer.aspx.vb" Inherits="rentaholiday.adm_add_customer" %>
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: /Administration/Admin/adm_add_customer.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
I hope this helps u now coz I'm just goin to bed now.
try looking at the class name in ur aspx.cs page, is it adm_add_customer or something else. Look closely at this. I think u'll find the answer. The inherits attribute in Page is meant to hold the class name that'll hold the backend code.
|
|
|
|
|
Thanks for responding Rocky. The class names are pointing the sama name as shown below
Headings of class files as shoqn below.
<br />
<br />
Partial Public Class adm_add_customer<br />
<br />
Partial Public Class adm_add_customer<br />
<br />
It amazes me that many people have had this proplem with Vs2005 and VS2008 and there is no given a certain answer to the problem.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Hi!
Two things:
First:
I assume that your codebehind class is in the namespace rentaholiday as i stated in your aspx page.
second.
I have seen this problem when i'm trying to rename a class that i have created with another name. When doing so the hidden design code of the aspx page is not always changing name.
Mostly the problem occurs when you try to rename the class by just changing the name in the cs file and then useing the little wizzard to help you change name.
The work around for this seams to be to use the right click -> refactor -> rename, and then check all boxes and do the renameing.
hope this helps
/Andreas
|
|
|
|
|
Hi Andreas,
Thanks for responding. Actually I didn't rename the files. When I cleaned the project and then rebuild it, all the files got messed up. Yesterday I decided to remove the webconfig file and then tried to browse one of the page, it reproduced the webconfig file.
I checked all the pages and saw that there were no poiniting errors in pages at 1st line anymore. However now I am facing with another problem. The problem is in backend class files that is associated with the aspx page. It doesn't recognize TYPE SYSTEM.WEB.UI.HTMLCONTGROLS.HTMLHEAD definition even it is defined inside the webconfig file.
I have a question for you. Do I have to define a namespace in webconfig file for the project as RENTAHOLIDAY.
Thank you.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Hello!
I'm not sure about the namespace thing in the web.config file. but i think not.
i have never exlicitly defined a project namespace in the cfg file.
and i don't know how to resolve the problem you have now.
i would try to create a new project and the include all my filed and hope that the web.config file i generated properly.
sorry
kind regards
Andreas Johansson
IT Professional at Office IT Partner i Norrbotten Sweden
What we don't know. We learn. What you don't know. We teach
|
|
|
|
|
Hi all,
I was wondering the best way to implement a help system for a medium sized website. It’s been created using ASP.NET and I was wondering what people recommended for implementing help? I want the help to be automatically generated if possible (does .NET have these capabilities?). I was thinking of something like it would check if help was available for the current page and if so would display it.
I was thinking that I could use a resource file for each page I want to have help then have a popup that is displayed if the user clicks on a help icon (this Icon would only be displayed if there was help available – i.e. res file there).
Is there a better way to implement help?
Thanks in Advance,
Peter
|
|
|
|
|
Hi: I have the following tasks,what i am looking is an idea to implement the foolowing task
1 "Text only search " in which the the text content is stored with metadata,if users keyword exactly matches or relativelly matches with my metadata ,Particular text content will b displayed.
2 "Image only search " in which the the image content is stored with metadata,if users keyword exactly matches or relativelly matches with my metadata ,Particular image will b displayed.
3 Now " Image and Text search " in this scenario i think the above metadata idea is blunt.So can any one suggest me how to solve this issue.
Ex:
My user enters "BatMan" in " Image and Text " search now i have to disaply him Bat Man part1,Part2 ...Images with contents.
Thanks
suresh
|
|
|
|
|
Hi,
I am working on a tool in ASP.NET 2.0 which gets the list of application pools, binds it to the drop down list and finally recycles it depending on the application pool selected by the user. And also resets IIS. When i run the application using the deveploment server it works fine and does all the job but when i host it on the IIS server and try to run it, the page gets load with all the controls in it like drop down, buttons etc..but the list of application pools is not getting populated to the drop down. First i thought it was a permission issue so worked around giving permissions to the user accessing it and also blocked windows firwall but still the problem exists. Can anyone help me on this as soon as possile??
Thanks in advance,
Puneeth
|
|
|
|
|
What Error it Shows??
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
It doesnt show ant error..when i run the application from iis its loads the page with all controls in it..like dropdown,buttons..but the list of application pools which need to bind to the dropdown is not getting populated..any u help wit it??
|
|
|
|
|
You are making web based version of IIS Admin?
I didn't get any requirements for the signature
|
|
|
|
|
i need to create a tool which gets the list of application pool and then it should be recycled when the user selects it.
|
|
|
|
|
you want recycle application pool from your application ?
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
yes..right..it does the job when i run the application through development server it works but when i host it on iis and browse it loads the all the controls in it but doesnt give me the list of application pool which i had bound it to the drop down..can u help regarding this??
|
|
|
|
|
i'm also facing the same issue... no leads so far..
|
|
|
|
|
Hi all,
I surfing the browser for past two days to create a page loader which should run while a page loading.... and stop after the loading completion..
Can any one help me to resolve this issue....
Thanks in advance
Senthil.S
Senthil.S
A Software Engineer
|
|
|
|
|
Use Ajax
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
Hi Dear,
I am in big trouble . I want to export an image to excel sheet in asp.net, but i cant do.
can anybody take me out from this trouble.
Any help would be highly appreciated.
Thanks
Rohit
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|