|
I would use myString.ToCharArray() to generate the array of characters. Create two StringBuilder objects. Then loop through the array using a compare function to determine which StringBuilder gets the character.
|
|
|
|
|
You can use a regular expression to match the characters. Call Regex.Replace with a delegate that will store away each matched character and replace it with an empty string.
Something like:
string second = string.Empty;<br />
string first = Regex.Replace(text, "[a-z]+", delegate(Match m){ second += m.Value; return string.Empty; } );
If the string might be large, a StringBuilder would be better for collecting the characters.
---
single minded; short sighted; long gone;
|
|
|
|
|
hai,
if i type date in textbox means pictures must change after 30 days from i typed date.for ex,there are 3 option button named as 30 days,60 days,120 days i type date as march 3 then i click 60 days option button means pictures must change after 60 days in bacground using javascript otherwise if i click 30 days option button means pictures must change after 30 days in bacground using javascript like that 120 days option button also.
-- modified at 8:51 Saturday 3rd March, 2007
|
|
|
|
|
|
hi i am new to this forum so please bear with me
i am desiging a page in which i have a menu bar on the left of the page and in the center i have the product to be displayed and on the right i have a banner
what i want to achieve is something like this
when i click on the menu item the center portion of the page should chagne without refreshing the page. The center page is built on dynamic tables.
Iam using asp.net (VB.net)
i have created the application but i have to convert it to AJAX so it removes the postbacks
any help would be highly appreciated
thanks in advance
Asim
|
|
|
|
|
|
Dear All,
My project has this files - Web.config, Global.asax
What are the important in here.
I need get complete idea about content in this file.
Any one can pls give clear idea or submit articles or links.
And also give idea about Forms Authentication / Windows Authentication ?
Regards
Kusal
|
|
|
|
|
Kusal wrote: Who's the expert in ASP.NET
Scott Guthrie[^]
Kusal wrote: My project has this files - Web.config, Global.asax
What are the important in here.
I need get complete idea about content in this file.
Any one can pls give clear idea or submit articles or links.
And also give idea about Forms Authentication / Windows Authentication ?
MSDN[^]
|
|
|
|
|
Kusal wrote: Who's the expert in ASP.NET
http://msdn.microsoft.com/[^]
Kusal wrote: And also give idea about Forms Authentication / Windows Authentication ?
http://msdn.microsoft.com/[^]
Kusal wrote: My project has this files - Web.config, Global.asax
What are the important in here.
I need get complete idea about content in this file.
Any one can pls give clear idea or submit articles or links.
http://msdn.microsoft.com/[^]
|
|
|
|
|
Need Help...
I am working with Visual Studio.NET 2003 and I have to generate a word report at the client side. Thing is that i must also configure tha password for the same.Meaning to say when the end user clicks on the Open Button in the File Download Dialog Boxit must prompt for the password.
I included Microsoft.Word 9.0 Object Library. But still i was not able to access Microsoft.Office.Word.Interop Namespace.
So i wrote the code as..
<pre>
protected void btnGenerateDocument_Click(object sender, EventArgs e)
{
Word.ApplicationClass WordApp = new Word.ApplicationClass();
Word.DocumentClass dc = new Word.DocumentClass();
dc.Password="SandP1";
object file = "c:\\Document.doc";
object missing = System.Reflection.Missing.Value;
WordApp.Documents.Open(file,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing);
// Giving an error of Invalid arguments--As it is unable to convert object
// to ref object. </pre>
If any body could help i'll be grateful..
jij
|
|
|
|
|
|
Thanks Vasudevan.It was a good link. But when i used the code from there, it was giving error as System.Runtime.InteropServices.COMException: Could not open macro storage.
i set <identity impersonate="true" /> in Web.config file and still it was not working.
<pre>
object missing = System.Reflection.Missing.Value;
object file = "c:\\myfile.doc";
object pwd = "www";
Word.ApplicationClass oWordApp = new Word.ApplicationClass();
oWordApp.Visible = true;
Word.Document oWordDoc = oWordApp.Documents.Add(ref missing,ref missing,
ref missing,ref missing); ===> The exception was thrown here
oWordDoc.Activate();
...
</pre>
If any body could tell how we set the security permissions for the word application i'll be grateful.
jij
|
|
|
|
|
|
I am using master page. I created a Menu control on Master Page. When I use it on a child page or content page, my menu goes down the controls of content page. the labels, textboxes etc. appeares on top of my menu. how can I get rid of this problem?
|
|
|
|
|
Hi
I think you have missed something in your Master Page.
Hope you did in this way:
I. Master Page should contain:
<asp:Menu>
<Items>
<!-- Whatever Items that you wanted to add -->
</Items>
</asp:Menu>
<asp:contentplaceholder id="CPH" runat="server">
</asp:contentplaceholder>
II. In your web application should contain all labels, textboxes within
Content tags.
<%@ Page Language="C#" MasterPageFile="~/MasterPageFile.master" ... %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH" runat="Server">
<!-- Text boxes, labels or anything else -->
</asp:Content>
Make sure that Content Place holder id is same as in Master Page.
Let me know which browser are you using?
Rate this message. Thank you. Harini
|
|
|
|
|
thanks for the help dear... i am using internet explorer. its not working yet. hope u will come up with some more good solution... waitin...
thanks
|
|
|
|
|
Hi
I am facing error in attaching a document while mailing.The codings are as belows..
CODE:
If Not (inpAttachment1.PostedFile Is Nothing) Then
' Get a reference to PostedFile object
Dim attFile As HttpPostedFile = inpAttachment1.PostedFile
' Get size of the file
Dim attachFileLength As Integer = attFile.ContentLength
' Make sure the size of the file is > 0
If attachFileLength > 0 Then
' Get the file name
strFileName = Path.GetFileName(inpAttachment1.PostedFile.FileName)
' Save the file on the server
inpAttachment1.PostedFile.SaveAs(Server.MapPath(strFileName))
' Create the email attachment with the uploaded file
Dim attach As New MailAttachment(Server.MapPath(strFileName))
' Attach the newly created email attachment
mailMessage.Attachments.Add(attach)
' Store the attach filename so we can delete it later
attach1 = strFileName
End If
Error :
System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\Pinkerton\PTS.doc" is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at Pinkerton.Mail.SendMail.btnsend_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\pinkerton\mail.aspx.vb:line 125
Note: The line 125 is inpAttachment1.PostedFile.SaveAs(Server.MapPath(strFileName))
It works well when I am sending mails without attachement.at the time of attachment the above error appears. I have to upload this file to server.
Thanxxx in advance...
|
|
|
|
|
|
|
Hello friends,
I am a asp.net c# programmer .I need your help and suggestions..in my project there is a content management section is there...i got one sample from net but it's not working in the case of images.like it's not uploading images in to server like that..can any body help me to solve this issue...
I am waiting for your valuable suggestions
Reagards
Alex Malayil
|
|
|
|
|
FCK Editor or TinyMCE are the best free ones I know of.
|
|
|
|
|
|
|
|