nccsbim071 25 Junior Poster

y_minhua,

I wrote this post long time ago. But even then i was not able to solve this problem.

nccsbim071 25 Junior Poster

In BIOS, configure your SATA to IDE emulation. Some mbs just don't appreciate a mix of SATA and PATA drives, may not even recognise an added SATA drive when configured as SATA.

Hi gerbil,

Thanks for the reply.

How do i configure SATA as IDE emulation. Can you please give me any hint.

thanks

nccsbim071 25 Junior Poster

Try remove the 500gb hard disk and check whether the same problem occur. Than plug in again. If the same thing happen when you plug in the 500gb than it might the power supply might not have enough voltage to support the hard disk.

Hi Khakilang

Thanks for the reply.

After removing 500gb hard disk the problem does not occur.

Thanks

nccsbim071 25 Junior Poster

Hi,

I have a samll problem on my computer. I have using Windows XP professional service pack 3. I recently added 500GB SATA harddisk to my computer. Now my computer has two hard disks, 80GB PATA harddisk and 500BG SATA harddisk.

After i added this new SATA harddisk. When i boot my computer from shutdown state,operating system doesn't recognize keyboard and mouse, at this instance i have to press restart button to restart the computer only then both keyboard and mouse is detected by operating system.

I tried to searh on internet to look for solution, but still no help. I also tried some drivers from intel site but no help. By the way my motherboard version is Intel865GBF.

Any help please,

Thanks

nccsbim071 25 Junior Poster

Hi gerbil,

I don't know whether my computer is infected by malware or not.

but after removing some entries from hosts file my problem was solved and now i can access all google services just like old times.

Thanks,
Randhir

nccsbim071 25 Junior Poster

Hi Siemon,

Thanks for the reply. Your suggestion of removing host entries from hosts file did solve the problem.

Thanks a lot man,
You are great

nccsbim071 25 Junior Poster

Hi gerbil and oA9999,

Thanks for the reply.
Cryptographic service is running and is set to automatic.

I had to format my computer to install new os "windows7".I did install windows7 used for few days then i had some problems, motherboard did not support it fully. so i had to downgrade to windows xp sp3.

After installing xp sp3, i encountered this problem.

Still no solution.

Thanks,

nccsbim071 25 Junior Poster

Hi thanks for the reply,

My date and time is correct and is synchronized with time.windows.com.

Any other ideas.

nccsbim071 25 Junior Poster

Hi,

I am facing a really wierd problem, i just formatted my harddrive and installed windows xp service pack 3.

Now i can't access any of the google services. like gmail it get some certificate errors and not trusted site in mozilla and something like this in all other browser.

I can't log in to gtallk. It gives me error "Could not authenticate server"

and in google search all get the search results that are only related to my country.

I don't know what is happening.

any help please,

thanks

nccsbim071 25 Junior Poster

Hi, I have used an open source code from codeproject to read email from incoming mail server(POP Server). The code can be found at following location: http://www.codeproject.com/KB/IP/Pop3MimeClient.aspx

So far it works fine i can read emails.

My objective of using this code was to retrieve emails from POP server and process them.

My problem is: If i use gmails pop server "pop.gmail.com" and run the appplication. I get only those emails that i have not retrieved since the last time i run the application. but if i use my clients pop server everytime i run the application i get all the emails in the pop server.

for example: If i use gmail pop server: pop.gmail.com I have three emails in the pop server. I haven't run the application. I am running the application for the first time. Application reads the email, this time i will get 3 all the three email. I run the application second time, my application will not read any emails this time because i have already read the 3 existing one. This is fine, this is what i want. Now i send email to pop.gmail.com. I run the application again for the third time, this time i will only get the email that has just arrived that is the fourth one. This is good behaviour, this is what i want.

But if i use my clients pop server: No matter how many times i run …

kvprajapati commented: Good question, indeed! +10
nccsbim071 25 Junior Poster

Hi, I have created a window service and set some dependencies like on MSMQ, MSSQLSERVER and so. Everything is working nice. but i need to send another dependency for my service. That is on internet connection. My service is responsible for sending emails. As soon my server starts, my service starts too and it finds if there is anything to send, if there is, it starts to send email, if during sending it is not able to connect to the internet it cannot send email.

so i guess i should set my service dependency on internet connection too. I already set my window service dependency to MicrosoftSQL Server and Microsoft Message Queuing by editing the registry value.

by adding new multi string value named "DependOnService", Type "REG_MULTI_SZ" and space separated names of the services that my service depends upon for the Data.

For Microsoft SQL Server i set the value to "MSSQLSERVER" but i don't know the name of the internet service that i need to set dependency upon.

how can i do this, any help please Thanks

nccsbim071 25 Junior Poster

hi,
adatapost,
the link u gave me is one kind of solution, but not exactly what i was looking.

thanks
anyways,

nccsbim071 25 Junior Poster

i am sending email to the users using smtp client and MailMessage class.

i have been adding the addresses of multiple receivers in the to property of the object of MailMessage class. the problem is that the receiver can see the email addresses of other receipents. is there any way to hide the email addresses of other receipents.

i mean setting some property or something like that.

otherwise i will be left with only option to send individual email to the users.

any help
plesae

nccsbim071 25 Junior Poster

hi,
guys i found the solution to this problem. The problem was like this: I created a zip file in application folder and in .net 2.0 it is a rule that any change to the application files and folder causes the session to expire. As soon i created the zip file in the directory somewhere other than directory in application folder, everything worked fine.

anyways
thanks

nccsbim071 25 Junior Poster

hi,

i have a website where i provicde a link. On clicking the link a controller action method is called to generate a zip file after creation of zip file is done, i show the link to download the zip file by replacing the link to create a zip with the link to download the zip.


the problem is that after zip file creation is over and link is shown, when user clicks on the link to download the zip file, they are sent to login. After providing correct credentials in the login page they are prompted to download the zip file. they sould not be sent to the login page. In the action to generate zip file i haven't abondoned the session or haven't not done anything that abondons the session.

the user should not be sen't to login page after successful creation of zip file user should be able to download the file without login.

i search internet on this problem, but i did not find any solution. In one of the blog written by hanselman i found this statement that creates the problem with the session: Is some other thing like an Ajax call or IE's Content Advisor simultaneously hitting the default page or login page and causing a race condition that calls Session.Abandon? (It's happened before!)

so i thought there might be some problem with ajax call that causes the session to expire, but i don't know what is …

nccsbim071 25 Junior Poster

Hi
i want implement a windows services scheduled task.
I already created windows service. In a service i have implemented a timer.The timer is initialized at class interval. The timers interval is set in the start method of service and also it is enabled in the start method of the service. After timers elapsed event is fire i have done some actions.

My problem is that, i am in a dilemma. Lets say the action i have done in Elapsed event, lets say take one hour and the timers interval is set to half an hour. so there are chances that even if the previous call to elapsed event has not ended new call to elapsed event will occur.

my question will there be any conflict or is it ok or shall i use threads.
please give some advice

nccsbim071 25 Junior Poster

i found out the solution it was not related something to session. But i also learned something from this problem. For all ASP.NET MVC programmers out there. please notice: if u create a subdomain by url rewriting in asp.net mvc, browser will treat different subdomain as different websites. So browser is going to store a cookie for each subdomain.

For example: if you have www.somesite.com and it's subdomain test1.somesite.com and test2.somesite.com. If u visit each of the above ur, each url will have their own corresponding cookies

and same goes for sessions. different urls different asp.net sessions and cookies.

now about my problem, i used static class to get the url from the address bar, that's what(static class) created the problem. first i visited test1.somesite.com, and retrieved the url using the static class, and from that url i displayed the user data. i don't know but there was something with this static thing, it cached this site address somewhere in memory or server i don't know, if you guys know something about this plesae let me know. Now, after logging out with test1.somesite.com and again logging in with test2.someisite.com, i again called the same function to access the url, but it gave me the url of the site i visited last time, that's the reason why used to get the contents of the site i visited last time than the current one, and …

nccsbim071 25 Junior Poster

Hi,

In my website i have implemented custom session values. In which, on log on i set the session value to some object. This object is used to extract user specific data from db.

now the problem is If user logs in with : test1.somesite.com and logs off and again logs in with: test2.somesite.com that user is still receiving the data from object specific to test1.somesite.com.

the point is whichever site user frist logs in with the second time if he logs in with anathor subdomain he is always getting the data from previous sub domain login.

on log out from specific domain i cleared all the sessions(tried everything): by putting HttpContext.session["UserDetail"] = null;, HttpContext.Session.Abandon() and also HttpContext.Session.Clear();

but nothing seems to work

and i also don't have much idea how session variables are treated across subdomains.

I mean if i initialize a session with one value by visiting test1.somesite.com will that value also be visible if on the same computer and on same browser i also open test2.somesite.com.

any help please

nccsbim071 25 Junior Poster

I got my answer here: ASP.NET AJAX CHAT

The names i am referring to below is from above link:

i think the actual problem was with the timestamp thing and asynchronous behaviour of $.post. after calling "GetMessages()" method, even if the previous request to retrive chat message was not complete anathor call to same method used to fire due to setting timeout for "GetMessages()" method outside the $.post method. In my question you can see that timeout for "GetMessages()" method is set outside the $.post method. Now i set the timeout for "GetMessages()" method inside the $.post method. so that next call to "GetMessages()" only occur after 3 seconds of completion of current $.post method. I have posted the code below.

var t;
        function GetMessages() {
            var LastMsgRec = $("#hdnLastMsgRec").val();
            var RoomId = $("#hdnRoomId").val();
            //Get all the messages associated with this roomId
            $.post("/Chat/GetMessages", { roomId: RoomId, lastRecMsg: LastMsgRec }, function(Data) {
                if (Data.LastMsgRec.length != 0)
                    $("#hdnLastMsgRec").val(Data.LastMsgRec);
                if (Data.Messages.length != 0) {
                    $("#messagesCont").append(Data.Messages);
                    if (Data.newUser.length != 0)
                        $("#usersUl").append(Data.newUser);
                    $("#messagesCont").attr({ scrollTop: $("#messagesCont").attr("scrollHeight") - $('#messagesCont').height() });
                    $("#userListCont").attr({ scrollTop: $("#userListCont").attr("scrollHeight") - $('#userListCont').height() });
                }
                else {
                }
                t = setTimeout("GetMessages()", 3000);
            }, "json");

        }

I addition to that i also changed few things. As suggested by ignatandrei i placed $("#hdnLastMsgRec").val(Data.LastMsgRec); immediately after function(Data) {.

and also

as said by MikeSW i changed the data retrieval process. Previously i was extracting data on the basis of timespan(retrieve all the data associated with
this room id that has …

nccsbim071 25 Junior Poster

I built an ajax chat in one of my mvc website. everything is working fine. I am using polling. At certain interval i am using $.post to get the messages from the db. But there is a problem. The message retrieved using $.post keeps on repeating. here is my javascript code and controller method.

var t;        
        function GetMessages() {        
            var LastMsgRec = $("#hdnLastMsgRec").val();
            var RoomId = $("#hdnRoomId").val();
            //Get all the messages associated with this roomId
            $.post("/Chat/GetMessages", { roomId: RoomId, lastRecMsg: LastMsgRec }, function(Data) {
                if (Data.Messages.length != 0) {
                    $("#messagesCont").append(Data.Messages);
                    if (Data.newUser.length != 0)
                        $("#usersUl").append(Data.newUser);
                    $("#messagesCont").attr({ scrollTop: $("#messagesCont").attr("scrollHeight") - $('#messagesCont').height() });
                    $("#userListCont").attr({ scrollTop: $("#userListCont").attr("scrollHeight") - $('#userListCont').height() });
                }
                else {
                }
                $("#hdnLastMsgRec").val(Data.LastMsgRec);
            }, "json");
            
           
            t = setTimeout("GetMessages()", 3000);
        }

and here is my controller method to get the data:

public JsonResult GetMessages(int roomId,DateTime lastRecMsg)
        {
            StringBuilder messagesSb = new StringBuilder();
            StringBuilder newUserSb = new StringBuilder();            
            List<Message> msgs = (dc.Messages).Where(m => m.RoomID == roomId && m.TimeStamp > lastRecMsg).ToList();
            if (msgs.Count == 0)
            {
                return Json(new { Messages = "", LastMsgRec = System.DateTime.Now.ToString() });
            }            
            foreach (Message item in msgs)
            {
                messagesSb.Append(string.Format(messageTemplate,item.User.Username,item.Text));
                if (item.Text == "Just logged in!")
                    newUserSb.Append(string.Format(newUserTemplate,item.User.Username));
            }            

            return Json(new {Messages = messagesSb.ToString(),LastMsgRec = System.DateTime.Now.ToString(),newUser = newUserSb.ToString().Length == 0 ?"":newUserSb.ToString()});
        }

Everything is working absloutely perfect. But i some messages getting repeated. The first time page loads i am retrieving the data and call GetMessages() function. I am loading the value of field hdnLastMsgRec the first time page loads and after the value for this field are set by the …

nccsbim071 25 Junior Poster

thanks adatapost, reading the article helped me solved my problem.

I also aked the same question on www.stackoverflow.com and i got the solution there. click here for solution.

kvprajapati commented: Thanks! +8
nccsbim071 25 Junior Poster

It's long but simple. I have only explained the problem in detail.

After searching a lot i did not get any answers and finally i had to get back to you. Below i am explaining my problem in detail. It's too long, so please don't quit reading. I have explained my problem in simple language.

I have been developing an asp.net mvc project. I am using standard ASP.NET roles and membership. Everything is working fine but the remember me functionality doesn't work at all. I am listing all the details of work. Hope you guys can help me out solve this problem.

I simply need this:

I need user to login to web application. During login they can either login with remember me or without it. If user logs in with remember me, i want browser to remember them for long time, let's say atleast one year or considerably long time. The way they do it in www.dotnetspider.com,www.codeproject.com,www.daniweb.com and many other sites. If user logs in without remember me, then browser should allow access to website for some 20 -30 minutes and after that their session should expire. Their session should also expire when user logs in and shuts down the browser without logging out.

Note: I have succesfully implemented above functionality without using standard asp.net roles and membership by creating my own talbes for user and authenticating against my database table, setting cookie and …

nccsbim071 25 Junior Poster

hi guys
i asked this question but i solved the problem. Actually i got the wrong question.
sorry about that.

nccsbim071 25 Junior Poster

thanks for the reply ramesh, i will definately try

nccsbim071 25 Junior Poster

Hi everybody

I am developing an application in asp.net mvc where i need to have Chat application intergrated in the web page. The chat application should be able to support group chat, private chat, simple file transfer and user should be able to create their own rooms.

Can u people tell me where i can buy a simple chat application with above functionalities. I need it immediately.

or

you could just suggest how to create my own application. The technology to use or just any idea to start.

As i said, i need this immediately, buying asp.net chat application with above functionalities is the best option.

and most important i should be able to integrate chat application in my existing MVC project. We are using ASP.NET MVC, Microsoft SQL Server 2005, Linq To Sql as database interaction tech and C#.

Thanks

nccsbim071 25 Junior Poster

Hi
Is it possible to execute normal php code under zend framework php.
As far as i have heard php is a MVC model style coding. But i have not done MVC programming in php.

I have an appplication where i need small modification. I have done some programming in normal php. So i was wondering if i could just write my own code in normal php and integrate it with zend framewrok php. They also call it smarty and zend php.

I just need to have a section where i need to upload a image file to the server and save the image file name to the database.
Please give suggestions

nccsbim071 25 Junior Poster

ya
i already checked the directory structure it's ok.

i think there is something to do with asp.net mvc

nccsbim071 25 Junior Poster

Hi
I have a web page where i need to use some javascript.
If i write all the javascripts and jQuery javascripts in the aspx page it works perfect.
But when i write all the javascripts in separate file called scripts.js and include scripts.js in the aspx page it doesn't work.
Here is how i have included the scripts file in my aspx page or let's say master page:

<script src="../../Scripts/scripts.js" type="text/javascript"></script>

I am using asp.net mvc.

I have been using asp.net and i used to do the same thing in asp.net and it used to work fine but it doesn't work in asp.net mvc. I have been noticing this for quite some time now.

Any advice
Thanks

nccsbim071 25 Junior Poster

Hi
i want to create a website just like "active collab" where number of clients can register and manage their software projects progress or absloutely any kind of projects and track the progress of project.

I want the client or clients to give facility to register to our project management website(create account). after account creation is successful, i want to redirect them to their corresponding account domain associated with my project management website.

For example:
If my project management website is:www.projectmgt.com
a client with username "sam" registered to above project management site"www.projectmgt.com". After successfully creation of this user account i want to redirect him to sam.projectmgt.com.

or is there any other idea to implement this kind of facility
i don't want this: if user "sam" registered to "www.projectmgt.com", i dont want to redirect him to "www.projectmgt.com/sam"

I hope i was able to explain well.

Please help

nccsbim071 25 Junior Poster

Hi,
i hava a dropdownlist in asp.net mvc page. On selecting particular select item from dropdownlist i have made an ajax post request to the controller method that returns me the result. Everything is working fine. i also get the required result. But the problem is how shall i extract required things from json result.

Here is my ajax request:

<script  <script type="text/javascript">
function getContent() {
            var Sid = document.getElementById("hdnSectionId").value;          
            var Lid = document.getElementById("DdLanguageTrans").options[document.getElementById("DdLanguageTrans").selectedIndex].value;
            var sectionOrder = document.getElementById("hdnSectionOrder").value;
            $.ajax({                              
                type: "POST",
                url: "/AjaxRequest/ControllerMethod",               
                data: "Sid=" + Sid + "&Lid=" + Lid + "&sectionOrder=" + sectionOrder,
                success: function(result) {              
                alert(result);
                },
                error: function(req, status, error) {
                    alert("Error occured.");
                }
            });
        }
       
    </script>

Here is my controller method:

public JsonResult ControllerMethod(int Sid, int Lid, int sectionOrder)
        {
            try
            {
                HomeCMS content = new HomeCMS();
               
                HomeCMS CMS = _service.HomeContentRepository.GetAllBySectionIdTransTest(Sid, Lid, sectionOrder);
                content.Title = CMS.Title;
                content.Content = CMS.Content;             
                return Json(new { Title = content.Title, Content= content.Content});               

            }
            catch
            {
                JsonResult res = new JsonResult
                {
                    Data = false
                };
                return res;
            }
        }

Everything is fine. I can only see result by alert. How can is just read the result. Something like this "result.Title" and "result.Content"

nccsbim071 25 Junior Poster

What shall i do to fix this

nccsbim071 25 Junior Poster

Hi San24,

This is not a big problem. You can always iterate through child controls in any parent Control. Like this:

Method1
Let's say i have a Windows forms and i have some contorls on it. If i want to access the controls on the form or properties of controls i can always do this.

In this case i iterate "Enabled" property of controls on form.

foreach (Control c in this.Controls)
            {
                MessageBox.Show(c.Enabled.ToString());
            }

With this in mind you can iterate through controls in parent, then check if control is enabled or whatever you have set, and then if contorl is enabled, get it's type declare anathor variable that is of this type and then iterate through its child control and check if it is enabled and so on. I hope you understand what i mean to say. Just think and use some logic you will get it.

Method2
Anathor simple method i can suggest is that.
You can store the controls reference each time they are enabled or disabled (or whatever way you have used) in the hierarchy of controls. Store the controls reference in "EnableChanged" event. And then when somebody uses that control, you will always the control that user is working on.

Work on it. If you have any problems please feel free tell me anytime.

Thanks

nccsbim071 25 Junior Poster

I am using Setup and deployment project. I also have a custom class derived from Installer class. I can check if process is running in "BeforeUninstall" event. if i find process running i can show custom message that "Please exit all the applications before peforming uninstall". But how do i exit the installer if user "cancels" the installation by pressing the button that i show in message box.

nccsbim071 25 Junior Poster

Hi
I have an application installed.
I need to have a functionality that prevents user from uninstalling the application if application is currently running. I uninstall appliation from Add/Remove programs.

I have functionality in my system that allows it to be minimized to the task bar and to system tray. During minimized to system tray user can access system tray menu and click "Show" menu to see the application windows again. During minimized state in system tray all the application windows are hidden.

If application is minimized to task bar and i try to uninstall the application, windows wont allow me to uninstall it and show me some message like "Following appliation should be closed before continuing install". This is a good behaviour. This is what i want. But same message don't appear if system is minimized to system tray. During system tray minimized state no application window is visible to the user. And programming is running. Still window usninstalls my application.

How can i prevent user from uninstalling the application if application is minimized to system tray.

Please help
Thanks

nccsbim071 25 Junior Poster

Thanks,
Sknake, you provided a whole lot of information.

I solved my problem by using alternate method. I made a php page webrequest that will zip the files on the server and it gives me confirmation that file zip is successful.

And then i made a FTPWebRequest to download those zipped file and then unzip it on the local computer.


Any way i solved my problem.

nccsbim071 25 Junior Poster

Hi
I have beed developing an appliction that will start an executable on remote computer to zip the files. I provide the location of files to zip.

Now the problem is that i want to start the executable on linux server that hosts the files. I want to start an executable on linux server that zips the given files to specified location.

Is it possible to start executable on linux server from my windows client computer.

I searched on internet and also asked on fellow php programmers, they have been doing this using the exec command of php to invoke the zip executable on linux server and they have passed the full name of files to zip.

I just want to invoke the same executable that current php code is executing.

Is it possible to do that.:-/

nccsbim071 25 Junior Poster

Sorry for the title, it actuall is "Compress file on the fly during FTP file download"

nccsbim071 25 Junior Poster

I am using MySql version 5.0.51b.
and i am successfully able to dump the file but with "use db_name" statement.

Anyway thanks for reply

nccsbim071 25 Junior Poster

Hi i want to compress the file on the file during FTP file download. Is it possible to do that.
I have an application that downloads the files from remote FTP server as windows forms application using VB.net

Please help
Thanks

nccsbim071 25 Junior Poster

Hi everybody

I have been using mysqldump utility to dump the contents of database to a file.

Everything is ok
but i want to eliminate the "USE `db_name`;" statement that appears in mysqldump.

Is it possible to do that.
Please help:sweat:

nccsbim071 25 Junior Poster

Ok i solved the problem:

1. string temp = Server.MapPath(Request.ApplicationPath);
2. string tempPath = Path.Combine(temp.Substring(0, (temp.Length - 21)), "IManageProject\\Images");
3. filePath = Path.Combine(tempPath, Path.GetFileName(fileName));
4. file.SaveAs(filePath);

I i just got the path to the root of the project using the code in line 1.
Then is used the substring on temp variable and got the path to the root and then finally combined it with the path to the folder i wanted.
and save the file.

nccsbim071 25 Junior Poster

the conditon is as you have said. but i have image upload code in a project A, i want to save the uploaded image to folder in projectB.

It's not about class, that i know just adding the reference will do, but this is something different.

nccsbim071 25 Junior Poster

Hi
I have a solution file that consist of two different projects.
In one of the projects i have a code to upload the file and save it.

Currently the file is saved in same project directory that consist of code to upload the file.

I want to upload the file in other project directory.

Is it possible.

I am developing the application in asp.net mvc.

Please help

nccsbim071 25 Junior Poster

I am using MySQL with a wamp.

nccsbim071 25 Junior Poster

Hi Marc, thanks a lot for the reply,

finally i got someone telling me something.

I will definitely try this
If you know a lot about this please help me, i am really stuck
Please add me in your messenger:

My id is randhir.uba@gmail.com
My skype id is randhir.uba

or if you use other please let me know, skype would also be good

Thanks again

nccsbim071 25 Junior Poster

Thanks Sknake this is the way i did finally.

nccsbim071 25 Junior Poster

Hi
Please tell vb.net equivalent of following method:

private void LookForUpdates()
        {
            System.Threading.ThreadStart timerThreadStart = new System.Threading.ThreadStart(delegate()
            {

                sua = new ShowUpdatAvailable();
                DelGetUpdateArgs delGetUpdateArgs = new DelGetUpdateArgs(this.GetUpdateArgs);
                sua.GetUpdateArgs = delGetUpdateArgs;
                sua.StartLookingForUpdate();

            });

            timerThread = new System.Threading.Thread(timerThreadStart);
            timerThread.Start();
        }

I tried using C# to VB.NET code converter which gave me this:

Private Sub LookForUpdates()
            Dim timerThreadStart As New System.Threading.ThreadStart(Function() Do

        sua = New My.ShowUpdatAvailable()
        Dim delGetUpdateArgs As New DelGetUpdateArgs(AddressOf Me.GetUpdateArgs)
        sua.GetUpdateArgs = delGetUpdateArgs

        sua.StartLookingForUpdate()
            End Function)

            timerThread = New System.Threading.Thread(timerThreadStart)
            timerThread.Start()
        End Sub

Which on build in visual studio 2005 gives an error.

Please help

nccsbim071 25 Junior Poster

If you are printing using a PrintDocument object then you can try altering the .DefaultPageSettings.PaperSize property.

Thaanks Ryshad your solution worked.

nccsbim071 25 Junior Poster

How do i start mysqlserver with option of --log-bin using phpmyadmin.

Where do i set mysql server startup options in phpmyadmin.

nccsbim071 25 Junior Poster

I have been developing a MySQL database backup and restore appliation in windows forms. This application crates a dump of a mysql database at remote location and imports everything from the dump file back into local mysql database.

MySQL database is located at the server which hosts my php website. So it is obvious that if i want to access that mysql server from my local network, i have to allow mysqlserver at remote location to allow me to connect from my company's local network, by adding the public ip of my network in the lists of ip that remote mysqlserver can allow connections from. I set this thing in CPanel.

It's working fine.

But my question is that, i have anathor software called let's say mysqlyog, that can connect to remote mysqlserver without allowing my local networks ip in the cpanel of remote server.

So i mean to say that if mysqlyog can do that, why my application can't do that the same way msqlyog does.

What kind of mechanism do they apply?
i just don't know how to do this in windows forms and C#.

how do they bypass the firewalls and or just connect to remote mysqlserver.

What is the trick?