15,890,512 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Arjun Menon U.K (Top 200 by date)
Arjun Menon U.K
20-Jun-17 8:50am
View
If you not wish to help, you need not no issues. Also I guess this is an open forum.
Arjun Menon U.K
20-Jun-17 7:02am
View
But to be on safe side i wish to delete it
Arjun Menon U.K
20-Jun-17 7:01am
View
Deleted
But to be on safe side i wish to delete it
Arjun Menon U.K
20-Jun-17 7:00am
View
Richard, i know this has nothing to do with programming and i have mentioned that in the post.
Arjun Menon U.K
20-Jun-17 6:04am
View
I was searching for an emailid,its their official support address rt?
Arjun Menon U.K
15-Dec-15 9:19am
View
Hi Ryan,
Atually i was able to find a solution by making the request aysn and writing the dependent code on the readystatechanged of the xmlhttprequest object. But coming to ur suggestion, the timeout delay what shall i give? I mean we will never know when the dialog thread has done executing
Arjun Menon U.K
23-Aug-15 5:04am
View
ERPData: Object
BodyText: "BodyText"
Filters: Array[7]
0: Object
1: Object
2: Object
3: Object
4: Object
5: Object
6: Object
FooterText: "FooterText"
HeaderText: "HeaderText"
IconImage: "img/assad.jpg"
IconText: ""
IsVisible: true
Navigations: Array[37]
0: Object
1: Object
2: Object
3: Object
4: Object
5: Object
6: Object
7: Object
8: Object
9: Object
10: Object
11: Object
12: Object
13: Object
14: Object
15: Object
16: Object
17: Object
18: Object
19: Object
20: Object
21: Object
22: Object
23: Object
24: Object
25: Object
26: Object
27: Object
28: Object
29: Object
30: Object
31: Object
32: Object
33: Object
34: Object
35: Object
36: Object
PageTitle: "Title"
ProductGUId: "2"
ProductId: 1
HomeSettings: Object
IDEAData: Object
KPIData: Object
QlikViewData: Object
ScreeningData: Object
TopNavigations: null
iJETData: Object
JSON data after ajax
Arjun Menon U.K
23-Aug-15 4:57am
View
Am new to Knockout, that commented part is that how i put it
Arjun Menon U.K
23-Aug-15 4:56am
View
Navigations is one of the two list that resides inside the QlikViewData object
Arjun Menon U.K
22-Aug-15 3:31am
View
Its throwing an error. Uncaught TypeError: mainview.containerModel(...).Employee is not a function.
Arjun Menon U.K
3-Aug-15 5:18am
View
I opened one specific sheet. But after that which ever sheet name i am giving its opening the same one again
Arjun Menon U.K
3-Aug-15 5:11am
View
i want to open a specific excel sheet
Arjun Menon U.K
3-Aug-15 5:05am
View
With all due respect Sir.
So, you are saying am not a qualified software engineer? If so sorry for bothering you.
Arjun Menon U.K
23-May-15 5:07am
View
Dev its IE 10 & QA IE 11
i Have updated my question, please take a look
Arjun Menon U.K
22-May-15 3:44am
View
Sergey, like replace < with < , > with > like that no?
Arjun Menon U.K
22-May-15 3:42am
View
Am really really sorry Mani, i found a > missing in my html ... Let me correct and check ... Thanks for the response
Arjun Menon U.K
8-Apr-15 8:41am
View
"no suitable method found to override"
Got this when i build the solution
Arjun Menon U.K
8-Apr-15 8:38am
View
ok... am new to the aspx concept. So one more doubt. What does this function do and do i have to wrtie anything there? Also do i have to call it explicitly in Page Load or something?
Arjun Menon U.K
8-Apr-15 7:53am
View
Add this to my ascx.cs and then try debugging?
Arjun Menon U.K
18-Mar-15 7:18am
View
Hi Rajeesh,
I did check that site before posting here and am sure i am not doing anything like it in code behind.
Arjun Menon U.K
18-Mar-15 6:57am
View
No... just ascx page
Arjun Menon U.K
31-Jan-15 3:29am
View
Hi Sergey,
I think the onchange is working first, bcs the cancel JS confirm is not coming. Anyway let me try :)
Thanks for the help.... :)
Arjun Menon U.K
31-Jan-15 0:45am
View
thanks richard
Arjun Menon U.K
28-Jan-15 7:46am
View
I think i found the solution.
var tmpAuditDate = $(this).parent().find('[id*=Date]').val(); //value from date picker
var auditDate = "";
if (tmpAuditDate) {
var dString = tmpAuditDate.split(dateSeparator);
if (dateSeparator == ".") {
auditDate = new Date(Date.UTC(dString[2], dString[1] - 1, dString[0]));
}
else {
auditDate = new Date(Date.UTC(dString[2], dString[0] - 1, dString[1]));
}
auditDate.setDate(auditDate.getDate());
}
Arjun Menon U.K
28-Jan-15 5:44am
View
Hi Snesh,
Thanks for the reply.I tried with toUTCString and it gave me a format like this "Mon, 5 Jan 2015 08:00:00 UTC" and the REST API returned exception as this "Cannot convert a primitive value to the expected type 'Edm.DateTime'. "
Arjun Menon U.K
27-Jan-15 12:55pm
View
Hi Richard,
Will try and let you know :)
Arjun Menon U.K
25-Jan-15 5:49am
View
Am able to do in static control.
Arjun Menon U.K
25-Jan-15 4:37am
View
Also, i will soon move the scripts to a js file and will add the reference in ascx
Arjun Menon U.K
25-Jan-15 4:25am
View
its ascx not aspx. Sharepoint custom webpart
Arjun Menon U.K
25-Jan-15 4:20am
View
I have updated my question. The dynamic binding is happening in this function "BindDatePickers". Also which all references are required for the date picker to come
Arjun Menon U.K
25-Jan-15 4:10am
View
Hi Peter,
It did the trick. This is a sample thing i did when it didn't work in my project. In my project scenario, its an ascx page. and i have written the script below the ascx stuffs. So what shall i do in this case?
Arjun Menon U.K
22-Jan-15 10:15am
View
Hi MT
I saw that article and i have the code provided. But its for each and every row. But in my case there will be only a single button to do the edit for the whole list
Arjun Menon U.K
6-Nov-14 7:29am
View
I still do have problem
Arjun Menon U.K
3-Nov-14 1:51am
View
Deleted
HiTomas,I have declared the same .
Arjun Menon U.K
28-Oct-14 13:34pm
View
Worked like a charm... Thanks a lot
Arjun Menon U.K
28-Oct-14 13:18pm
View
Hi thanks a lot. I will try it out and get back to you ... :)
Arjun Menon U.K
28-Oct-14 13:01pm
View
I can say those two docs belong to a root node called TABLE, so how can i combine the two XmlDocs with the TABLE root
Arjun Menon U.K
28-Oct-14 12:54pm
View
Hi thanks for the elaborate detailing.
So if i want to create an XML like this dynamically.. How can i do this?
Arjun Menon U.K
28-Oct-14 11:57am
View
shall i create two docs and combine them and assign to another? Can you provide a sample
Arjun Menon U.K
16-Oct-14 11:53am
View
var ext = new List<string> {".exe"};
var myFiles = Directory.GetFiles("C:\\", "*.*", SearchOption.AllDirectories).Where(s => ext.Any(file => s.EndsWith(file)));
I tried using this. But when the access denied files are checked, it throws an error
Arjun Menon U.K
17-Sep-14 9:57am
View
It aint like that . Sorry .All excel sheet name ends with $ whether its hidden or not
Arjun Menon U.K
18-Aug-14 10:18am
View
I can't write the Javascript section as i am using Angular JS , anyway thanks for the reply
Arjun Menon U.K
12-Aug-14 9:06am
View
Hi Yasir,
Thanks for the reply . I am not allowed to use JavaScript/JQuery only Angular ... :(
Arjun Menon U.K
1-Aug-14 9:08am
View
How can i get the filename and all?
Arjun Menon U.K
16-Jul-14 9:45am
View
When the child control has contents beyond the parent, the parent div by default increases in size, there by creating scroll. This is what i had in mind
Arjun Menon U.K
16-Jul-14 9:42am
View
Can you please explain this piece of code.
First point , is mentioned in the code you provided rt?
The frames[0] means first iframe and since i am hiding the scroll, will it work? Same is the case with second one too
Arjun Menon U.K
15-Jul-14 8:06am
View
Nop , sorry
Arjun Menon U.K
15-Jul-14 8:01am
View
I need to open it programatically and make some changes to it
Arjun Menon U.K
7-Jul-14 11:18am
View
Hi Nirav, thanks for the reply. Out of scope of this question. I have written the following JQuery in my ascx page and its a sharepoint webpart shown as pop up. But the alert is not coming
$(document).ready(function () {
memoID= GetQueryStringParams('MemoID');
alert(memoID);
});
function GetQueryStringParams(querystring)
{
try {
var pageURL = window.location.search.substring(1);
var queryStrings = pageURL.split('&');
for (var i = 0; i < queryStrings.length; i++)
{
var parameterName = queryStrings[i].split('=');
if (parameterName[0] == querystring)
{
return parameterName[1];
}
}
} catch (e) {
alert(e.message);
}
}
Arjun Menon U.K
7-Jul-14 5:29am
View
Thanks Tadit. I found out by experimenting.. ANyway thanks a lot for replying...:)
Arjun Menon U.K
30-Jun-14 10:01am
View
Sorry for that. Its just the built in Version History pop up
Arjun Menon U.K
7-Apr-14 8:11am
View
:) thanks buddy
Arjun Menon U.K
7-Apr-14 7:56am
View
Hi , it worked when i called Update(). Thanks a lot. But my question is why it works while debugging, from what you have said it means that debugging causes the control to redraw. Correct me if i am wrong. The visible setting to false works without the update function which puzzles me more
Arjun Menon U.K
7-Apr-14 7:32am
View
Did you see the code i posted above. I am setting the visibility of both label & progress bar in that if statement and its working for pgbar nd not for label,provided am not debugging it :'(
Arjun Menon U.K
7-Apr-14 7:27am
View
Then y its working for progress bar?
Arjun Menon U.K
7-Apr-14 7:01am
View
I am setting this property on Button click. What puzzles me is that it works for Progress bar, then y not for txtbox or label
Arjun Menon U.K
4-Apr-14 2:45am
View
xlWorkbook.Close(0);
Arjun Menon U.K
4-Apr-14 2:28am
View
what about that TFS error
Arjun Menon U.K
4-Apr-14 2:22am
View
Since i am ready file, it is not open in any other window so as you said it will show a dialog. Besides its not getting removed as i can see a thread of excel.exe in task manager. So there is no way i can handle this?
Arjun Menon U.K
3-Apr-14 10:32am
View
One thing i must say at first say is that excel templates change. Column names are dynamically set as per my above code.
I think am back to square one . Sorry .. The column values say ID has value 11, then as you have said i should set the datacolumn datatype as int rt? This is the reason why i wrote like this
for (int colIndex = 1; colIndex < colCount; colIndex++)
{
dtResult.Columns.Add(xlRange.Cells[2, colIndex].Value2.ToString());
}
So i must get the value of each column so that i can set the datatype right?
Arjun Menon U.K
3-Apr-14 10:16am
View
you mean set data type in excel? well i can't do that. i can't do a thing on excel. otherwise i would have set the date in a universal format :P.
If you meant it in the datatable, how can i set the column data type as i am just reading the excel values.
Arjun Menon U.K
3-Apr-14 10:12am
View
before doing that conversion i must check its of date format rt
because other columns can have int,float,string values
Arjun Menon U.K
3-Apr-14 10:01am
View
Dude, but there is an issue. When i select an excel file. it's shown in grid. so if i use value2 it will show that double value, which will cause problem and when i click another button, then its read from this datagrid and saved. So,while reading from this datagrid,since its double value it will cause problem right?
Arjun Menon U.K
3-Apr-14 9:51am
View
how it will save my day ????? ;) . because excel will contain many types of column values na?
Here's the code
private void ReadExcel()
{
Excel.Application xlApp = new Excel.Application();
Excel.Workbook xlWorkbook = xlApp.Workbooks.Open(openFileDialog1.FileName);
Excel._Worksheet xlWorksheet = xlWorkbook.Sheets[1];
Excel.Range xlRange = xlWorksheet.UsedRange;
int rowCount = xlRange.Rows.Count;
int colCount = xlRange.Columns.Count;
DataTable dtResult = new DataTable();
//Create columns for dtResult
for (int colIndex = 1; colIndex < colCount; colIndex++)
{
dtResult.Columns.Add(xlRange.Cells[2, colIndex].Value2.ToString());
}
for (int i = 3; i <= rowCount; i++)
{
DataRow _dr = dtResult.NewRow();
for (int j = 1; j <= dtResult.Columns.Count; j++)
{
_dr[dtResult.Columns[j - 1]] = xlRange.Cells[i, j].Value != null ? xlRange.Cells[i, j].Value.ToString() : "";
}
dtResult.Rows.Add(_dr);
dtResult.AcceptChanges();
}
dataGridView1.DataSource = dtResult;
}
Arjun Menon U.K
3-Apr-14 9:04am
View
Hi, when i read values using this code, the date got converted to a double value. why is that so?
xlRange.Cells[2, colIndex].Value2.ToString()
But when i use value instead of value2 it works fine . What's the difference?
Arjun Menon U.K
3-Apr-14 8:34am
View
mmm lemme check. Thanks anyways
Arjun Menon U.K
3-Apr-14 7:08am
View
Hi,
That's the problem bro. If i can't know the format of date how on earth i can compare two dates. Like you said 01-02-2014 can be either Feb 1st 2014 or Jan 2nd 2014. How can i get the current culture?It's merely a string value. The data in excel is exported from TFS server, a work item like task,bug,user story anything like that
Arjun Menon U.K
3-Apr-14 6:47am
View
that's the problem sky, i can't specify the format as sometimes the date will be in date/month/year and sometimes month/date/year :'(
Arjun Menon U.K
3-Apr-14 6:45am
View
Hi ,
I can assure you that both string value will be in same format. But what i find nearly impossible is to find the format of the data. like its dd/mm/yyyy format or mm/dd/yyyy format. Culture info do play a role rt?
Arjun Menon U.K
3-Apr-14 2:54am
View
I think the reason is that the sortfield is not checked for every entity's field in the list
Arjun Menon U.K
3-Apr-14 2:26am
View
Hi gggustafson,
Thanks a lot for the detail reply. I have removed some of the conditions you specified and i apologise for putting the old code. Then i have one doubt regarding the sorting case you specified.
You told me not to sort desc, rather always sort in ascending and reverse the list. Out of curiosity , the above code won;t work?
This is the code i have written
var tmpList = from employee in objDB_ArjunEntities.Employees.ToList()
orderby sortingField descending
select employee;
foreach (Employee emp in tmpList.ToList())
{
if (includeInActive)
{
lstEmployee.Add(emp);
}
else if (emp.IsActive)
{
lstEmployee.Add(emp);
}
}
Arjun Menon U.K
2-Apr-14 9:04am
View
Assert i can use rt?
Assert.AreEqual(validateExcel, true);
Arjun Menon U.K
2-Apr-14 6:56am
View
I am only asking whether i process i did is rt or not?
Arjun Menon U.K
2-Apr-14 3:51am
View
It just checks whether the dt contains the specified columns nothing much
Arjun Menon U.K
2-Apr-14 3:07am
View
I have a wind form project. I have added a unit test project. I am writing test case for some functions inside my project. One such function is ValidateExcel.But ValidateExcel function has a datatable as parameter. When i call the ValidateExcel from unit test class i have to provide the parameter and i am asking whether the code i wrote above is sufficient ...
Arjun Menon U.K
2-Apr-14 2:58am
View
I just want to make sure, whether it is the right method to put data for unit testing
Arjun Menon U.K
2-Apr-14 2:33am
View
Sorry for not being clear. It just checks whether the dt contains the specified columns nothing much. One more question(may be a dumb question) , i have written test case for this function. Is there any sync between test case & code. Or we create test case only to check whether the function fails if any modifications is done on the function?
Arjun Menon U.K
1-Apr-14 10:36am
View
say i want to check for a file upload, how can i achieve it? where shall i write the code?
Arjun Menon U.K
1-Apr-14 10:31am
View
I was able to add reference. What do i want to know is , what am i supposed to write here.? I know its adumb question but i don't have a clue
Arjun Menon U.K
1-Apr-14 10:28am
View
Deleted
I was able to add reference. What do i want to know is , what am i supposed to write here.? I know its adumb question but i don't have a clue
Arjun Menon U.K
31-Mar-14 4:01am
View
Ok, but i didn't get the answer yet :(
Arjun Menon U.K
28-Mar-14 11:31am
View
what if i am not using partial view. I used post coz i already have a index action
Arjun Menon U.K
27-Mar-14 7:59am
View
Sure thing.. THanks buddy
Arjun Menon U.K
26-Mar-14 9:07am
View
From what you have said, i thnk this is it. I declare a global list say a dictionary for each row. Then while the datatable containing the excel values are looped and saved in DB , the result is stored in the dictionary. But what i do want to know is that whether the cell painting is called automatically again after the db process? anyways i will try.datagrid.refresh, causes only its repainting rt?
Arjun Menon U.K
26-Mar-14 8:54am
View
But how can i call the event during the datatable looping?
Arjun Menon U.K
26-Mar-14 5:46am
View
Is there any function , like File.AppendText, that checks and creates a folder automatically
Arjun Menon U.K
26-Mar-14 2:36am
View
what about this
string filePath = Directory.GetParent(Path.GetDirectoryName(Application.StartupPath)) + ConfigurationManager.AppSettings["LogFilePath"];
Arjun Menon U.K
25-Mar-14 9:54am
View
Don't be sad.
Arjun Menon U.K
25-Mar-14 9:53am
View
Yes, found it . It was readonly. When i changed it,its working fine. : )
Arjun Menon U.K
25-Mar-14 7:45am
View
Hi all,
A funny thing happened. This problem is happening only when the file being read in opened in excel. i mean when i have kept the file opened and then try to read using my win app. DOes this happen?
Arjun Menon U.K
24-Mar-14 3:14am
View
string path = Directory.GetParent(Path.GetDirectoryName(Application.StartupPath)) + "\\Log\\Log.txt";
if (!File.Exists(path))
{
// Create a file to write to.
string createText = "Date:-" + DateTime.Now + ".Error:-" + message + Environment.NewLine;
File.WriteAllText(path, createText);
}
else
{
// This text is always added, making the file longer over time
// if it is not deleted.
string appendText = "Date:-" + DateTime.Now + ".Error:-" + message + Environment.NewLine;
File.AppendAllText(path, appendText);
}
This worked thanks
Arjun Menon U.K
24-Mar-14 3:07am
View
Can you please tell me , why if the File.Create(path); followed by the File.Append / stream wirter write function throwing error , already in use?
Arjun Menon U.K
24-Mar-14 3:04am
View
what if the file don't exists?
Arjun Menon U.K
24-Mar-14 2:52am
View
if (!File.Exists(path))
{
File.Create(path);
TextWriter tw = new StreamWriter(path);
tw.WriteLine(message);
tw.Close();
}
else if (File.Exists(path))
{
TextWriter tw = new StreamWriter(path);
tw.WriteLine(message);
tw.Close();
}
Any problem in this??
Arjun Menon U.K
24-Mar-14 1:01am
View
But not column values will be of date format na? so how can i implement this? Do i have to hard code the column names or is there any way to identify that the column value is of date format?
Arjun Menon U.K
24-Mar-14 0:21am
View
SInce i am using adapter, the datatable will be filled automatically na. so either i have to loop the datatable and then convert or while reading data i must do it, but to do the second way i have to find another way rt?
Arjun Menon U.K
17-Mar-14 7:26am
View
can i use this.context. something to get the value?
Arjun Menon U.K
17-Mar-14 0:51am
View
When i inspect the Page , its showing the aspx page name but control name is not there in the collection class... y is that so?
Arjun Menon U.K
17-Mar-14 0:47am
View
Hi Tejas,
since the hidden control in Master page(ASPX) is it possible to get the value of that control in child page(ASCX) ?????
i gave like this
HiddenControl hdn=(HiddenControl)Page.FindControl("hdnText");
This is the control in aspx page
<asp:HiddenField ID="hdnText" runat="server" Value="0" />
But it returns null
Arjun Menon U.K
17-Mar-14 0:38am
View
Thanks Matt
Arjun Menon U.K
7-Mar-14 8:39am
View
thanks i got it...
Arjun Menon U.K
6-Mar-14 23:34pm
View
The two user controls are within another user control which also has the tree view.So this.Parent.FindControls("xxxx"), it should get the control rt???
Arjun Menon U.K
6-Mar-14 23:31pm
View
Hi shelby
I tried creating a property in the user control that has tree view and tried to access that using the User Control's object. But the problem is that the class is not public. The point you specified did cross my mind, but as I said the class is not public. I think I have to make it public and try it.
Arjun Menon U.K
6-Mar-14 23:30pm
View
Hi krunal, i tried creating a property in the user control that has tree view and tried to access that using the User Control's object. But the problem is that the class is not public. The point shelby specified below do crossed my mind, but as I said the class is not public. I think I have to make it public and try the way Shelby specified below.
Arjun Menon U.K
3-Jan-14 5:25am
View
according to this article, pushstate wont refresh page
http://spoiledmilk.com/blog/html5-changing-the-browser-url-without-refreshing-page/#comment-6552
Arjun Menon U.K
3-Jan-14 5:19am
View
When i uncomment the code above, refresh happens
Arjun Menon U.K
3-Jan-14 5:18am
View
Hi Manfred R. Bihy,
No actually what i need to do is to update a browser url, so that the actual url will not get displayed. Since the request is AJAX, it wont be reflected in the browser url, that's y am asking this.
Arjun Menon U.K
2-Jan-14 23:17pm
View
Tadit,it seems the package installer failed.I uninstalled it and installed again and its working fine. Now what i want to achieve is the onclick for CheckboxFor Control. Any info on that :)
Arjun Menon U.K
28-Dec-13 2:59am
View
$.ajax({
url: "/" + controller + "/" + action + "/" + id + "/",
type: "Get",
cache: false,
error: (function (error) { alert(error) }),
success: (function (response) {
$("#Content").html(response);
document.title = response.pageTitle;
//window.history.pushState({ "html": response.html, "pageTitle": response.pageTitle }, "", urlPath);
if (history.pushState) {
//history.pushState(null, null, '#myhash');
window.history.pushState({ "html": response.html, "pageTitle": response.pageTitle }, "", urlPath);
}
else {
window.location.pathname = urlPath;
// window.history.pushState({ "html": response.html, "pageTitle": response.pageTitle }, "", urlPath);
}
//alert(data);
})
});
This is working. If anything is not correct please correct me
Arjun Menon U.K
26-Dec-13 22:30pm
View
Thanks Rahul : )
Arjun Menon U.K
26-Dec-13 22:29pm
View
thanks hamad :)
Arjun Menon U.K
25-Nov-13 3:33am
View
Sorry for my lame Question Sergey
Arjun Menon U.K
25-Nov-13 3:32am
View
Thanks a lot Original Griff...
Arjun Menon U.K
20-Nov-13 6:58am
View
what?
Arjun Menon U.K
20-Nov-13 6:24am
View
Hi Ridoy,
But can i ask you a doubt , in the example shown Save event is called i.e of object Image rt? What am i looking for is to avoid that save and read the contents
Arjun Menon U.K
20-Nov-13 6:15am
View
Hi Ridoy ,
Thanks for the quick reply. Let me check whether i get the desired result. I hope it does..... Thanks anyways :)
Arjun Menon U.K
20-Nov-13 5:58am
View
My apologies...
Arjun Menon U.K
13-Nov-13 6:37am
View
Hi,
\w --> checks for [A-Za-z0-9_] and
\W--> checks for characters other than [A-Za-z0-9_]
rt?
So what if i have to check only alphanumerics a-z or -0-9 or combination of both.... Currently am using this
Regex regexUSerName = new Regex("^[a-zA-Z0-9 ]*$");
Arjun Menon U.K
3-Oct-13 8:03am
View
I know that i can specify the url where the object is called. But sadly my webservice has more than 1000 functions and its quite not practical now to put urls there .. Is there any other way?
Arjun Menon U.K
2-Oct-13 8:45am
View
So u are telling me to download the file from Server To A Folder In Another Server And then download from that folder?
Arjun Menon U.K
1-Oct-13 10:49am
View
the reason i did so is that we don't have to stop the running site so as to change the url. Since the app config exists , applying the url won't do my job, i guess... :(
Arjun Menon U.K
1-Oct-13 1:08am
View
Its there in appconfig file. I removed the key and when i updated it , it still getting changed to the
global::Drd.Properties.Settings.Default.CoreBusiness_UbossProvisioning_ABC;
Arjun Menon U.K
1-Oct-13 1:00am
View
so if i put the url in webconfig file and i remove the thing you mentioned above, it will work?
Arjun Menon U.K
30-Sep-13 10:05am
View
object of service means??
Arjun Menon U.K
30-Sep-13 9:53am
View
yes :(
Arjun Menon U.K
30-Sep-13 9:39am
View
web service is not a local host...its in a separate server...
that address is specified in the web config key...
I hope what am telling is the answer to ur question : )
Arjun Menon U.K
19-Sep-13 6:08am
View
it uses embed tag bro... that's what i have written above
Arjun Menon U.K
19-Sep-13 4:58am
View
Here in this link ( http://www.phon.ucl.ac.uk/home/mark/audio/play6.htm ) , its been said that the code is compatible in all browsers like IE,FF,Chrome & Safari. But its not working for me except in Chrome
Arjun Menon U.K
19-Sep-13 4:53am
View
24.0 this is the version of firefox am using and if my memory is correct audio tag wont work in FF
Arjun Menon U.K
19-Sep-13 4:36am
View
didn't work in FF
Arjun Menon U.K
19-Sep-13 4:00am
View
msie = Microsoft IE?
Arjun Menon U.K
19-Sep-13 3:56am
View
Hi sajjad, the got the code from the mentioned site and it doesn't seems to work :(
Arjun Menon U.K
19-Sep-13 3:55am
View
Hi,
can u pls explain the concept here... what does the code actually do?
Arjun Menon U.K
18-Sep-13 6:10am
View
how can i find the content type, like if the pass the file name i must get the content type
Arjun Menon U.K
18-Sep-13 6:03am
View
you mean this one
static bool IsTxtFile(string f)
{
return f != null &&
f.EndsWith(".txt", StringComparison.Ordinal);
}
Arjun Menon U.K
18-Sep-13 5:53am
View
mmm that's the only way i have in mind too .. to check whether its wav/x-wav but it seems not a good logic coz god knows what else can come for a wav file next time
Arjun Menon U.K
18-Sep-13 5:46am
View
The comparing data is the problem.. One browser returns wav and other x-wav for same file... so how to compare?
Arjun Menon U.K
18-Sep-13 5:41am
View
If i am right ,this wont get the accurate data because if i rename the file name as ABC.gif where the actual content type is png, the above code returns gif instead of png. Correct me if i am wrong
Arjun Menon U.K
13-Sep-13 14:20pm
View
Hi Prasad,
Thanks for the post. I too thought that the thing you said was the reason... Nyways thanks for correcting me.. CHeers bro!
Arjun Menon U.K
13-Sep-13 4:33am
View
The dr value is the url itself...which has the filename+exension
here's the example
https://******/DeviceLogo/****_250_100.gif
Arjun Menon U.K
13-Sep-13 4:24am
View
i created a counter and set the counter name as file with extension , then its saving fine.. but i want to save in the original file format
Arjun Menon U.K
13-Sep-13 4:10am
View
foreach (DataRow _drDevice in dtDeviceLoogos.Rows)
{
using (WebClient Client = new WebClient())
{
Client.DownloadFile(_drDevice["LogoPath"].ToString(), "D:\\Logos\\_drDevice[""].ToString());
}
}
The code above causing an error "An exception occurred during a WebClient request."
Arjun Menon U.K
13-Sep-13 4:08am
View
foreach (DataRow _drDevice in dtDeviceLoogos.Rows)
{
using (WebClient Client = new WebClient())
{
Client.DownloadFile(_drDevice["LogoPath"].ToString(), "D:\\Logos\\_drDevice[""].ToString());
}
}
The code above causing an error "An exception occurred during a WebClient request."
Arjun Menon U.K
30-Aug-13 7:05am
View
thanks mahesh. it seems i have done the same here :)
Arjun Menon U.K
21-Jul-13 9:46am
View
ok, sorry will remove this question asap
Arjun Menon U.K
18-Jul-13 3:39am
View
this will group by name know... what i am trying to do is a grid view in which first column in Check box to select the rows, the second column the business name , then 8 other columns. i want to create a single cell for a business and it will have 8/10 rows for the remaining fileds... like this
http://social.msdn.microsoft.com/Forums/windows/en-US/a44622c0-74e1-463b-97b9-27b87513747e/windows-forms-data-controls-and-databinding-faq#faq8
but am not getting any idea how to implement this
Arjun Menon U.K
4-Jun-13 1:46am
View
the problem is the image is not getting resized,no error is showing
Arjun Menon U.K
3-Jun-13 6:20am
View
The first link's the same as mine and it didn't work .:(
Arjun Menon U.K
25-May-13 11:54am
View
Thanks dude, i was looking for the same thing .. THumbs Up
Arjun Menon U.K
20-May-13 4:18am
View
one more thing. If by giving the regEx exp as above does the test method check the order too. like whether the inputted value starts with characters then numbers.. ???
Arjun Menon U.K
20-May-13 4:16am
View
sadly its blocked by my company's firewall.. I want to check a value entered contains only numbers and characters from a-f. like hexadecial number,can i check like this ^[a-fA-F0-9]*$
Arjun Menon U.K
20-May-13 4:14am
View
thanks griff
Arjun Menon U.K
20-May-13 1:58am
View
Hi, i have a doubt. i want to check a textbox value with regex that allow only a-z,A-Z,0-9.. i came across a regex ^[a-zA-Z0-9]+$ and ^[a-zA-Z0-9]*$
I would like to know what the +$ and *$ means. The ^ denotes starting of the string being checked rt? . Please correct if i am wrong
Arjun Menon U.K
25-Apr-13 23:43pm
View
string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
string path = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
what is the difference? the first one returns the assembly path and second one exe of the applicatiion? All i want to do is get a file content from a path. The file is in the bin folder of apps so i thnk second one is correct.. Pls Correct if i am wrong.. Thanks in advance
Arjun Menon U.K
25-Apr-13 6:10am
View
I also want to back up and restore a database following the same method. that is the database to be backup is entered using GUI and so is the destination DB name. Can you help
Arjun Menon U.K
25-Apr-13 6:09am
View
yes.
Arjun Menon U.K
8-Apr-13 5:57am
View
THANKS
Arjun Menon U.K
3-Apr-13 0:28am
View
I googled it but i didn't find any thing that did the trick for me,may be because am not good at programming..My apologies
Arjun Menon U.K
3-Apr-13 0:26am
View
Thanks A lot For Your Answer Mr. Sergey
Arjun Menon U.K
2-Apr-13 7:03am
View
HI Original Griff, what if i want to open a player and play the sound??
Arjun Menon U.K
2-Apr-13 4:44am
View
No use :(
Arjun Menon U.K
2-Apr-13 3:39am
View
where shall i put the end point tag
Arjun Menon U.K
2-Apr-13 0:30am
View
I have heard that GetExtension Method can be tricked , so that we won't get the real extension
Arjun Menon U.K
25-Mar-13 7:29am
View
strHTML.Append("<select id='ddlDialEntries' name='ddlDialEntries'>");
FieldInfo fi = ServiceAssignmentModel.DialEntries.LastNameFirstName.GetType().GetField(ServiceAssignmentModel.DialEntries.LastNameFirstName.ToString());
DescriptionAttribute[] attributes =
(DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
if (attributes != null && attributes.Length > 0)
description= attributes[0].Description;
else
description= ServiceAssignmentModel.DialEntries.LastNameFirstName.ToString();
strHTML.Append("<option value=" + ServiceAssignmentModel.DialEntries.LastNameFirstName + "> " + description + "</option>");
fi = ServiceAssignmentModel.DialEntries.LastNameFirstNameorFirstNameLastName.GetType().GetField(ServiceAssignmentModel.DialEntries.LastNameFirstNameorFirstNameLastName.ToString());
attributes =(DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
if (attributes != null && attributes.Length > 0)
description = attributes[0].Description;
else
description= ServiceAssignmentModel.DialEntries.LastNameFirstNameorFirstNameLastName.ToString();
strHTML.Append("<option value=" + ServiceAssignmentModel.DialEntries.LastNameFirstNameorFirstNameLastName + "> " + description1 + "</option>");
strHTML.Append("</select>");
return strHTML.ToString();
I was able to achieve with the code above... but am not sure its a good method or not??
Arjun Menon U.K
23-Mar-13 5:41am
View
the reason i gave string is that the entity is set from a xml response (from a web service) and i found that int values passed over webservice have value maintaining problem. Since i don't know much about it i gave all entity values as string.
Arjun Menon U.K
23-Mar-13 4:24am
View
Yes Griff, i tried the method you told...
objtempSchedule.StartMinute = objBWTemp.StartMinute;
the entity i try to set are both strings. I tried this objtempSchedule.StartMinute = objBWTemp.StartMinute.ToString("D2"); but its showing error "No actual conversion is performed"
Arjun Menon U.K
23-Mar-13 4:20am
View
Hi Prasad ,
The value am getting is not int but string from database
Arjun Menon U.K
8-Dec-12 4:05am
View
Is there something wrong with the way am doing??
Arjun Menon U.K
8-Dec-12 3:22am
View
Why i am nt getting the entered values from textbox while updating?
Arjun Menon U.K
28-Nov-12 10:43am
View
Thanks a lot Krunal
Arjun Menon U.K
28-Nov-12 10:39am
View
Can u elaborate?? This is the current code i am using
<columns>
<asp:TemplateField HeaderText="Name">
<itemtemplate>
<asp:LinkButton ID="lnkName" runat="server" Text='<%# Eval("name")%>' >
<asp:TemplateField HeaderText="Address">
<itemtemplate>
<asp:Label ID="lblAge" runat="server" Text='<%# Eval("age")%>'>
<asp:TemplateField HeaderText="Age">
<itemtemplate>
<asp:Label ID="lblAddress" runat="server" Text='<%# Eval("address")%>'>
Arjun Menon U.K
18-Oct-12 0:00am
View
SP_RENAME 'Student.StudentId', 'SID ', 'COLUMN'
IS there any other way than the query above using any DML statements.. IT will be of great help,Thanks in adv
Arjun Menon U.K
12-Oct-12 8:31am
View
Sorry Aarti i dont have any data my friend just texted this and i couldn't find a solution
Arjun Menon U.K
27-Sep-12 2:56am
View
Mazumder i tried the method u told but sadly my requirement is that a checkbox must appear for every item in the DDL... :(
Arjun Menon U.K
21-Sep-12 2:06am
View
Sorry Dave
Arjun Menon U.K
21-Sep-12 1:21am
View
Deleted
function SetDuration() {
try {
var month = document.getElementById("ddlContractDuration").value;
var CurrentDate = new Date();
var toDate = new Date();
toDate.setMonth(Number(toDate.getMonth()) + Number(month));
document.getElementById('txtDuration').value =toDate.toString('mm/dd/yyyy');
}
catch (ex) {
alert(ex.Message());
}
}
This is the code am doing now... The calculation is correct but the format is not correct
Arjun Menon U.K
17-Sep-12 8:10am
View
@amit i avoided LING just mere looping and checking... :)
Arjun Menon U.K
17-Sep-12 1:52am
View
Thanks CodeHawkz:) i did in c# anyways thanks a lot :)
Arjun Menon U.K
17-Sep-12 1:52am
View
Thanks amit :) i did in c# anyways thanks a lot :)
Arjun Menon U.K
17-Sep-12 1:05am
View
I am trying to list a product (say a Bike) i have to list among them the manufacturer the model and the service center..Only the service center name changes where as it remains the same for the manufacturer and model. So i should display list as <manufacturer> <model> <servicecenter1>,<servicecenter2>
Arjun Menon U.K
17-Sep-12 0:52am
View
Its the requirement other wise i will have duplicate values except for the Age columns
Arjun Menon U.K
11-Sep-12 7:29am
View
I am on it will let u know the result soon... Thnks in adv :)
Arjun Menon U.K
11-Sep-12 7:21am
View
This is the situation.. am creating a device(in portal for storing in DB) and i can select country where it will be available plus the agencies that are gng to fulfill the device order. I am storing these details in "device detail". Suppose i selected 2 countries there will be two rows with exact same value but with countryid being the only difference. when i list the page there r 2rows now as the country id is different,but my TL said to show in a single row provided the country shown separated by commas.. hope this will make things bit more clear
Arjun Menon U.K
11-Sep-12 7:17am
View
The xml part is still confusing me... sorry mam if i am making you angry may be i am not thinking the right way :D...
Arjun Menon U.K
11-Sep-12 6:56am
View
It will be very helpful if you can provide some kind off query so that i can retrieve using DataTable and loop it and display the result
Arjun Menon U.K
11-Sep-12 6:53am
View
i am showing the result in a HTMl page... and i don't know the "abcd" of xml and it seems i cant use XML too... So is there another way...
Arjun Menon U.K
11-Sep-12 6:44am
View
Hi aarti a doubt what's with the [ for xml path('') ] .. I am new to SQL that's why my doubt
Arjun Menon U.K
14-Aug-12 23:25pm
View
Thaks Gracious... :)If you are from India Happy Independence :)
Arjun Menon U.K
2-Aug-12 6:35am
View
ok.. let me try... thanks amit
Arjun Menon U.K
2-Aug-12 6:27am
View
_Amy
The page that list filename is html which is creatd using stringbuilder and some functions in our framework here... All i need to do is to display the file in another tab if its image or else download the file.. I managed to do all this but i would like to show the tab name as the file name..
I managed to create a new tab just by giving the target='_blank' on the on click of the file name
Arjun Menon U.K
2-Aug-12 6:17am
View
Page represents an aspx page know? and am creating a html page so ???
Arjun Menon U.K
2-Aug-12 6:07am
View
can u provide some code
Arjun Menon U.K
2-Aug-12 6:06am
View
how can i set title Amit ??? Am amateur in this field
Arjun Menon U.K
28-Jul-12 6:35am
View
:( My apologies
Arjun Menon U.K
28-Jul-12 5:27am
View
ha ha nice one smith.. but the problem is the system am doing is a bug reporting one and one can copy some contents from it which may have tables and the selected regions may have broken tags
Arjun Menon U.K
25-Jul-12 8:01am
View
What if i have broken HTML contents like an unclosed div or table?
Arjun Menon U.K
25-Jul-12 8:00am
View
Richard I think he meant by difference in a sense that both are different measures to calculate time...
Arjun Menon U.K
25-Jul-12 0:36am
View
mmm Thanks anyways .... Mehdi .. cheers
Arjun Menon U.K
24-Jul-12 23:29pm
View
UTC and GMT are different know?
Arjun Menon U.K
24-Jul-12 23:29pm
View
UTC and GMT are different know?
Show More