Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

hurrem

@hurrem
About
Posts
60
Topics
30
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • is it possible to work with Word files using Binary Reader and writer?
    H hurrem

    I need to translit the documents, translit from cyrillic letters to latin letters. and I need to make my program to work with as many documents as it possible, and huge document, may be a document with 500 pages.... So, I'm thinking different ways to implement it to work as efficient as possible... any advices?

    C# question

  • working with Word file using Microsoft.Office.Interop.Word
    H hurrem

    Hello, Could anybody help me to solve my problem, I don't know how can I get the "nextchar", I mean, using wordApp.Selection.Find function I find a character that was searched for, and now I need to get the next character. The next character that stays right after the searched character. For example: I'm searching for "b" in "I have some problems", so now I need to get that "s", which stays after "b". And then I need to get the whole word "problems".. How can I do this? :omg: :omg:

    C# help question com algorithms tutorial

  • Sorting two columns as one in GridView
    H hurrem

    Hello, Please, tell me how can I sort two tables and display them in one column of GridView. I'm using ASP.NET Classified Starting kit, and want to add one more price column for euro. So, actually when I display them on the page, I need two combine this two cols in one, and sorting should work. I have no idea how to do that... But I hope, it's possible. coz in my web-site ppl should be able to put prices of their ad in one of these two currencies, let's say euro or dollar. Or may be there is a better solution without adding a column?

    ASP.NET question csharp asp-net algorithms tutorial

  • problem with utf-8 encoding
    H hurrem

    yes. By the way, the text in aspx file is written with HTML, like this:

    Поиск:

    ASP.NET question help

  • problem with utf-8 encoding
    H hurrem

    oops, it didn't show the code from web.config, here it is:

    ASP.NET question help

  • problem with utf-8 encoding
    H hurrem

    Hi, I very need your help. I'm doing a site in russian language and have problems with encoding. I have this in my web.config:

    and then this in my MasterPage:

    and in the default.aspx, I have this:

    ]]>

    But it doesn't display properly the russian text in the ContentPlaceHolders within the default.aspx.... could you please tell, how can I solve this question?

    ASP.NET question help

  • NavigateURL problem
    H hurrem

    Hi, I have a very strange problem. The navigateURL is changing on browser. So, when I debug the value of url i.e. is: E:\Documents\www.txt but in the browser it shows me: file:///E:/Documents/www.txt as you noticed, it changes my backslashes and becouse of that the url is not working. Does anybody know why? and how can I change it? my code is here: protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) { TreeView1.Nodes[0].Value = @"E:\asem\Visual Studio 2005\WebSites\SDP\users\" + Membership.GetUser().UserName.ToString(); addsubdir(TreeView1.SelectedNode.Value); } void addsubdir(string path) { DirectoryInfo dr = new DirectoryInfo(path); if (dr.Exists) { foreach (DirectoryInfo d in dr.GetDirectories()) { TreeNode t = new TreeNode(); t.Value = d.FullName; t.Text = d.Name; t.NavigateUrl = ""; TreeView1.SelectedNode.ChildNodes.Add(t); } foreach (FileInfo file in dr.GetFiles()) { TreeNode t = new TreeNode(); t.Value = file.FullName; t.Text = file.Name; **string url = file.FullName; t.NavigateUrl = url; //it is changing right here Label1.Text = url;** TreeView1.SelectedNode.ChildNodes.Add(t); } } }

    ASP.NET question csharp visual-studio debugging help

  • identifier expected
    H hurrem

    oh, yeah... Thanks!!! :)

    ASP.NET csharp visual-studio help question

  • displaying date format
    H hurrem

    Thanks for reply, but I didn't get you. I'm getting the date as it is and I need to display it on a label in a readable format, i.g., as Oct, 27 2007

    ASP.NET database question

  • displaying date format
    H hurrem

    Hi, I'm getting date from SQL table, where it is saved as 7/31/2007 12:00:00 AM I need to show this date as July, 31 2007 without the time. is there any easy way to do that? thanks

    ASP.NET database question

  • identifier expected
    H hurrem

    HI, I can't understand what is wrong here: private const VirtualRoot = @"E:\asem\Visual Studio 2005\WebSites\SDP\users\"+Membership.GetUser().UserName.ToString(); it gives me Compiler Error Message: CS1001: Identifier expected

    ASP.NET csharp visual-studio help question

  • pointing to the outside folder
    H hurrem

    well, yes, it is actually my school project and I don't think I'm gonna upload it to the Internet. is there a way to point to the folder outside of the root folder on my local computer?

    ASP.NET tutorial question

  • pointing to the outside folder
    H hurrem

    I'm using Web Developer 2005, on Windows XP Media

    ASP.NET tutorial question

  • pointing to the outside folder
    H hurrem

    Thanks for reply, Is the re any other way to do it without IIS, cause I don't have it.

    ASP.NET tutorial question

  • pointing to the outside folder
    H hurrem

    Hi, I need to point to the folder that is outside of the root directory. For example, if my project name is SWB and it is located in SWB folder I need to point to the folder that is outside of SWB folder. Can I use Server.MapPath for that? Thanks!

    ASP.NET tutorial question

  • convert to C# from VB
    H hurrem

    well, there is still something wrong. Here is my code that I'm trying to rewrite in C#. I used while and as I debugged, it is not working properly. For i = 0 To aFiles.GetUpperBound(0) ' Get the position of the trailing separator. posSep = aFiles(i).LastIndexOf("\") ' Get the full path of the source file. sFile = aFiles(i).Substring((posSep + 1), aFiles(i).Length - (posSep + 1)) Try ' Copy the file. System.IO.File.Copy(aFiles(i), destDir + sFile, False) addToConsoleWindow("Copied " & sFile & " to " & destDir) Catch ex As Exception If overWrite = False Then errorBoxShow(ex.Message) addToConsoleWindow("Skipping..." & ex.Message) Else System.IO.File.Copy(aFiles(i), destDir + sFile, True) addToConsoleWindow("Overwriting old " & sFile & " in " & destDir) End If End Try Next i Thank you for helping me.

    ASP.NET csharp tutorial

  • convert to C# from VB
    H hurrem

    Hi, this is very common, but I don't know how. How to write this in C#: For i = 0 To aDirs.GetUpperBound(0) as I don't see the step, which is not i++...

    ASP.NET csharp tutorial

  • Sending Email exception
    H hurrem

    I don't have it in my entire code.

    ASP.NET data-structures debugging question workspace

  • Sending Email exception
    H hurrem

    here is the exception: Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at Register1.CreateUserWizard1_SendingMail(Object sender, MailMessageEventArgs e) in e:\web\myeconpaper\htdocs\Register.aspx.cs:line 64 and here is my code: protected void CreateUserWizard1_SendingMail(object sender, MailMessageEventArgs e) { CreateUserWizard wizard = (CreateUserWizard)sender; MembershipUser user = Membership.GetUser(wizard.UserName); e.Message.Body = e.Message.Body.Replace("<%PasswordQuestion%>", CreateUserWizard1.Question); e.Message.Body = e.Message.Body.Replace("<%PasswordAnswer%>", CreateUserWizard1.Answer); e.Message.Body = e.Message.Body.Replace("<%DomainName%>", Request.ServerVariables["SERVER_NAME"]); e.Message.Body = e.Message.Body.Replace("<%VirtualDirectory%>", Request.ApplicationPath); e.Message.Body = e.Message.Body.Replace("<%UserLogsOnAs%>", user.ProviderUserKey.ToString()); string mail = e.Message.Body.ToString(); System.Web.Mail.MailMessage objEmail=new System.Web.Mail.MailMessage(); objEmail.Body=mail; objEmail.To = CreateUserWizard1.Email; try { SmtpMail.Send(objEmail); //line 64 ResultLabel.Text="Your Email has been sent sucessfully! Thank You!"; } catch (Exception exc) { Res

    ASP.NET data-structures debugging question workspace

  • Sending Email exception
    H hurrem

    HI, I'm trying to send an email from my web-site, and it's actually working, everything is pretty cool, but I have this kind of exception:

    Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at Register1.CreateUserWizard1_SendingMail(Object sender, MailMessageEventArgs e) in e:\web\myeconpaper\htdocs\Register.aspx.cs:line 64

    The emaiol is sent, but the result label shows me exception, WHY?

    ASP.NET data-structures debugging question workspace
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups