Search found 54 matches

by sidbhatt
Fri Oct 16, 2015 10:03 am
Forum: Visual Basic .NET and ASP.NET
Topic: how to make boolean value to a checkbox?
Replies: 1
Views: 3119

Re: how to make boolean value to a checkbox?

hello,
Click "Checkbox" in Edit Tag. See Field Setup->Edit Tag in help file.
by sidbhatt
Fri Oct 16, 2015 9:38 am
Forum: Visual Basic .NET and ASP.NET
Topic: difference between model and entity
Replies: 1
Views: 3128

Re: difference between model and entity

Entity Entity means an object that is a single item that the business logic works with, more specifically those which have an identity of some sort. Thus, many people refer to ORM-mapped objects as entities.Some refer to as "entity" to a class an instance of which represents a single row ...
by sidbhatt
Fri Oct 16, 2015 9:13 am
Forum: Visual Basic .NET and ASP.NET
Topic: how to access column value of gridview under rowdatabound event
Replies: 1
Views: 3140

Re: how to access column value of gridview under rowdatabound event

hello,
You need to use gridView.FindControl("controlName"); to get the control in the row.

Example:

//Find textbox control
TextBox txtname = (TextBox)e.Row.FindControl("txtName");
string Name = txtname.Text;
thanks...........
by sidbhatt
Fri Oct 16, 2015 9:09 am
Forum: Visual Basic .NET and ASP.NET
Topic: HOW TO UPDATE A SQL SERVER DATABASE
Replies: 1
Views: 2981

Re: HOW TO UPDATE A SQL SERVER DATABASE

SQL UPDATE Syntax:

UPDATE table_name
SET column1=value1,column2=value2,...
WHERE some_column=some_value;

example like,
table name= customer,colum1=contact name,colum2=city,

UPDATE Customers
SET ContactName='Alfred Schmidt', City='Hamburg'
WHERE CustomerName='Alfreds Futterkiste';
by sidbhatt
Fri Oct 16, 2015 8:54 am
Forum: Visual Basic .NET and ASP.NET
Topic: difference between visual c++ and visual c++.net
Replies: 1
Views: 2891

Re: difference between visual c++ and visual c++.net

hi, There's no such thing as "C++.NET". There's C++/CLI, which is basically C++ with Microsoft extensions that allow you to write code targeting the .NET framework. C++/CLI code compiles to CLR bytecode, and runs on a virtual machine just like C#. I'll assume you're actually talking about ...
by sidbhatt
Tue Oct 13, 2015 11:19 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: i cannot get this variable through these quotes
Replies: 2
Views: 3091

Re: i cannot get this variable through these quotes

try this,
echo '<tr onclick="myfunction(\'test.php?myvar=' . $myvar . '\')" >';
by sidbhatt
Mon Oct 12, 2015 9:40 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Using PHP - How to create a variable in XML?
Replies: 1
Views: 2807

Re: Using PHP - How to create a variable in XML?

The XML language doesn't have variables. If you want the contents of a PHP variable in your XML document, just pass the variable to the function: $value = 'Some text'; $textNode= $xml->createTextNode($value); When using variables in PHP you don't wrap them in quotation marks, especially not single q...
by sidbhatt
Mon Oct 12, 2015 9:38 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: How can we increase the execution time of a php script?
Replies: 1
Views: 2784

Re: How can we increase the execution time of a php script?

hi, Default time allowed for the PHP scripts to execute is 30s defined in the php.ini file. The function used is set_time_limit(int seconds). If the value passed is ‘0’, it takes unlimited time. It should be noted that if the default timer is set to 30 sec and 20 sec is specified in set_time_limit()...
by sidbhatt
Mon Oct 12, 2015 9:37 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: What are the various methods to pass data from one web page to another web page?
Replies: 1
Views: 2728

Re: What are the various methods to pass data from one web page to another web page?

Different methods to pass data from one web page to another: 1. Store the data in a session variable. By storing the data, the data can be passed from one page to another. 2. Store data in a cookie: By storing data in a persistent cookie, data can be passed from one form to another. 3. Set the data ...
by sidbhatt
Mon Oct 12, 2015 9:36 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: How to create a text file in php?
Replies: 1
Views: 2884

Re: How to create a text file in php?

hi,
to create a file in php,

$filename = "/home/user/guest/newfile.txt";
$file = fopen( $filename, "w" );
if( $file == false )
{
echo ( "Error in opening new file" ); exit();
}
fwrite( $file, "This is a simple test\n" );
fclose( $file );
by sidbhatt
Mon Oct 12, 2015 9:35 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
Replies: 1
Views: 2920

Re: What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?

Mysql_fetch_array Fetch a result row as an associative array, a numeric array, or both. Mysql_fetch_object ( resource result ) Returns an object with properties that correspond to the fetched row and moves the internal data pointer ahead. Returns an object with properties that correspond to the fet...
by sidbhatt
Mon Oct 12, 2015 9:33 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Explain how to execute a PHP script using command line.
Replies: 1
Views: 3030

Re: Explain how to execute a PHP script using command line.

PHP script using command line can be executed using SAPI (Server Application programming Interface). Using SAPI Command Line Interface the PHP code can be passed to execute directly

Example:
Php –r ‘print_r(get_defined_constanrs());

From a shell, php –v will display whether the SAPI is CLI or CGI
by sidbhatt
Mon Oct 12, 2015 9:32 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: How can we know the number of days between two given dates using PHP?
Replies: 1
Views: 2926

Re: How can we know the number of days between two given dates using PHP?

The start date and end date can be first found as shown below:

$date1= strotime($start_date);
$date2= strotime($end_date);
$date_diff = (($date1)- ($date2)) / (60*60*24)
by sidbhatt
Thu Oct 08, 2015 11:31 am
Forum: Visual Basic .NET and ASP.NET
Topic: can we use public before interface?
Replies: 1
Views: 2785

Re: can we use public before interface?

By default, all methods in an interface are decleared as public, abstract. because interface methods will implemented by third party vendors, so we should not use static and final before interface methods.
by sidbhatt
Thu Oct 08, 2015 11:20 am
Forum: Visual Basic .NET and ASP.NET
Topic: Diff ways of calling javascript from Asp.net page
Replies: 1
Views: 2861

Re: Diff ways of calling javascript from Asp.net page

three methods are there ,
1.RegisterClientScriptBlock() Methods.
2.RegisterStartupScript() Methods.
3.RegisterOnSubmitStatement() Methods. all are use for calling javascriot from asp.net page
by sidbhatt
Thu Oct 08, 2015 11:06 am
Forum: Visual Basic .NET and ASP.NET
Topic: Which are the important namespaces during localization and globalization?
Replies: 1
Views: 3464

Re: Which are the important namespaces during localization and globalization?

There are two most important namespaces: System.Globalization - contains classes that define culture-related information, including the language, the country/region, the calendars in use, the format patterns for dates, currency and numbers, and the sort order for strings. System.Resources - provides...
by sidbhatt
Thu Oct 08, 2015 11:04 am
Forum: Visual Basic .NET and ASP.NET
Topic: What is the use of resource manager class?
Replies: 1
Views: 3213

Re: What is the use of resource manager class?

You can use the ResourceManager Class to retrieve embedded resources (resources that have been compiled into an application or class library) at run time.
by sidbhatt
Thu Oct 08, 2015 10:55 am
Forum: Visual Basic .NET and ASP.NET
Topic: How do we set session Timeout?
Replies: 1
Views: 3017

Re: How do we set session Timeout?

<configuration>
<system.web>
<sessionState timeout="20"></sessionState>
</system.web>
</configuration>
by sidbhatt
Thu Oct 08, 2015 10:51 am
Forum: Visual Basic .NET and ASP.NET
Topic: Can we use diff languages in single application?
Replies: 1
Views: 3051

Re: Can we use diff languages in single application?

hi, NET doesn't care about your choice of language, a single application (multiple DDLs) can (generally) use any combination of .NET languages. There are even ways to mix multiple .NET languages in the same DLL (assembly), but that's not supported by Visual Studio. There are a handful of caveats whe...
by sidbhatt
Thu Oct 08, 2015 10:46 am
Forum: Visual Basic .NET and ASP.NET
Topic: What are resource files and how do we generate resource files?
Replies: 1
Views: 3003

Re: What are resource files and how do we generate resource files?

Resource files : Resource files are typically any non-executable data file used by your application, such as image, audio, and video files. A resource file can also have specific meanings in certain contexts. For example, in the context of application localization, resource files refer to .resx fil...
by sidbhatt
Thu Oct 08, 2015 4:46 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: how to display rows in Columns
Replies: 1
Views: 2718

Re: how to display rows in Columns

try this, foreach($records as $key => $row) { foreach($row as $field => $value) { $recNew[$field][] = $value; } } //This creates a new array composed/transposed with the field names as keys and //the "rowed" values as sub-arrays. echo "<table>\n"; foreach ($recNew as $key => $val...
by sidbhatt
Thu Oct 08, 2015 4:37 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: code for drop down menu
Replies: 1
Views: 2604

Re: code for drop down menu

hi, your java script code is, <script language="JavaScript" type="text/JavaScript"> <!-- function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </s...
by sidbhatt
Thu Oct 08, 2015 4:32 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Creating Icons in Address Bar
Replies: 1
Views: 2629

Re: Creating Icons in Address Bar

hi,
make a file named favicon.ico and place it in the directory.
You also need a link tag in the head of your html document... like this:
CODE: SELECT ALL
<link rel="icon" href="images/yousite.ico" type="image/x-icon" />

thanks...
by sidbhatt
Wed Oct 07, 2015 12:14 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Can long image filenames in HTML cause high bandwidth?
Replies: 1
Views: 2633

Re: Can long image filenames in HTML cause high bandwidth?

No, that is certainly not the cause.No long image filenames in HTML cause not high bandwidth.

thanks....
by sidbhatt
Wed Oct 07, 2015 12:01 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: define XML sitemap and how to create that ?
Replies: 1
Views: 2671

Re: define XML sitemap and how to create that ?

Simply say that, XML sitemap is created for only search engines. This consist Google can indexing your site easily and quickly. Submitting your XML sitemap to search engines all search engines like Google, Yahoo, and MSN will help your blog as well as website..There is some online tool is available ...
by sidbhatt
Wed Oct 07, 2015 11:58 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Difference between XML sitemap and Html sitemap?
Replies: 1
Views: 2900

Re: Difference between XML sitemap and Html sitemap?

hi, HTML Sitemap: It's for human visitor. This sitemap accumulates all website link on one page. We can put 100 links on one page. XML Sitemap: XML sitemap, sometimes called Google sitemap is very beneficial for your website. This sitemap provides a single location to search engine crawler to crawl ...
by sidbhatt
Tue Oct 06, 2015 6:03 am
Forum: Visual Basic .NET and ASP.NET
Topic: compare a integer with string [array]
Replies: 1
Views: 2830

Re: compare a integer with string [array]

you can try this, Private Function NewPrtp(lIDNew As Long, ByVal sStringaOld As String) As Boolean Dim vOld = Split(sStringaOld, ",") Dim b As Boolean = False If vOld.Contains(lIDNew.ToString) Then b = True End If Return b End Function
by sidbhatt
Mon Oct 05, 2015 12:16 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Mysql data on different server in php
Replies: 2
Views: 2726

Re: Mysql data on different server in php

The program "mysql" is your client. It does not access your data files. The data is managed by "mysqld". This is the server application. To move your data to another machine, install MySQL on that machine. Then, the mysqld on that machine will manage that server and the mysql cli...
by sidbhatt
Mon Oct 05, 2015 12:03 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: PDF download code error in php
Replies: 1
Views: 2643

Re: PDF download code error in php

Try this: PHP Code: header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="FILENAME"'); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, pos...
by sidbhatt
Mon Oct 05, 2015 11:49 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Foreign Key CONSTRAINT in php
Replies: 1
Views: 3785

Re: Foreign Key CONSTRAINT in php

The basic syntax for a constraint is CODE: SELECT ALL alter table tablename1 add constraint constraintname foreign key (columnname1) references tablename2(columname2); the basic syntax will mean that if you try to delete a child record (i.e. a record in table 1 above) it will give you an error. You ...
by sidbhatt
Mon Oct 05, 2015 9:13 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Search inside a website
Replies: 1
Views: 2526

Re: Search inside a website

Google offers a custom search for exactly this purpose. You can place the widget on your site. Users can enter search terms and when they submit it they are taken to a Google search page that shows only results from your site.
by sidbhatt
Mon Oct 05, 2015 9:02 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: best language for mobile development
Replies: 1
Views: 2433

Re: best language for mobile development

To write native applications for just one platform then you'd go for Objective-C for iOS and Java for Android. However, there are many frameworks out there, like mentioned above, that will let you write your application in a single language and port it over to multiple devices.PhoneGAP does a simila...
by sidbhatt
Mon Oct 05, 2015 8:22 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Convert PDF to HTML
Replies: 1
Views: 2281

Re: Convert PDF to HTML

Yes this is possible.PDF files actually have it's own scripting language, so you can match any tags or such to html tags.
by sidbhatt
Mon Oct 05, 2015 4:49 am
Forum: Software Testing and Quality Assurance
Topic: What is the Quality Assurance in software testing?
Replies: 1
Views: 3557

Re: What is the Quality Assurance in software testing?

Quality assurance (QA) consists of a means of monitoring the software engineering processes and methods used to ensure quality. The methods by which this is accomplished are many and varied, and may include ensuring conformance to one or more standards, such as ISO 9000 or a model such as CMMI. QA ...
by sidbhatt
Sun Oct 04, 2015 5:03 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Checkbox Checked and Save Multiple Checkbox in database
Replies: 1
Views: 2399

Re: Checkbox Checked and Save Multiple Checkbox in database

First , you can't have the same IDs on all the checkboxes - for the code you're providing, there's no reason to have id's on them at all. Second, only one checkbox is checked because you're overwriting the value of $access_id each time you write to it. the code is: <?php $access = ''; if (isset($_PO...
by sidbhatt
Sun Oct 04, 2015 4:49 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: How to disable all characters but letters & numbers?
Replies: 1
Views: 2457

Re: How to disable all characters but letters & numbers?

ctype_alnum($string) which returns true if string only contains alphanumeric characters, returns false otehrwise.
by sidbhatt
Sun Oct 04, 2015 4:40 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Deleting a cookie with PHP
Replies: 1
Views: 2390

Re: Deleting a cookie with PHP

Unsetting the $_COOKIE element doesn't actually delete the cookie, it just deletes the variable (array element) where the value is stored in this particular PHP execution. The original cookie still remains intact in the browser. The second method you use there actually sets the cookie in such a way ...
by sidbhatt
Sun Oct 04, 2015 4:35 am
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: php form, doesnt work with differents emails
Replies: 1
Views: 3292

Re: php form, doesnt work with differents emails

hi everyone, For an email to be sent from a sending mail server (when using the mail() function, this is the mail server where your web site it hosted at) and accepted by a receiving mail server (where the to: address is hosted at), everything about the email must be correct and verifiable. The From...
by sidbhatt
Sat Oct 03, 2015 5:09 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Best editor for PHP
Replies: 1
Views: 2375

Re: Best editor for PHP

I like Komodo Edit

although I am REALLY new to programming and thus php as well

I have been using Komodo for a good while for html and css and have grown to like it enough to not have any urge to look elsewhere.
by sidbhatt
Sat Oct 03, 2015 4:59 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: file types restriction
Replies: 1
Views: 2544

Re: file types restriction

You should also check the extension of the file. It too is not fool proof but it's another step to help ensure it's the type you expect it to be. $allowed = array('doc', 'docx', 'pdf'); $ext = explode(".", $_FILES['cvfile']['name']); $extension = strtolower(end($ext)); $finfo = new finfo(F...
by sidbhatt
Sat Oct 03, 2015 4:46 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: how to use PHP
Replies: 1
Views: 2622

Re: how to use PHP

PHP is a language that is web oriented ,you can use a Virtual Network to program in PHP (Just Google it) or if you willing there are companies (Cloud9) that will host a server online though you'll have to pay for it (if you want more storage and more features).
by sidbhatt
Sat Oct 03, 2015 4:14 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: how to display all logged in user using php?
Replies: 1
Views: 2852

Re: how to display all logged in user using php?

array hw_api::userlist ( array $parameter ) is use to display all logged in user using php...
by sidbhatt
Sat Oct 03, 2015 4:04 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Is there an easy way How to detect where a function call came from
Replies: 2
Views: 26318

Re: Is there an easy way How to detect where a function call came from

The debug_backtrace() function is use todetect where a function call came from.....
by sidbhatt
Sat Oct 03, 2015 3:57 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: Is multiple inheritance supported in PHP?
Replies: 1
Views: 2766

Re: Is multiple inheritance supported in PHP?

Many of the object oriented programming languages, like C#, Java and PHP do not support multiple inheritance. To allow this feature, you can use interfaces in PHP or you can use "Traits" in PHP instead of classes for implementing multiple inheritance in PHP. Therefore we are concerned abou...
by sidbhatt
Sat Oct 03, 2015 3:54 pm
Forum: PHP, HTML, MYSQL and Web Hosting
Topic: how to retrived records in grid from mysql db to php form
Replies: 1
Views: 3054

Re: how to retrived records in grid from mysql db to php form

hi everyone, PHP only executes off the server, what you need is combination of html, css, ajax, javascript, php & sql commands.If your using check boxes you need to use ajax which send a request to a php script on the server this php script will send a query to the database, returning the result...
by sidbhatt
Sat Oct 03, 2015 12:32 pm
Forum: Visual Basic .NET and ASP.NET
Topic: How can i display the details of a cell while double clicking on that cell of grid
Replies: 1
Views: 3116

Re: How can i display the details of a cell while double clicking on that cell of grid

to handle a double-click on a grid row or cell use can use this.. private void gridView1_DoubleClick(object sender, EventArgs e) { GridView view = (GridView)sender; Point pt = view.GridControl.PointToClient(Control.MousePosition); DoRowDoubleClick(view, pt); } private static void DoRowDoubleClick(Gr...
by sidbhatt
Sat Oct 03, 2015 9:06 am
Forum: Visual Basic .NET and ASP.NET
Topic: maintain the view state in mvc
Replies: 1
Views: 2938

Re: maintain the view state in mvc

ASP.NET MVC does not use ViewState in the traditional sense (that of storing the values of controls in the web page). Rather, the values of the controls are posted to a controller method. Once the controller method has been called, what you do with those values is up to you. ASP.NET MVC will persist...
by sidbhatt
Wed Sep 30, 2015 1:01 pm
Forum: Religious Debates
Topic: Who wrote Bhagvad Gita? Why?
Replies: 1
Views: 3207

Re: Who wrote Bhagvad Gita? Why?

The authore of bhagvad gita is ved vyas. The Bhagavad Gita was spoken by Krishna, the Supreme Personality of Godhead, to His friend Arjuna on the battlefield of Kuruksettra around five thousand years ago. The Gita has a very unique position in the world as it is the only book that contains directly ...
by sidbhatt
Wed Sep 30, 2015 12:49 pm
Forum: Religious Debates
Topic: Who is the god for Jain community?
Replies: 1
Views: 24233

Re: Who is the god for Jain community?

Both Arihants and Siddhas are considered Gods of Jain religion. Arihats are perfect human beings and preach the Jain religion to the people after attaining keval_jnan. After death they become Siddhas. All Siddhas are perfected souls, living forever in a blissful state in Moksha. Jain is derived from...
by sidbhatt
Wed Sep 30, 2015 12:25 pm
Forum: Yoga, Exercise, Pilates and Zim
Topic: Pilates vs Yoga
Replies: 1
Views: 3199

Re: Pilates vs Yoga

Pilates: Pilates classes focus on strength, muscle toning, body control, and flexibility, with the main emphasis being core strength. Pilates is a disciplined practice that needs to be done on a regular basis to provide benefit. If you like a more structured workout without the cardio component, cha...
by sidbhatt
Wed Sep 30, 2015 6:10 am
Forum: Do You Know?
Topic: how to prepare for a job interview???
Replies: 1
Views: 2954

Re: how to prepare for a job interview???

During interview u take care of this type of things ....

Use Appropriate Language
Don't Talk Too Much
Practice Good Nonverbal Communication
Use Appropriate Language
Take Care to Answer the Questions
Don't Appear Desperate
Keep eye contact
by sidbhatt
Wed Sep 30, 2015 6:04 am
Forum: Do You Know?
Topic: Why world war one started? Who won the world war one?
Replies: 1
Views: 3182

Re: Why world war one started? Who won the world war one?

causes of World War I, which began in The Balkans in late July 1914, are several. Among these causes were political, territorial, and economic conflicts among the great European powers in the four decades leading up to the war. Additional causes were militarism, a complex web of alliances, imperiali...
by sidbhatt
Wed Sep 30, 2015 5:51 am
Forum: Do You Know?
Topic: What did Indra do with Karna's kavach and kundal?
Replies: 1
Views: 3264

Re: What did Indra do with Karna's kavach and kundal?

Indra in the guise of a Brahmin came and asked Karna to donate the Kavach and Kundal to him, as he knew that, Arjuna who was born with Indra's blessings, would never be able to defeat Karna as long as Karna had his Kavach and Kundal. Thus Indra took the Kavach and Kundal. Indra - after taking Kavach...

Go to advanced search