Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
35% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
1
2 Commented Posts
~6K People Reached

22 Posted Topics

Member Avatar for arjunpk

hi... i'm getting a null reference exception unhandled error..... i have inserted the code snippet and a screenshot... please tell me where i'm going wrong..... [CODE] DataSources[] dataSources; int i = 0; _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode tempNode in _list) { //MessageBox.Show(tempNode.Attributes["Name"].Value.ToString()); //MessageBox.Show(tempNode.InnerXml.ToString()); dataSources[i]=new DataSources(); dataSources[i].getContent(tempNode); i++; }[/CODE] the class …

Member Avatar for theepan1
0
207
Member Avatar for arjunpk

Hi, I have a program which has to do a lot of lookup. there are multiple threads running in parallel and all of these threads have to do a lookup on the same list of words. Currently i'm storing the list of words in a dictionary in each of the …

Member Avatar for Momerath
0
241
Member Avatar for arjunpk

hi... i want to display an alert message when the timer.tick even occurs.... [CODE] protected void Timer2_Tick(object sender, EventArgs e) { Timer1.Enabled = false; System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGUAGE=\"JavaScript\">alert(\"30 Seconds up. Exporting to Library\")</SCRIPT>"); Response.Write("<script language=javascript>alert('30 Seconds up. Exporting to Library');</script>"); ClientScript.RegisterStartupScript(this.GetType(), "MyKey", "alert('30 Seconds up. Exporting to Library ');", true); ClientScript.RegisterClientScriptBlock(this.GetType(), "MyKey", …

Member Avatar for arjunpk
0
133
Member Avatar for arjunpk

hi the code which i use to export a data table to excel works fine..... but when i open the excel file it gives me the following warning THE FILE YOU ARE TRYING TO OPEN IS IN A DIFFERENT FORMAT THAN SPECIFIED BY THE EXTENSION. VERIFY THAT THE FILE IS …

Member Avatar for C#Jaap
0
307
Member Avatar for saqib

I have edited your code.... I do not have a compiler.. so i haven't been able to test it.... [CODE]#include<stdio.h> #include<conio.h> void main() { char name[10]={0,0,0,0,0,0,0,0,0,0}; char namre[10]={0,0,0,0,0,0,0,0,0,0}; int i=0,a=0,j,q=0,num=0; int flag =0; clrscr(); printf("Please Enter The Number Of Leters In Your Word"); scanf("%d",&num); printf("enter\n"); for(i=0;i<num;i++) { name[i]=getche(); a++; } …

Member Avatar for arjunpk
0
207
Member Avatar for wdearth

when you declared s1[40], you created variables s1[0], s1[1], .... upto s1[39]..... s1[40] does not exist...... [CODE]#include<stdio.h> #include<ctype.h> #include<stdlib.h> int main (void) { char s1[40]; char s2[20]; char c=' '; int index; int a=0; for(index=0; index<39; index++) { s1[index]=rand()%26+'A'; } s1[39]='\0'; printf ("%s", s1); printf("\n Enter length of replacement string:"); …

Member Avatar for arjunpk
0
163
Member Avatar for judithSampathwa

well... it's quite simple actually.... [url]https://msmvps.com/blogs/deborahk/archive/2009/07/23/writing-data-from-a-datatable-to-excel.aspx[/url] the above link will give you how to export a datatable to excel..... you can either follow the same procedure by first inserting your array into a data table and then exporting it to excel..... or.. based on the code in the above link.. …

Member Avatar for arjunpk
0
351
Member Avatar for arjunpk

Hi... I have a fixed size array in my program..... but in order to make the program memory efficient.... i want to make it an ArrayList... can someone please explain how to do this..... i have posted my code below... [CODE] class StaticColumn { public TextBox[] textBoxes = new TextBox[1000]; …

Member Avatar for arjunpk
0
173
Member Avatar for Skabix

i think this should work..... [CODE] #include <iostream.h> //using namespace std; int main() { // Constants for Conversion int seconds, minute, hour; double day; cout << "Enter the number of seconds: "; cin >> seconds; minute=seconds/60; if(minute!=0) seconds = seconds%(minute*60); else seconds=0; hour = minutes/60; if(hour!=0) minute = minute%(hour*60); else …

Member Avatar for Skabix
0
1K
Member Avatar for programing

ok... i reformatted your code and it really did not make any sense..... [CODE]#include <iostream.h> class linklist { private: struct node { int data; node *link; } *p; public: linklist(); void append( int num ); void appendd(int size); void display(); }; linklist::linklist() { p=NULL; } void linklist::append(int num) { node …

Member Avatar for arjunpk
0
243
Member Avatar for arjunpk

hi... i want to create a simple mobile application which can give a slideshow from a powerpoint ppt and has basic text editing functions.... can someone please guide me how to go about with it.... is there any api which i can use..... is it simple to do.... it's really …

0
63
Member Avatar for arjunpk

Hi, I'm using microsoft.interop.excel to automate excel sheets.... here's a snippet from the original code..... [CODE] rangeTemp1 = "C" + rowNo; rangeTemp2 = "C" + total; worksheet.get_Range(rangeTemp1, rangeTemp2).Merge(false); range = worksheet.get_Range(rangeTemp1, rangeTemp2); range.FormulaR1C1 = temp.query; [/CODE] i'm trying to insert a long string into the cell.... though manually i am …

0
68
Member Avatar for arjunpk

hi... i have given a code snippet below... though i check for nullability before i do the actual processing... it still throws an unhandled exception..... is there a way to handle this other than filling my code with try catch blocks.... [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using …

Member Avatar for arjunpk
0
146
Member Avatar for Kath_Fish

try this... [CODE]foreach (char sort in sb.ToString().Trim().ToCharArray()) { if (!(sortList.ContainsKey(sort))) { sortList.Add(sort, 1); } else { int Count = (int)sortList[sort]; sortList[sort] = Count + 1; } } DisplayResult(); private void DisplayResult() { String ShowResult = ""; IDictionaryEnumerator enumerator = sortList.GetEnumerator(); while (enumerator.MoveNext()) { ShowResult += "{"+enumerator.Key.ToString()+"}:" + enumerator.Value.ToString(); } listBox.Items.Add(ShowResult.ToString()); …

Member Avatar for Kath_Fish
0
406
Member Avatar for arjunpk

hi all.... i want to create a menu like the one in the image attached...... can you guys please tell me what is the name of that particular style of file open diaog.... i'm sure the code for this is available easily.... but i'm just not able to do a …

Member Avatar for ddanbe
0
96
Member Avatar for arjunpk

Hi.... I have just written a c# code which connects to a web server.... Pulls out xml, extracts data and inserts the data onto a database..... however i have a small problem scrubbing certain data of junk values..... few examples of the data i want to scrub are posted below... …

Member Avatar for arjunpk
0
664
Member Avatar for arjunpk

hi... can someone please explain how to create a new excel file using an excel template in c# I have no idea how to go about doing it and that is why i haven't pasted any code.... i have been developing an application as part of my college project..... and …

Member Avatar for ddanbe
0
156
Member Avatar for arjunpk

hi.... i have a small problem using the DOM parser for XML in c# [CODE] XmlDocument doc = new XmlDocument(); XmlNodeList _list = null; doc.Load(location.Text); _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode node in _list) { //some processing } [/CODE] over here i am able to get specific nodes using the getElementByTagName …

Member Avatar for arjunpk
0
298
Member Avatar for Phil++

well.... if you meant you want to use sql server and c# It's easy...... Please be specific as to what exactly you want.....

Member Avatar for Mitja Bonca
0
112
Member Avatar for arjunpk

hi i'm writing a c# script to be used in ssis.... i'm trying to pull an image from a website... i'm new to c# and i'm not sure whether the data types i'm using are right... i'm posting my code here... [CODE] using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; …

Member Avatar for dotancohen
0
234
Member Avatar for arjunpk

hi.... i have an xml file which i've pasted below... [CODE] <?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> <opensearch:Query searchTerms=""/> <opensearch:totalResults>1</opensearch:totalResults> <people> <person> <popularity>3</popularity> <name>Aamir Khan</name> <also_known_as> </also_known_as> <id>52763</id> <biography></biography> <known_movies>18</known_movies> <birthday></birthday> <birthplace></birthplace> <url>http://www.themoviedb.org/person/52763</url> <filmography> <movie name="Earth" id="7504" job="Actor" department="Actors" character="Dil Navaz" url="http://www.themoviedb.org/movie/7504" cast_id="2" poster="http://cf1.imgobject.com/posters/5ac/4bc91f50017a3c57fe00c5ac/earth-cover.jpg" adult="false" release="1998-09-16"/> <movie name="&#2352;&#2306;&#2327; &#2342;&#2375; &#2348;&#2360;&#2306;&#2340;&#2368;" id="7913" …

Member Avatar for arjunpk
0
161
Member Avatar for arjunpk

hi guys.... can someone please give me the code to automatically enter the movie name and the imdb id in the website given below... and then pull out the poster which it generates.... [url]http://api.movieposterdb.com/console[/url] i have to use this in an ssis package script component... to pull out images for …

Member Avatar for arjunpk
0
123

The End.