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
D

dipak dipak

@dipak dipak
About
Posts
55
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to access user name from url
    D dipak dipak

    Hello Sir, Thank you for reply. :-O download.aspx is present on the server. and it is opening properly when typeing the url manually on ther browser. But it may be server is not configured properly. On the control panel of this website a error 404 (page not found) is set to a html page by the hosting provider (godaddy.com). And that page is showing while i am trying that code. There are other options of 404 Error Behavior are: Use home page: Use custom page: If i set a custome page to a aspx page. I think it will open but where i wil loose the username (here username1). so how to solve this?

    Dipak

    ASP.NET question database com sysadmin help

  • how to access user name from url
    D dipak dipak

    Dear all, I want to access user name from the url written like this format http://www.codeproject.com/username1 user will enter his user name after website name. Remember that user will not enter user name as a query string like http://www.codeproject.com/username?username1 (I don't want this type of entry with url by user) when i am using this (http://www.codeproject.com/username1) type of url I have tryed to access user name from global.aspx -Application_BeginRequest event. i have searched that after the website name if the string (here username1) is not with . (i am not permitting to use . while user name created) it will redirect to download page with query string. like this: string TheRequestUrl = ""; string theurl = HttpContext.Current.Request.Path; string theFileName = theurl.Substring(theurl.LastIndexOf("/") + 1); if (!theFileName.Contains(".")) { TheRequestUrl += "Download.aspx?requestUser=" + theFileName; Response.Redirect(TheRequestUrl); } It is working properly on the local server. but on the server it redirect to 404 (page not found) page. not running the Application_BeginRequest event. Than what is the best way to achive this. Please help me

    Dipak

    ASP.NET question database com sysadmin help

  • ajax update panel stop refreshing after a random time period
    D dipak dipak

    Thanks for reply. Sorry to say, i am not getting your point. Please clearfy the point. I will thnakful to you. :-O

    Dipak

    ASP.NET help database question announcement lounge

  • ajax update panel stop refreshing after a random time period
    D dipak dipak

    Hello Everybody, I have used an update panel on the page and it refresh data (getting from Database) after 5 seconds using timer control. Everything doing fine, but after a random time (may be after 1 hour or 5 hours or 1 day or 3 days) update panel not refreshing the data. Anybody can say what type of problem it may be?? Please help me.. Thanks in advance.

    Dipak

    ASP.NET help database question announcement lounge

  • Registered dll problem
    D dipak dipak

    Hi, I have a dll which is build from VB6 program. I have registered on my computer using regsvr32 command and working fine with my asp.net coding. To run on the webserver (to run on internet) i have registered that dll from control panel, and its status showing "Registered" on control panel. but on running the code on a button click it showing some error (as error message appeared when dll was not registered on the local machine). What should i have to do to run properly on the webserver. Error is: Server Error in '/' Application. Retrieving the COM class factory for component with CLSID {00D7D7AC-1414-4938-A1DC-807738D0823A} failed due to the following error: 80070005. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Please help me.. Thank you.

    Dipak

    ASP.NET help csharp asp-net com

  • Mail sending problem
    D dipak dipak

    Thank you for reply. I have asked to Provider and got the details And it is finely working. my code was correct but only I have added mySmtpClient.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis; and it is running properly. Thank you.

    Dipak

    ASP.NET csharp help question com sysadmin

  • Mail sending problem
    D dipak dipak

    Hello Everybody, I have written a code to send mail but it is not working properly. I have added reference of System.Net.Mail; in C# code page and on botton click event I have written following code. try { SmtpClient mySmtpClient = new SmtpClient(); MailMessage myMail = new MailMessage("hr@advantawitty.com", "dipak.dipak@gmail.com", "MyTest Mail", "Hello This is Test Mail using .net Coding"); myMail.IsBodyHtml = true; mySmtpClient.Send(myMail); lblMessage.Text = "Mail Successfully Sent"; } catch (Exception Ex) { lblMessage.Text = Ex.ToString(); } and in web.config file: I am only confusing that what should be Smtp server name for my website.. when I am setting "localhost", it sends a mail which is stored in queue of mailroot on hard drive. But when i am uploading this it is not working.. how can i know my smtp server name? Or is there any other mistake in the code or configuration? Please help me... Thank you. :-O

    Dipak

    ASP.NET csharp help question com sysadmin

  • Prevent user from loggin in by clicking Back button
    D dipak dipak

    Yes sir you are right that "we should not block the back button of the browser using some javascript" because javascript can be disable for a browser. As you suggested to check the session -- I am using Login control and form authentication, and after successfully logged in i have checked to count number of session available, but result found 0, because it keeps all information in a cookie. There is no any session. then how can i prevent to see the page before logged out. If i manually set a session when user logged in and kill the session on logged out, then also someone can see pages (may contain confidential information) which was opened before logged out. Am I Right? Then what is the proper solution to prevent see the confidential information opened during any one logged in?????? This Question was made too much earlier, So I think now u found the proper solution. Please tell me sir..... I am waiting for your reply... Thank you in advance :-O

    Dipak

    ASP.NET question

  • Relative path Problem
    D dipak dipak

    Thankx for reply.. Please tell me on which page i have to write this code..

    Dipak

    ASP.NET javascript java css tools help

  • Relative path Problem
    D dipak dipak

    Sorry to say... no one answered for my question... but Finally I have solved my problem, i was suffering from this problem from last 3 days... lastly solution is that.. i have set different links for different sub folders. like src="scripts/utilityScripts.js" for root src="../scripts/utilityScripts.js" for subfolder and same for stylesheet link... And it is working fine... :-O :-O :-O :-O :-O :-O OK. :-O :-O :-O :-O :-O :-O

    Dipak

    ASP.NET javascript java css tools help

  • Relative path Problem
    D dipak dipak

    Hello, I have a master page in my project and in master page i have defined all external links on header for javascript files and css files. And all .aspx pages (including sub folder pages) are under that single master page. all these are running Properly for .aspx page located in the root and not working properly for sub folder pages, when i am setting path like: And Not running Properly for .aspx page located in the root and Working Properly for subfolder pages, when i am setting path like: <script language="javascript" type="text/javascript" src="../scripts/myScript.js"> And link like src="~/scripts/myScript.js" not working for any one. Please give me suggestion how can i define external java script path to work properly from all (root / sub folder) files.. I will be very thankful to you... :-O <div class="ForumSig">Dipak </div>

    Web Development javascript java css tools help

  • Relative path Problem
    D dipak dipak

    Hello, I have a master page in my project and in master page i have defined all external links on header for javascript files and css files. And all .aspx pages (including sub folder pages) are under that single master page. all these are running Properly for .aspx page located in the root and not working properly for sub folder pages, when i am setting path like: And Not running Properly for .aspx page located in the root and Working Properly for subfolder pages, when i am setting path like: <script language="javascript" type="text/javascript" src="../scripts/myScript.js"> And link like src="~/scripts/myScript.js" not working for any one. Please give me suggestion how can i define external java script path to work properly from all (root / sub folder) files.. I will be very thankful to you... :-O <div class="ForumSig">Dipak </div>

    ASP.NET javascript java css tools help

  • 'Create user' Problem....
    D dipak dipak

    Thank you Very much!!! :) I think that link may help full to gain that concept. Thank you very much once again......... :-O :-O :-O :-O

    Dipak

    ASP.NET question help

  • 'Create user' Problem....
    D dipak dipak

    Hi, I have designed a website with different roles for users. And according to user role they have different access permissions. When i am going to create a new user by clicking the link exist to create a new user on the login control, it creates a user of admin role. how can i should provide different users according to role except admin role??? Please tell me the concept. I will thankful to you.... :-O

    Dipak

    ASP.NET question help

  • FilteredTextBox for invalid chars as (@%$&*)
    D dipak dipak

    Just check this link... I am saying this type of code.. http://www.w3schools.com/jsref/jsref\_onkeydown.asp Try it out.

    Dipak

    ASP.NET tutorial

  • FilteredTextBox for invalid chars as (@%$&*)
    D dipak dipak

    Hello, You can check on client side also. using textchanged event of that textbox. call a function on textchange and on the function check the keychar if it is within your range then text will be added otherwise it return false, means character not appended on that textbox. Only valid char will appears. Try to make a javascript function.. Best of luck. :-O

    Dipak

    ASP.NET tutorial

  • Escaping Quotes
    D dipak dipak

    Hello, You may replace the " char to any other char, like this data = data.Replace('"','\'); if you want to replace "(quote) to a string then you have to replace with a special character as above then u can replece that special char (as String) to any string. data = data.Replace('"','`'); // replacing old char to new char data = data.Replace("`","\\\"); // replaceing old String to new String It think u can solve your problem.. Best of Luck.

    Dipak

    C# question database

  • Ajax (Javascript) with ASP.NET communication Problem
    D dipak dipak

    I just need to get data, "POST" from the client side (by javascript with send method) in the page asp.net page with C# code. i have used: var xmlHttp = GetXmlHttpObject(); xmlHttp.open("POST","SaveInfo.aspx",true); var args = "id=" + ID + "&name=" + Name + "&sex=" + Sex + "&age=" + Age; xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", args.length); xmlHttp.setRequestHeader("Connection", "close"); xmlHttp.onreadystatechange = function theStateChanged() { alert(xmlHttp.status); if (xmlHttp.readyState==4 && xmlHttp.status==200) { alert("Successfully Saved"); } } xmlHttp.Send(args); So, this is the code. I want to access the args from the page SaveInfo.aspx . how can access that to save those on the database using C# code on this page. Please help me.

    Dipak

    ASP.NET csharp help javascript asp-net database

  • How can access the arguments sent by (JavaScript request) ajax ?
    D dipak dipak

    Thanks for reply. I just need to get data "POST" from the client side (by javascript with send method) in the page asp.net page with C# code. var xmlHttp = GetXmlHttpObject(); xmlHttp.open("POST","SaveInfo.aspx",true); var args = "id=" + ID + "&name=" + Name + "&sex=" + Sex + "&age=" + Age; xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", args.length); xmlHttp.setRequestHeader("Connection", "close"); xmlHttp.onreadystatechange = function theStateChanged() { alert(xmlHttp.status); if (xmlHttp.readyState==4 && xmlHttp.status==200) { alert("Successfully Saved"); } } xmlHttp.Send(args); So, this is the code. I want to access the args from the page SaveInfo.aspx . how can access that to save those on the database using C# code on this page. Please help me.

    Dipak

    C# help question csharp javascript asp-net

  • How can access the arguments sent by (JavaScript request) ajax ?
    D dipak dipak

    Hello everybody, I have created a javascript (ajax) making a request to the server for save the infomation i have passed as arguments with the request. like this var args = "id=" + ID + "&name=" + Name + "&sex=" + Sex + "&age=" + Age; xmlHttp.open("POST","SaveInfo.aspx",true); xmlHttp.onreadystatechange = function theStateChanged() { if (xmlHttp.readyState==4 && xmlHttp.status==200) { alert("Successfully Saved"); } } xmlHttp.Send(args); these are OK. but i want to catch the args from my asp.net webpage. When i am using GET method for request, i am sending arguments by query string, and in .net page i can access that using Response.QuerySting["key1"].ToString(); But this time i am getting problem. how can i access the arguments passed. Please help me. Thanks in advance for help.

    Dipak

    C# help question csharp javascript asp-net
  • Login

  • Don't have an account? Register

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