15,896,502 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 Riya-Pandey (Top 38 by date)
Riya-Pandey
19-Jan-16 7:18am
View
This is the function in the childpage inside document.ready
if ($('#<%= hiddSuccess.ClientId%>').val() == "1") {
$('input[id*="hiddId"]:first', window.parent.document).val($('#<%= hiddValue.ClientId%>').val());
$('input[id*="txtSelectOne"]:first', window.parent.document).val('ASUS_ME102A-1A035A : ASUS_ME102A-1A035A');
window.parent.closeIframe();
return false;
}
This is inside pageload of parent page
If Not IsPostBack Then
If (Not PrivilegeHelper.licenseLoginCheck(Session, Response, Request, "ABCD", True)) Then
Exit Sub
End If
Dim trans As Translator = New Translator(Session("UserLNG").ToString())
Translate(trans)
BindGrid(first, second)
End If
Riya-Pandey
19-Jan-16 7:08am
View
even if i am returning false or setting e.preventDefault() from child page, post back happens
Riya-Pandey
19-Jan-16 7:08am
View
nop. i have used IsNotPostback. and i have not reinitialized the values. coz of post back the values of both fields that i am populating from the child page becomes blank.
this is what is happening inside the pageLoad
If Not IsPostBack Then
If (Not PrivilegeHelper.licenseLoginCheck(Session, Response, Request, "ABCD", True)) Then
Exit Sub
End If
Dim trans As Translator = New Translator(Session("UserLNG").ToString())
Translate(trans)
BindGrid(first,second)
End If
Riya-Pandey
19-Jan-16 6:49am
View
window.parent.document is working fine. i checked just now that it is also setting the value in the corresponding fields. however post back is happening and i am loosing the values then. any suggestions. Can't use querystring , session , viewstate etc.
Riya-Pandey
11-Jan-16 2:31am
View
Yup It worked . i have now made it to work. Thank you Briyan
Riya-Pandey
6-Jan-16 0:25am
View
Did that. Result is the same. :'(
Riya-Pandey
6-Jan-16 0:11am
View
I have tried that. Console doesn't shows any error. I am using firebug
Riya-Pandey
30-Dec-15 4:09am
View
yes. in case of download it doesn't disappears but in case of load it does. No error on console.
Riya-Pandey
28-Oct-15 3:38am
View
<script type="text/javascript">
$(document).ready(function () {
$.ajax({
url: 'MYService.asmx/GetID',
type: 'post',
data: { clientid: "<%= Session["clientId"]%>" },
dataType: "json",
success: function (serverdata) {
$('#datatable').dataTable({
data: serverdata,
columns: [
{ 'data': 'ID' },
{ 'data': 'Description' },
{ 'data': 'Deleted' },
]
});
}
});
});
</script>
this is the code from service
public void GetID(int ClientId)
{
string cs = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
List<client> lst = new List<client>();
using (SqlConnection con = new SqlConnection(cs))
{
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "Select [ID], [Description],[Deleted] from [Client] where [ClientId]=@ClientId";
cmd.Parameters.AddWithValue("@ClientId", ClientId);
cmd.Connection = con;
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
Client client = new Client ();
client.Id = dr["ID"].ToString();
client.Description = dr["Description"].ToString();
client.Deleted = (bool) (dr["Deleted"]);
lst.Add(client);
}
}
JavaScriptSerializer JSS = new JavaScriptSerializer();
Context.Response.Write(JSS.Serialize(lst));
}
Riya-Pandey
28-Oct-15 3:25am
View
I read the Articles that you provided . although it was not helpful for the current problem yet gaining some insight as to how things work is always helpful. Thank you
Riya-Pandey
28-Oct-15 3:22am
View
i am binding to a table. table only has header
<table id="datatable">
<thead>
<tr>
<td>
ID
</td>
<td>
Description
</td>
<td>
Deleted
</td>
</tr>
</thead>
</table>
Now if i bind it directly then it shows checkbox but if i bind it using json for that i have to serialize the the list of client and when adding data to client i have to convert it to boolean. so it's showing true false under delete column where as i want checkbox
Riya-Pandey
28-Oct-15 2:43am
View
i am retrieving the value as boolean. in this case table is showing true / false. but i want to show checkbox [checked / uncecked] which is only possible in case of it value.
Riya-Pandey
28-Oct-15 2:26am
View
i did. Problem was with the headder. dataTable was expecting <thead> where as gridview has TH
Riya-Pandey
27-Oct-15 9:18am
View
not working. problem with syntax somewhere i think
Riya-Pandey
27-Oct-15 8:57am
View
ok. I didn't add that but it's not working even after adding the reference.
Riya-Pandey
27-Oct-15 7:58am
View
Yes. Gridview Id is correct. And yes, it's rendering all the elements correctly.
Riya-Pandey
23-Sep-15 8:10am
View
I am inserting this data into a datatable.
Riya-Pandey
22-Sep-15 14:42pm
View
Yeah it really is a difficult concept. God!!!, what will happen when i try to understand multi threading. really scary stuff.
You suggested using a background Worker Process. like main method?
Riya-Pandey
22-Sep-15 14:33pm
View
The order here is still unexpected. well from the solutions posted i get that we can't know the order in which windows will execute a thread.
Riya-Pandey
22-Sep-15 14:27pm
View
So basically what you are saying is that we can't have a sequence in which the thread will run ??
what if i have a situation where i need thread1 to be executed before thread2 ? how will i handle that case ?
Riya-Pandey
18-Sep-15 3:40am
View
Don't remember the article or the author name...
Riya-Pandey
17-Sep-15 2:41am
View
Thanks for being so brief. But i already knew the purpose of the transaction. Actually My procedure is some 1000 lines of code so couldn't paste it here. I read in an article in code project yesterday that we should only use transaction when required i mean when inserting , updating data Using Procedure, Rest of the things should be outside the transaction. for instance say if i am calculating some value that should be outside transaction . once i have the value use open transaction do your work and immediately close it. i can always put the set value part from the example in the question inside tran and then there will be no problem coz tran will rollback. Just wanted to know is it the right practice or i should follow what i read in the article. if later then how will i know where the error occured ??
Riya-Pandey
17-Sep-15 1:42am
View
Yup. It seems so. i found another way. Thanks for the advice :)
Riya-Pandey
16-Sep-15 6:51am
View
Yes. There is one more problem that if lets say there are 10 rows in datatable
and i have 2,3,4,6,9 in the list.
Now if i start removing data according to index when the counter reaches 9
there will be only 6 rows in the table because 2,3,4,6 have been removed , also wrong entries are getting removed because as soon as 2 is deleted index 3 becomes index 2 and index 4 becomes index 3 and 4 is getting removed which is index 3 now.
Riya-Pandey
16-Sep-15 5:18am
View
I don't have the Value for the the column of the row , just the index of the row.
so i can not use X.Field !!! :'(
Riya-Pandey
15-Sep-15 4:50am
View
I was talking about finding the no of ; in 63 columns.
Ok i will do so. thanks :)
Riya-Pandey
15-Sep-15 3:59am
View
Hmm but not repeating it for 63 columns is going to be a big issue.
Anyways i have done it using a simpler method.
Thanks for your Support :)
Riya-Pandey
14-Sep-15 23:50pm
View
it's working perfectly if i have only 1 ; inside ".
but in my case no of ; are not fixed inside "
SO when i increased the no of ;
the result is
France,Japan,Russia,China,"India,New-Delhi;Dwarka","NewZeland;Wellington",England
France,Japan,Russia,China,"India,New-Delhi;Dwarka","NewZeland;Wellington",England
France
Japan
Russia
China
"India
New-Delhi;Dwarka"
"NewZeland;Wellington"
England
Riya-Pandey
14-Sep-15 15:35pm
View
BDW this new update code is not working. it's doing the function as splitting with ; would do.
Riya-Pandey
14-Sep-15 15:29pm
View
yeah i can, but in this case i am getting csv from the client. they are sending csv and then we have to consume it to synchronize our database..
Thanks for being so patient and continuously replying to my queries. :)
Riya-Pandey
14-Sep-15 14:07pm
View
but no of ; will differ for each row for each column. And there are 63 columns in the table from which csv file is generating
Also here Replace function is giving too any character literals ... :'(
Riya-Pandey
14-Sep-15 13:41pm
View
Replace function is giving Error- too many character literal.
Also looking at the function i think it is designed for 1 ; inside "" whereas there can be any no of ; inside "". Sorry my mistake , i should have to be more clear while asking the question.
Riya-Pandey
14-Sep-15 13:37pm
View
Thanks Rohan . It works. but i have a problem that here values positions get changed and i can't have that because i have to enter data from csv file into database. Table has 63 columns and i there can be multiple value for any of the column [I mean string with multiple ;]. SO i need these values be in order.. :'(
Riya-Pandey
14-Sep-15 9:32am
View
Nop it's returning the same result. Not Working.
Riya-Pandey
14-Sep-15 9:27am
View
Any suggestions as to how to do it ??? :)
Riya-Pandey
14-Sep-15 9:26am
View
for that i will have to find the "" first.
Riya-Pandey
14-Sep-15 9:23am
View
MyString.Split(';');
I am Getting the string from a CSV file
Riya-Pandey
25-Aug-15 6:00am
View
Thank you Mr OriginalGriff. i will work on this logic and will also try to see if it can be done some other way too. Thanks again for your help :)
Show More