Quantcast
Channel: CSharp Forum Latest Questions
Viewing all 32756 articles
Browse latest View live

Resizeable toolbar similar as Word 2003 through code

$
0
0
Floating toolbars: as simple as that: I'd like the users to be able to make some (or all, or none) of the toolbars to "float", so they can be moved freely around the main form instead of having them docked on the edges. Of course, the user should also be able to dock the toolbars again. Any idea/suggestion about how to achieve this would be appreciated. Also user should be able to resize the toolbar as it is behaving in Word 2003.

How to rotate touch based needles ( Hour and Minute ) of win

$
0
0
I have mine windows 8 analog clock app that perform Touchable task to move minutes and hour angle by single touch  ,but it could not work properly. it seems to be  did not find angle correctly . I had worked on Manupulation delta events of clock needle ( i.e Line ) .  When i moved needles forward than 1st time it goes some points  backward. i dnt know how this is happning. How can i solve this issue. Please  anyone can  let me know.

Xaml code is :-

 <Line Name="Hours" PointerEntered="ShowHand" PointerExited="ShowArrow" HorizontalAlignment="Center" VerticalAlignment="Center" X1="0" Y1="0" X2="0" Y2="-70" Stroke="Wheat" Margin="1,0,0,0" StrokeThickness="3" Grid.RowSpan="8" ManipulationDelta=" HourRight_ManipulationDelta" ManipulationMode="TranslateInertia,TranslateX,TranslateY">
                <Line.RenderTransform>
                    <RotateTransform x:Name="HoursTransform" CenterX="0" CenterY="0" Angle="{Binding HourHandAngle}" />
                </Line.RenderTransform>
            </Line>

.cs Code is:-

   private void HourRight_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
        {
            var x = HoursTransform.CenterX - e.Position.X;
            var y = HoursTransform.CenterY - e.Position.Y;

            var angle = Math.Atan(y / x);
            var deltaAngle = Math.Atan((e.Delta.Translation.Y - y) / (x - e.Delta.Translation.X));

            this.HoursTransform.Angle += angle - deltaAngle;
        }

rotate touch based needles of windows 8 clock app

$
0
0
I have mine windows 8 analog clock app that perform Touchable task to move minutes and hour angle by single touch  ,but it could not work properly. it seems to be  did not find angle correctly . I had worked on Manupulation delta events of clock needle ( i.e Line ) .  When i moved needles forward than 1st time it goes some points  backward. i dnt know how this is happning. How can i solve this issue. Please  anyone can  let me know.

Xaml code is :-

 <Line Name="Hours" PointerEntered="ShowHand" PointerExited="ShowArrow" HorizontalAlignment="Center" VerticalAlignment="Center" X1="0" Y1="0" X2="0" Y2="-70" Stroke="Wheat" Margin="1,0,0,0" StrokeThickness="3" Grid.RowSpan="8" ManipulationDelta=" HourRight_ManipulationDelta" ManipulationMode="TranslateInertia,TranslateX,TranslateY">
                <Line.RenderTransform>
                    <RotateTransform x:Name="HoursTransform" CenterX="0" CenterY="0" Angle="{Binding HourHandAngle}" />
                </Line.RenderTransform>
            </Line>

.cs Code is:-

   private void HourRight_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
        {
            var x = HoursTransform.CenterX - e.Position.X;
            var y = HoursTransform.CenterY - e.Position.Y;

            var angle = Math.Atan(y / x);
            var deltaAngle = Math.Atan((e.Delta.Translation.Y - y) / (x - e.Delta.Translation.X));

            this.HoursTransform.Angle += angle - deltaAngle;
        }

Payment gateway

$
0
0
Can we transfer one Credit card A/c To other Credit card A/c balance throw Payment Gatway(wells fargo service provider)?

How to pass multiple list to view in mvc3

$
0
0
Hi friends,

I am beginner in MVC

In MVC3 application , How to pass multiple list to view in mvc3 or how to populate multiple webgrid in single view with different list ?

Thanks in advance.

Regards
Rakesh

showing the output using sql server

$
0
0

  select f.bfid,f.bthid,b.class,b.bthno from bthfac f,batch b where month(b.examdate)= 9
    and year(b.examdate)= 2011 and b.bthid = f.bthid and f.facid = '4,6,9';


  when i execute the above query output as follows;


  bfid  bfid    Class     Bthno
  18    18    AFF       BAFFTEST

select r.rate,f.bfid,f.bthid,b.class,b.bthno from bthfac f,batch b,facfeedback r where month(b.examdate)= 9
    and year(b.examdate)= 2011 and b.bthid = f.bthid  and r.bfid = f.bfid and f.facid = '4,6,9';

Rgds,
Rao

  

Popup search window

$
0
0
   

I'm looking for the simplest way of popping a itemid search window on top of my web site page by click a button to look up values for a field. I've got a web page for users to update item details, users need to be able to choose an item by searching for item name in a popup.

So - the popup would have a textbox and a gridview with results; clicking the "search" button in a result would populate the itemid, item name on the calling form.

What's the simplest way to achieve this?


Thanks in advance

Delete a data in C#

$
0
0
I've been trying to delete a data in C# but it seems to be null, so here you are, please I need a support of any of you... thanks my friends

/*
 * Created by SharpDevelop.
 * User: fabreu
 * Date: 5/13/2013
 * Time: 1:40 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.CodeDom;

namespace ConsoleAgenda
{
    class Program
    {
        
        struct AgendaElectronica{
        
        public string Nombre;
        public string Email;
        public string Numero;
        public DateTime Fecha;
        
        
        }
        public static void Main(string[] args)
        {
            string Opcion;
            int CapacidadContactos = 5;
            int Cantidad = 0;
            AgendaElectronica[] Contactos = new Program.AgendaElectronica[CapacidadContactos];
            string salir;
            do{
            Console.WriteLine("Basic Diary:");
            
            Console.WriteLine("\n1-Add Contact:");
            Console.WriteLine("2-Search contact:");
            Console.WriteLine("3-Search every contact Added:");
            Console.WriteLine("4-Delete Data:");
            Console.WriteLine("0-Log out:");
            Opcion = Console.ReadLine();
            
            switch (Opcion) {
                case "1":
                if (Cantidad < CapacidadContactos) {
                    Console.WriteLine("Contact range: {0}",Cantidad + 1);
                    Console.WriteLine("\nType the contact you wish:");
                    Contactos[Cantidad].Nombre = Console.ReadLine();
                    
                    Console.WriteLine("Contact's BirthDay:");
                    Contactos[Cantidad].Fecha = Convert.ToDateTime(Console.ReadLine());
                    Console.WriteLine("Contact's E-Mail:");
                    Contactos[Cantidad].Email = Console.ReadLine();
                    
                    Console.WriteLine("Número de contacto:");
                    Contactos[Cantidad].Numero = Console.ReadLine();
                    
                    Cantidad++;
                    Console.WriteLine();
                    
                }                    
                    
                else Console.WriteLine("¡Base de datos llena!:");
                break;
                case "2": Console.WriteLine("Usuario que desea buscar:");
                
                string buscar = Console.ReadLine();
                bool encontrado = false;
                for (int i = 0; i < Cantidad; i++) {
                    if (buscar.ToUpper() == Contactos[i].Nombre.ToUpper()) {
                        encontrado = true;
                        Console.WriteLine("{0}: Nombre: {1} Número: {2} E-Mail: {3} Fecha de nacimiento: {4}",i + 1
                        Contactos[i].Nombre,Contactos[i].Numero,Contactos[i].Email,Contactos[i].Fecha);
                    }
                    if(!encontrado)
                        Console.WriteLine("This Contact does not exist...{0}",!encontrado);
            
                }
                break;
                
                default: Console.WriteLine("Wrong!!!");
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.DarkYellow; 
                Console.WriteLine();
                break;
            case "3"/*Me dá una lista de todas 
                      las personas que tengo agregadas.*/
                if (Cantidad == 0) {
                    Console.WriteLine("Data Base Empty!!!");
                }
                else
                
                for (int i = 0; i < Cantidad; i++) {
                    Console.WriteLine("Data Found:{0}",Contactos[i].Nombre);
                    
                    
                }
                
                
                break;
            case"4":
                if (Cantidad == 0) {
                    Console.WriteLine("Data Base Empty!!!");
                }
                else
                Console.WriteLine("type the contact you wish to delete...");
                for (int i = 0; i < Cantidad; i++) {
                    Console.WriteLine("Data Found:{0}",Contactos[i].Nombre);
                    
                    Console.WriteLine("Do you want to delete this data:");
                    Console.WriteLine("\nSelect one:");
                    string Delete = Console.ReadLine();
                    string Replace = string.Empty;
                    if (Delete == Contactos[i].Nombre) {
                        Console.WriteLine("Done:{0}",Replace.Replace(Contactos[i].Nombre,string.Empty));//It suppose to be deleted but not work at all.
                    }
                
                    
                }
                break;
            }
                Console.WriteLine("Logging out:");
                salir = Console.ReadLine();
            }
                while(salir!= "0");
            
            
                Console.ReadKey(true);
        }
    }
}

Size Reduced for Images in PDF & Improved Images to PDF Con.

$
0
0

What's New in this Release?

The long awaited version of Aspose.Words for .NET & Java (13.4.0) has been released. This month's release includes contains a massive 154 improvements to Aspose.Words, including several big performance boosts and interesting new features. The amount of memory required to render a document has been reduced by more than 20-30%. Rendering of images to PDF improved by approximately 25% when saving with JPEG compression. The size of images stored in PDF files generated by Aspose.Words has been reduced in many cases. Duplication of images could sometimes occur in some situations. This issue has been resolved and file size improved in these cases. In this release Aspose.Words introduces support for digitally signing DOC and DOCX documents. A digital signature adds an extra layer of protection to a document and ensures that the document content has not been tampered with. This feature adds an "invisible" signature to the document, which is not to be confused with a signature line which is a digital signature accompanied by a normally handwritten signature image. With this release Aspose.Words can now detect the compliance of a loaded OOXML document and resave the document using the correct compliance. This avoids the document being saved to the wrong specification and unexpected compatibility warnings. The list of most notable new and improved features in this release are listed below

·         Improved memory performance for large documents (now code uses ~20% less memory for 1Gb+ documents)

·         DOC and DOCX document can be signed with digital signatures, also signatures can be removed;

·         3D color for VML extrusion effect is supported

·         Improved performance of PDF rendering of documents with Jpeg images

·         DML Charts enhancements: surface charts rendering, moving average trend lines rendering and more

·         Supported rendering of revisions

·         Improved pagination of footnotes

·         Implemented character paragraph indents

·         Fixed positioning of a table broken across pages when it has repeated header rows

·         Improved table row wrapping around floaters

·         Fixed issue with Arabic-Indic numerals inside SDT

·         Aspose.Words allows to write OOXML documents that do not cause Compatibility Mode when opened in MS Word 2010-2013 

·         Support XAML (Flow document).

·         Digitally sign a DOCX document

·         Digitally sign a DOC document

·         Support surface chart rendering.

·         Parapragh Tight Wrap property now preserve on re save the document

·         Docx to HTML conversion issue with Paragraph rendering is resolved

·         /revision marks/ Hidden text becomes visible in PDF

·         Text wrapping is changed from "Square" to "in line with text" in output Doc/Docx

·         /revision marks/ Revision formatting and comments are not preserved in PDF

·         Support AlternateContent upon reading charts for rendering.

·         Force LoadFormat during document load

·         Add another Automation to Aspose migration tip to the docs

·         Support band formats upon rendering surface charts.\

·         Support rendering of Linear trendlines.

·         Support rendering of Moving Average trendlines.

·         Review the blog release for the dashboard

·         Add the release to the downloads module

·         Include dashboard in the MSI and add prompt the user to open at the end of the installer

·         Add dashboard to dlls only zip for all products

·         Remove .sh file to register Aspose.Words.dll on Mono

·         Remove existing demo code from the installer

·         Feasibility study // Avoid reconvertion of non-JPEG images for texture brush.

·         Line AutoShape causes Aspose.Words to hang during rendering

·         System.InvalidCastException throws while converting from RTF document to other file formats

·         Avoid using fonts during rendering checboxes.

·         Size of images is changed after open/save the document.

·         File size is increased two times after open/save the document.

·         Support transparency in WMF emulated by SRCPAINT and SRCAND raster operations.

·         VML // Shape shadow effect rendering

·         Text inside textbox is cropped during rendering is now fixed

·         Position of Textbox is incorrect after converting to DOCX

·         Investigate whether we can decrease memory usage upon rendering documents.

·         DML linear gradient brushes should use transformation matrices instead of angle.

·         /page vertical alignment/document to pdf conversion, image lose its position is fixed

·         while converting doc to pdf, image properties now available

·         Pdf page count is greater than input Word document, after converting doc to Pdf

·         DOC to PDF conversion issue resolved; All pages not exported to PDF

·         Document text out of position is fixed, While saving Word document in Pdf format

·         While doc to Pdf, footer image rendering is fixed.

·         While converting Word document to Multipage Tiff image, first image missing is fixed.

·         TextBox is hidden while rendering is fixed.

·         Docx to PDF conversion issue resolved with tables

·         Doc to PDF conversion issue resolved with left margin

·         Doc to PDF conversion issue resolved with Text field's text

·         Work out a useful way to avoid running into Compatibility Mode when saving OOXML and opening in Word 2010

·         Docx to Html conversion issue resolved with text position

·         Text is misplaced after conversion from Doc to Pdf is fixed

·         Improve work with brushes upon rendering charts.

·         Complete and release the offline examples dashboard

·         Unexpected vertical border line appears besides characters in Html is fixed

·         Errors with math symbols when converting .docx to .pdf on Ubuntu is fixed

·         Table Width Changed Issue resolved in Html2Doc2Html

·         Font is incorrectly imported from HTML is now fixed

·         Two tables are joined into one

·         One of the tables incorrectly reads into model

·         Content is imported as a single Paragraph

·         Text contents misplaced while conveying from Doc to Fixed file format

·         HTML to Doc conversion issue resolved with Paragraph Left Indent

·         Open and Save HTML file lost Left Indentation of Paragraphs

·         XPS printing issue resolved with text at physical printer

·         Shape's z-order is corrected in HTML export.

·         Create infrastructure for compliance info gathering during OOXML document loading

·         Failed assertion in BorderGrid.AddCell()

·         Word 2013 now respect zoom level set by Aspose.Words

·         Add support of 3D color to extrusion effect.

·         Add support of gradient brush scale.

·         Incorrect tab width when list aligned tab occurs after another tab

·         Shadow for shapes with broad stroke differs from MS Word 2013 result

·         Line width is now considered during applying extrusion effect

·         Support Z-Axis labels rendering.

·         Improve drop lines rendering for 3D line charts.

·         /footnote balancing/ Docx to PDF conversion issue

·         Line chart is rendered as smooth but should be rendered as straight lines.

·         Font of text inside WordArt Shape is now corrected in PDF

·         Update links to Aspose site in shortcuts created by the installer

Other most recent bug fixes are also included in this release

Newly added documentation pages and articles

Some new tips and articles have now been added into Aspose.Words for .NET documentation that may guide you briefly how to use Aspose.Words for performing different tasks like the followings.

-  Access and Verify Digital Signatures: http://www.aspose.com/docs/display/wordsnet/Access+and+Verify+Digital+Signatures

- How to Convert a Document to MHTML and Email: http://www.aspose.com/docs/display/wordsnet/How+to++Convert+a+Document+to+MHTML+and+Email

Overview: Aspose.Words for .NET

Aspose.Words is a word processing component that enables Java & .NET applications to read, write and modify Word documents without using Microsoft Word. Other useful features include document creation, content and formatting manipulation, mail merge abilities, reporting features, TOC updated/rebuilt, Embedded OOXML, Footnotes rendering and support of DOCX, DOC, WordprocessingML, HTML, XHTML, TXT and PDF formats (requires Aspose.Pdf). It supports both 32-bit and 64-bit operating systems. You can even use Aspose.Words to build applications with Mono.

More about Aspose.Words for .NET

- Homepage of Aspose.Words for .NET:  http://www.aspose.com/.net/word-component.aspx

- Homepage of Aspose.Words for Java: http://www.aspose.com/java/word-component.aspx 

- Download Aspose.Words for .NET: http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

- Download Aspose.Words for Java: http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

- Online Demos for Aspose.Words : http://www.aspose.com/demos/.net-components/aspose.words/default.aspx

- Online documentation of Aspose.Words : http://www.aspose.com/docs/display/wordsnet/Home

- Post your technical questions/queries to Aspose.Words Forum: http://www.aspose.com/community/forums/aspose.words-product-family/75/showforum.aspx

- Receive notifications about latest news and supported features by subscribing to Aspose.Words blog: http://www.aspose.com/community/blogs/aspose.words-product-family/default.aspx

Contact Information

Aspose Pty Ltd

Suite 163, 79 Longueville Road

Lane Cove, NSW, 2066

Australia

http://www.aspose.com/

sales@aspose.com

Phone: 888.277.6734 begin_of_the_skype_highlighting             

Fax: 866.810.9465

Youtube API Posting Comment

$
0
0
Hello,

I am try to post a comment on youtube through the use of their api system. So far I have tried the below code but it doesn't seem to work.

This code is global.

YouTubeRequestSettings settings;
        YouTubeRequest request;
        YouTubeService youtube;

This code is found in the form load event of the application. I am using this code to connect with youtube's api.

youtube = new YouTubeService("example app");
            youtube.setUserCredentials("YoutubeUsername", "YoutubePassword");


            try
            {
                string strAuth = youtube.QueryClientLoginToken();
            }
            catch (Exception ex)
            {


            }


            settings = new YouTubeRequestSettings("example app", "DeveloperKey", "YoutubeUsername", "YoutubePassword");
            request = new YouTubeRequest(settings);

To post the comment, I created a button event with the following code.

 Comment c = new Comment();
            c.Content = "Comment";
            Video v = new Video();
            c.Content = "http://www.youtube.com/watch?v=wYjuMxAKe2U";
            request.AddComment(v, c);

For some reason, when I click the button, the comment is not posting on the video.

Thanks.







c# windows application form (battleship game)

$
0
0
hey guys can someone help me please? im new to c# and im doing visual c# windows application form.

i wanna make 5 buttons and generate 2 random colors (red and blue) for them. Its a battleship game.

i wanna say if the 2 red is found messagebox.show ("You've Won")
and if 3 blue were found messagebox.show("You've Lost")

i wanna make a string because i would need 100 buttons for this battle ship but i dunno how. can someone write me a short code to give me ideas on how to make array and put 2 random colors for the button please.


soon i would need also an AI battleship game. if anyone has any ideas about this please reply back thank you!

C application conenct database Mysql

$
0
0
C application:
C1.It must allowmarkingas valideach vehicle, by afunctionintended for that purpose,and willchange the valueof the field "valid" to "1" in thetableobjects.

C2.Shouldenable themarkingof eachvehicleto be invalidbyafunction createdfor this purpose,and that willchange the valueof the field"valid" to "0"in the tableobjects.

C3.Shoulddisplay a menuthat allowsto identify whichisthe carthatyou want to markasvalid or invalid

C4.One of theoptions in this menushould becheck / uncheckall carsat once.

Help me

C program that deals with structures and arrays?

$
0
0

Set up a text file consisting of names and telephone numbers.  Some example lines are provided below.

Note that each name ends with a semi-colon with no spaces around the semi-colon.

Key John;09-41783

Baggins Bilbo;05-89378

 

Write a C program that includes the following:

·         A structure to store one name and one telephone number

·         An array of these structures called phonelist

·         The phonelist must be loaded from the file by using *exactly* this piece of code:

          i = 0;

          while (fgets(line, 200, f) != NULL) {

            phonelist[i] = getdetails(line);

            i++;

          }

·         At least three functions (including the function called getdetails)

 

The following menu must be displayed on the screen:

A. Search for a name

B. Display all names

Q. Quit

The program must perform the appropriate operations.  If B is selected, the names must be shown in alphabetical order.  Note that the names in the file are not in any particular order.should be easy to read

Asp.Net Loading Symbol

$
0
0
Hi,

My application Design is in Ajax,,,,when i click the button or selected a value from Dropdownlist output is little delay so,i want to display an image that is rotating until the result is displayed(Ajax/jQuery/JavaScript.........anyone)

its like progress bar but i want circle to be rotated,,,

Can Anybody plz Suggest me the solution,,,,,

update hot news & image in asp.net c# with sql server

$
0
0
hi guys my name's rezza i'm student & I'm a beginner in asp.net c # programming language.......

Can you help me how to update hot news & image in asp.net c# with sql server

How to Set Margins for different printers based on its HardM

$
0
0

I am trying to print a rectangle with 20mm width and 8mm height with top magin 22mm and left margin 8.8mm.

"HP LaserJet P2035n" Printer showing correct measures after printing. But, "Canon iR2020 PCL5e" printer showing correct measures except TOP Margin. I am not sure where i am doing worng? Is there anything i should consider the printers like DPI.. etc?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Printing;
namespace ConsoleApplication6{classDrawShape{publicstaticvoidDrawRec(){PrintDocument doc =newPrintDocument();
    doc.PrintPage+= doc_PrintPage;
    doc.Print();}staticvoid doc_PrintPage(object sender,PrintPageEventArgs e){Graphics g = e.Graphics;PageSettingsPageSet=newPageSettings();floatMarginX=PageSet.PrintableArea.X;floatMarginY=PageSet.PrintableArea.Y;float x =(float)(8.8-((MarginX/100)*25.4));float y =(float)(22-((MarginY/100)*25.4));
    g.PageUnit=GraphicsUnit.Millimeter;
    g.DrawRectangle(Pens.Black, x, y,20,8);}

} }

Thanks,

Ramana

error to validate inputdate is always greater than gridview

$
0
0
Hai friends,
  Im creating one application in i wanna to validate the input date if i choose same date where already in gridview date ll show alert message(already done).
 like the same wanna put validate for choosing input date is always greater than gridview date.how make code?


 protected void ADD_Click(object sender, EventArgs e)
    {


            bool readerHasRows = false;
            string depdate = Datepicker.Text;

            string commandQuery = "SELECT departuredate FROM onward_journey WHERE departuredate= @depdate";
            using (SqlCommand cmd = new SqlCommand(commandQuery, conn))
            {
                // conn.Open();
                cmd.Parameters.AddWithValue("@depdate", Datepicker.Text);
                using (SqlDataReader reader = cmd.ExecuteReader())
                {
                    // bool initialized above is set here
                    readerHasRows = (reader != null && reader.HasRows); //&& reader >Datepicker);
                }
            }


            if (readerHasRows)
            {

                Response.Write("<script>alert('Departure Date Already Exists!!')</script>");
            }

            else
            {
                string sql;

                string de = Datepicker.Text;
                Session["de"] = de;
                if (de.length < Convert.ToInt16(depdate))/// ERROR :Input string was not in a correct format.
                {

                    Response.Write("<script>alert('Departure Date Always greater GridView's Date!!')</script>");
                }
                else
                {
                    sql = "insert into onward_journey(departuredate,from_location,to_location,metro,trans_all,mode_of_travel,seat_type,no_of_days,other_details,status_id) values(@departuredate,@from_location,@to_location,@metro,@trans_all,@mode_of_travel,@seat_type,@no_of_days,@other_details,'2')";
                    SqlCommand cmd = new SqlCommand(sql, conn);
                    cmd.Parameters.AddWithValue("@departuredate", Datepicker.Text);
                    cmd.Parameters.AddWithValue("@from_location", TxtFm.Text);
                    cmd.Parameters.AddWithValue("@to_location", TxtTo.Text);
                    cmd.Parameters.AddWithValue("@metro", DDL_Metro.Text);
                    cmd.Parameters.AddWithValue("@trans_all", DDL_trans.Text);
                    cmd.Parameters.AddWithValue("@mode_of_travel", DDL_ModeOfTravel.Text);
                    cmd.Parameters.AddWithValue("@seat_type", DDL_SeatType.Text);
                    cmd.Parameters.AddWithValue("@no_of_days", TxtNo.Text);
                    cmd.Parameters.AddWithValue("@other_details", Txtothrdet.Text);
                    int count = cmd.ExecuteNonQuery();


                    //string st = "select  convert(varchar, departuredate, 103)as DepartureDate , from_location as 'From' ,to_location 'To', metro,trans_all as Trans,mode_of_travel as ModeOfTravel,seat_type as Seat, no_of_days as Numdays, other_details as OtherDetails from onward_journey";
                    //SqlDataAdapter de = new SqlDataAdapter(st, conn);
                    //DataTable dtStore = new DataTable();

                    //de.Fill(dtStore);

                    //grdvStore.DataSource = dtStore.DefaultView;

                    //grdvStore.DataBind();
                    DateTime val = new DateTime();
                    DateTime b = new DateTime();
                    val = Convert.ToDateTime(Datepicker.Text);

                    b = val.AddDays(Convert.ToInt32(TxtNo.Text));
                    binddata();
                    Datepicker.Text = b.ToString();
                    Datepicker.Enabled = false;
                    DDL_Metro.SelectedIndex = 0;
                    DDL_trans.SelectedIndex = 0;
                    DDL_ModeOfTravel.SelectedIndex = 0;
                    DDL_SeatType.SelectedIndex = 0;
                    TxtFm.Text = "";
                    TxtTo.Text = "";
                    TxtNo.Text = "";
                    Txtothrdet.Text = "";

                }

geting page id and class at the same time to display a DIV

$
0
0
I would like to get page id and page class to display a div on that specific page:


for example:  Body# Great .Betst   id=great    class=best

Div id="first-Div"

LOGIC 

<?php    if page id ="great" and class="bets"   {?>

Display  First-Div

<?php{?>



How do I do this?

Image Uploading

$
0
0
hi..

i am uploading the image...

i want to make the corner of image rounded ..
  
i mean, when i upload the image it should display as corners are rounded in shape..

can anybody please tell me...!!


thanx..:)

How do I Read/Write variables to and from a file?

$
0
0

 How do I Read/Write variables to and from a file?

I want to be able to read the variables for my C# Console app from a file and everytime there is a change I want the program to write the changes into the file also.

I have the following setup at the beginning of the program's Main.

 

var usermainmenuselection = "";
var user_settings_allowbeep = true;
var user_settings_textiscolor = false;
var optionsselection = "";

 

 

Viewing all 32756 articles
Browse latest View live