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
C

Chetan Ranpariya

@Chetan Ranpariya
About
Posts
292
Topics
41
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can not connect to SSL web service from windows mobile.
    C Chetan Ranpariya

    Hi friends, Finally I found the solution of this problem. I had to create a class which implemented ICertificatePolicy interface as following.

    public class AlwaysTrustedCertificatePolicy : ICertificatePolicy
    {
    #region ICertificatePolicy Members
    public bool CheckValidationResult(ServicePoint srvPoint,
    System.Security.Cryptography.X509Certificates.X509Certificate certificate,
    WebRequest request,
    int certificateProblem)
    {
    return true;
    }
    #endregion
    }

    And before calling the first ever method of service I created an instance of this class and assign it to "CertificatePolicy" of "ServicePointManager" class.

    ICertificatePolicy certificatePolicy = new new AlwaysTrustedCertificatePolicy();

    ServicePointManager.CertificatePolicy = certificatePolicy;

    var serviceClient = new ServiceClient();

    serviceClient.Login(username, password);

    This worked for me very well... but this is I guess work around not the proper solution. If any body finds the solution please post.

    Thanks and Regards, Chetan Ranpariya

    Mobile help sysadmin security

  • Can not connect to SSL web service from windows mobile.
    C Chetan Ranpariya

    Hi Joel, Thanks for the reply. I tried the tip you mentioned. I am currently running the application on device emulators. I changed the date time information of the emulator to my system date time but it didn't work. The web service I m consuming is in different timezone, and I tried to change the emulator datetime information to that timezone too, but that also didn't help me. I event asked the service providers but according to them there is nothing changed from their side except the service url which I am currently using. If I refer the same service url in a windows desktop application, everything works fine. I am really stuck. Please help me.

    Thanks and Regards, Chetan Ranpariya

    Mobile help sysadmin security

  • Can not connect to SSL web service from windows mobile.
    C Chetan Ranpariya

    Hi Friends, I am developing a Windows Mobile application using 6.0 professional SDK. Here I am consuming a web service which is hosted on HTTPS. I am able to add the web reference successfully but when I call a method of the service using proxy it throws following exception. "Could not establish trust relationship with remote server." The same scenario works fine if I test it with a desktop windows application. I am able to call the method successfully and I receive the response too, but I dont know why it is not working with Windows Mobile. I am able to browse the websites from the mobile browser so there is no issue about the connection. Please help me soon friends I m running out of time...I have search all over the world during last 2 days but could not find any satisfactory and working solution. Thank you all in advance.

    Thanks and Regards, Chetan Ranpariya

    Mobile help sysadmin security

  • asp.net c# webcam
    C Chetan Ranpariya

    Hi... If you have seen the Gmail webcam support from browser while chatting, the same can be implemented. To enable webcam support Gmail asks to download an activeX at first. So you also can create and API in C# which will capture the image from the webcam and ask the user to download it when he/she wants to have webcam support. You API will search for the webcam on various ports of the users computer and streams images from webcam to your server and also display it to the user in a window. I hope this approach will give some idea and lead to your goal. Thanks and regards, Chetan Ranpariya

    Thanks and Regards, Chetan Ranpariya

    C# csharp asp-net visual-studio help tutorial

  • OpenFileDialog in Web...
    C Chetan Ranpariya

    Hi Friends, I dont know in which section should I post this question coz it related to both C# and ASP.NET. I have very strange requirment. I our project we developed our application in windows forms project. The project contains a bunch of class libraries and number of windows usercontrol libraries. Now we are hosting those user controls to the web. Everything is working fine till the control with FileOpenDialog in it comes in picture. When that user control opens in web it throws the followin exception. "Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission contact your system administrator, or use the microsoft .net frameword configuration tool. Request for permission type 'system.security.permissions.fileiopermission, mscorlib, version=2.0.0.0, Cultrue=neutral, pulickeytoken=xxxsdlff' failed." I know the reason why this exception is coming. what I want to know is , is there any work aroud of this problem except using asp.net "file" control? Thank you all in advance. Thanks and regards, Chetan Ranpariya

    Thanks and Regards, Chetan Ranpariya

    C# csharp winforms question asp-net hosting

  • Windows Control on Web Form
    C Chetan Ranpariya

    Hi, Thank you very much for the reply. You are right the IP address 127.0.0.1 is for localhost. But I dont know how but they works in different way. I am not putting my Control DLL in bin folder of my WebSite (rememeber its WebSite not Web Application) but i am putting it in WebApp folder itself and it working fine for localhost. I tried by creating a web site on server 127.0.0.1 instead of localhost. It created a the project at the same place as it creates when we use localhost it is C:\Inetpub\localhost. Then I tried with differenct syntaxes of classid of OBJECT tag. classid="clsid:41a5e061-af81-4e45-b383-33948f4f6269" classid="http:DragAndDropControlLibrary.dll#DragAndDropControlLibrary.ListboxDrag" Still it did not work. I tried to put the Control DLL to the bin folder of the website but could not succeed. I hope this can clear the area. Thank you again.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET help

  • Windows Control on Web Form
    C Chetan Ranpariya

    Hi friends, I am stuck in a strange problem. I am trying to host Windows Custom Control on Webpage. I created a Windows Control Libray and put the DLL in the web application's root folder. in aspx page I have written object tag with classid="http:ControlLibrary.dll#ControlLibrary.ListBosDrag" Now when I open the page using url "http://localhost/DragDropWeb/Default.aspx" it works fine. but when I replace localhost with 127.0.0.1 it stops working means windows control appears as a small inaccessible box on the page. I tried by putting my DLL in C:\Inetpub\wwwroot, but didnt work. I also change the classid to "Client/1.0.0.0/ControlLibrary.dll#ControlLibrary.ListBosDrag", that too didnt work. I am not sure if I am missing something somewhere or doing something wrong. Please help me. Thank you all in advance.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET help

  • How to suggest possible usernames to the user
    C Chetan Ranpariya

    Hey Navneeth, Thank you very much for the reply.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET database algorithms tutorial

  • How to suggest possible usernames to the user
    C Chetan Ranpariya

    Hi Friends, I am working on a web application. I have to implement UserRegistration functionality. In that when user clicks on the "Submit" button after filling up all the information in Registration form my code should check for if the given username exists in the database. If it is already in the database then 3 new possible username should be displayed to the user to try with. I have implemented up to the checking in the database and I able to get whether the given username exsists in the database. But I need some kind of logic or algorithm using which I can create new usernames for the user and display choices to the users. Use enters FirstName, LastName and Location in the Registration form which can be consider to generate new usernames. I dont need the code, I just want an overall logic to create for generating usernames. Thank you all in advance.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET database algorithms tutorial

  • messagebox in vb.net with asp.net
    C Chetan Ranpariya

    Hi, Implement the follwing solution. Put hyperlink button on your page and create a click event handler for it as follwing. protected void lbtn_Click(object sender, EventArgs e) { Response.Redirect(YourURL); } Write javascript function as follwing. function confirmation() { return window.confirm("Are sure u want to redirect"); } and in Page_Load write the following statement. lbtn.Attributes.Add("onclick", "javascript:return confirmation();"); I am sure this will solve your problem. Thanks and Regards, Chetan Ranpariya

    ASP.NET csharp java asp-net tools

  • Query
    C Chetan Ranpariya

    HI, Try the follwing way. select * from where like '%Economics Review%' I hope this will help you.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET database algorithms help tutorial

  • page is not working perfectly in IE7.0
    C Chetan Ranpariya

    Hi, Can you tell us how it is not working fine?

    Thanks and Regards, Chetan Ranpariya

    ASP.NET css com question

  • Filter a DataView
    C Chetan Ranpariya

    Hi, YOu can do this by following way. dv.RowFilter = "coluname in (value1, vaue2, value3)" I hope this will help you.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET tutorial

  • tooltip on grid cell and grid column header
    C Chetan Ranpariya

    Hi, You can assign tooltop to header and cell of the datagrid at runtime using ItemDataBound event of datagrid. void dg_ItemDataBound(object sender, DataGridItemEventArgs e) { if (e.Item.ItemType = ListItemType.Header) { e.Item.ToolTip = "tooltip"; e.Item.Cells[0].ToolTip = "toolTip"; } } Above code is in C# so apply vb syntax to implement. I hope this will help you. Thanks and Regards, Chetan Ranpariya

    ASP.NET csharp css help tutorial

  • Problem with userControl
    C Chetan Ranpariya

    Hi, Why dont u put 3 usercontrols on different panel controls and make them visible/invisible as per your search criteria? I hope this will help you.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET question help

  • How to make Username password page ???
    C Chetan Ranpariya

    Hi, Put 2 textboxes on ur aspx page. 1st for username and 2nd for password. Put 1 Label control to show error message. Put 1 button also. On the click event event of the button write code which compares values from the textboxes to the values in ur datasource like sql server, xml file or MS - Access or MYSQL. If the values are correct then redirect the user to the desired page otherview set Label's text property to the error message "Username/Password is not correct". I hope this is fast enough. I hope this will help you.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET tutorial csharp html asp-net com

  • password strength
    C Chetan Ranpariya

    Hi, "It is not working"??????????????????????????????????? what do u mean by this? Do u get any error?

    Thanks and Regards, Chetan Ranpariya

    ASP.NET question announcement

  • How to make Username password page ???
    C Chetan Ranpariya

    Get it[^]

    Thanks and Regards, Chetan Ranpariya

    ASP.NET tutorial csharp html asp-net com

  • Problem with userControl
    C Chetan Ranpariya

    Hi, Here u r creating an instance of ur usercontrol in page_load of default.aspx page so it will be created everytime your aspx is loaded. Process of creation of new instance of usercontrol causes page_load of usercontrol to execute hence your ddlcategory will load data again in itself hence it wont preserve its value and so ddlproduct doesnt. The better way it to drang and drop your usercontrol in page then use it. of the second way is use if(!ispostback) block arount your code in page_load. I am not sure the second way will work perfectly but the first option will 100% work. I hope this will help you.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET question help

  • Interface irritation
    C Chetan Ranpariya

    Hi, Why dont u put them in differennt column? and if u insist them to be diplayed to in single cell then u can further create a table with two columns inside the cell and put listboxex in those columns. I hope this will help you.

    Thanks and Regards, Chetan Ranpariya

    ASP.NET csharp asp-net data-structures help question
  • Login

  • Don't have an account? Register

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