Click here to Skip to main content
15,300,432 members

Comments by partha143 (Top 84 by date)

partha143 25-Oct-19 2:25am View
   
Richard : Thank you for your suggestion. Can you kindly provide some more information on CefSharp on scrolling HTML Element. I googled but was unable to find any relevant info on that. Thank you.
partha143 4-Sep-17 8:24am View
   
Sorry, I forgot to mention. I want to achieve this without Pre-Build event.
partha143 24-Nov-16 0:08am View
   
Deleted
<login>
<user name="user" pwd="G,?????H
L`*?">
partha143 7-Nov-16 9:17am View
   
John, I have done that. I'm sorry I missed out while posting the question.
partha143 24-Oct-16 0:42am View
   
I want this logic to be implemented in Device Description Language which does not poses implementation of pointers. Can't we implement it avoiding pointers?
partha143 24-Oct-16 0:40am View
   
Suvendu, I want to convert float to Byte in Device Description language which is a very simple language and does not poses any inbuilt method to do so. So, my approach was to built this logic first in C# and then try to convert it to Device Description language.
partha143 17-Aug-16 10:59am View
   
Thank you ppolymorphe. Based on the above comments which others have said it is not possible, how does the hibernate mode work on windows? It totally shut downs your keyboard mouse hard disk and almost most of the component unless the power button is hit again. I don't know what exactly does hibernate mode does, I mean does it really shut downs the power to those component from motherboard or it might tell those component to go sleep. In that case why does OS is not preventing it from doing it?
partha143 17-Aug-16 10:30am View
   
Thank you for all the comments sir :)
partha143 17-Aug-16 10:28am View
   
How about with firmware/embedded programming??
partha143 17-Aug-16 9:23am View
   
Apart from c#, can this be achieved by firmware programming? if not any other option?
partha143 17-Aug-16 9:22am View
   
Sorry for asking this silly question. More over I just got this idea to play around with my friends if at all I could implement it in c# :). Thanks for your reply. So what do you suggest me apart from c# where I can achieve this :).
partha143 25-Jul-16 10:12am View
   
My Model :
<pre lang="c#">
public class Cricket : INotifyPropertyChanged
{
private string batsmen;
private int scorecore;

public string Batsmen
{
get { return batsmen; }
set
{
batsmen = value;
OnPropertyChanged("Batsmen");
}
}

public int Scorecore
{
get { return scorecore; }
set
{
scorecore = value;
OnPropertyChanged("Scorecore");
}
}
}
</pre>

my View Model :
<pre lang="c#">
Cricket cricket = new Cricket();
MyList.Add(cricket);

ObservableCollection<object> myList;
public ObservableCollection<object> MyList
{
get { return myList; }
set
{
myList = value;
OnPropertyChanged("MyList");
}
}
</pre>
partha143 12-Jun-16 4:38am View
   
Worked! Thanks a lot :)
partha143 10-Jun-16 2:42am View
   
Karthik, thanks a ton for helping me out. :) It really worked.
partha143 9-Jun-16 0:36am View
   
Apologies for the delay Karthik. My project follows client server architecture. I will be getting the XML from the server based on the function which I call. There are 5 different XML scheme which server sends which needed to be displayed in the client. Creating data structure for each scheme and de-serializing those XML and applying appropriate scheme would be lot of work. Hence, I came with an idea to bind the data directly to the datagrid from XML. The solution which you have provided is what I have already tried. Only problem with that solution is static DataGridTextColumn which I don't want as I the scheme of XML is decided at the run-time. Any help would be appreciated.
partha143 8-Jun-16 6:16am View
   
Sry karthik. I missed out one info i.e I don't want to create static datagridtextcolumn.
partha143 8-Jun-16 5:28am View
   
Yes Karthik. I want RadioButton column to display 1st followed by Title, Artist and Releasedate.
partha143 8-Jun-16 4:25am View
   
I have added the xml in edit part of the question. Kindly have a look at it.
partha143 8-Jun-16 2:53am View
   
Thanks George. Worked fine :)
partha143 7-Jun-16 6:13am View
   
Priority is to use XElement. But it would be grateful if you could give me some idea on both the approach.
partha143 20-Jun-15 1:04am View
   
Sinisa, could you please share any of the example code for the 1st solution you have provided in above comment (dataset can contain multiple tables so you could pass it into report and use one part in group header, another in page header and yet third in details.). I guess this solution will solve my problem. Thank you
partha143 19-Jun-15 11:46am View
   
Nav, I am facing another problem with Crystal Report. I request you to have a look at it. Below is the link :
http://www.codeproject.com/Questions/1001924/Inserting-DataGrid-to-a-particular-section-in-crys
partha143 19-Jun-15 11:44am View
   
Thanks Nav :)
partha143 19-Jun-15 11:43am View
   
Sinisa, thank you for your reply. I have already successfully implemented what you have suggested. My question is how can I pass a all contents of datatable/dataset/datagrid to a particular section in Crystal Report? I want to achieve this as I am developing marks card for my college where I am passing subjectcode,test1,test2 and sum to my report with either datatable/dataset/datagrid and I am passing respective Name and USN individually to the same report.
partha143 6-Jun-15 6:28am View
   
Thank you sir. :)
partha143 6-Jun-15 5:50am View
   
Edited in main question. Have a look at EDIT part. My main question was this :
http://www.codeproject.com/Questions/998289/Adding-columns-to-DataSet?arn=0. As I dint received any suggestions on that, I figured out the solution as to use 2 data tables. I kindly request you to have a look at my main question and suggest me if my current solution is good/bad. Thank you.
partha143 6-Jun-15 5:28am View
   
I am sorry Sir. I thought attaching an image would give you better understanding about my problem. The o/p which I am getting is :
<pre lang="HTML">
USN |Name |FName |CC |CTitle
4PS12MCA28 Partha Krishnappa
P11MCA41 JAVA
</pre>
I dono exactly where I am going wrong. Thank you.
partha143 6-Jun-15 3:39am View
   
How to merge two dataset?? I want the same numbers of rows of dataset1 = number of rows in dataset2.
partha143 5-Jun-15 4:53am View
   
Thank you Sir. I have now solved my problem.
partha143 5-Jun-15 4:52am View
   
Thank you Sir. As you suggested I used DATE datatype and I solved my problem by converting month number to month name. I just needed another information on saving date for fields such as Academic Year which value will be like "2013-14". Thank you.
partha143 5-Jun-15 3:40am View
   
:)
partha143 5-Jun-15 3:35am View
   
Thanks Sharmarun
partha143 5-Jun-15 3:34am View
   
Andy, I figured it out. I did it through GUI. Thank you.
partha143 2-Jun-15 5:26am View
   
Thanks a lot Andy :). I am posting my new question now.
partha143 2-Jun-15 5:09am View
   
Andy, Thanks a lot for your comments. I have resolved my issue. I just changed the connection string from my appconfig file to this :
add name="MyConnection" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=D:\USERS\DOCUMENTS\VISUAL STUDIO 2010\PROJECTS\DATABASEPROJECT\DATABASEPROJECT\DATABASE.MDF;Integrated Security=True;User Instance=True" providername="System.Data.SqlClient">
partha143 2-Jun-15 0:08am View
   
Andy, I tried SqlTransaction as you suggested me in your last replt, but I was unable to resolve my issue yet. I have posted the code below. Please have a look at it. Thank you.
try
{
SqlTransaction transaction;
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["TRY"].ConnectionString);
con.Open();
transaction = con.BeginTransaction();
SqlCommand query = new SqlCommand("insert into Student_Data values(@param1,@param2,@param3)", con);
query.Transaction = transaction;
query.Parameters.Add("@param1", SqlDbType.VarChar).Value = textBox1.Text;
query.Parameters.Add("@param2", SqlDbType.VarChar).Value = textBox2.Text;
query.Parameters.Add("@param3", SqlDbType.VarChar).Value = textBox3.Text;
query.ExecuteNonQuery();
transaction.Commit();
MessageBox.Show("Data Added Succesfully");
con.Close();
}
catch (Exception ec)
{
MessageBox.Show(ec.Message);
}
<connectionstrings>
<add name="TRY" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providername="System.Data.SqlClient">
partha143 21-May-15 14:46pm View
   
Okay. Thank you for your help :)
partha143 21-May-15 14:20pm View
   
Sorry sir. I havent heard of it. Could you please provide me any link from which i can learn about it
partha143 21-May-15 14:08pm View
   
Still same problem. I am getting "Data Added Successfully" message and also when I click on view in the same instance of run(i.e without re-running the project), I am able to view the entries. But when i go to the datatable to view my entries manually, it is blank. Please help.
partha143 17-May-15 4:49am View
   
Thanks a lot Damith. But when I use the Show method, my popup actually closes and reopens again. Though it saves all the partial updates, but is there any way where I can avoid reopening of popup.
partha143 17-May-15 3:57am View
   
I have explained my problem in my main question. By the way I have solved my problem. I have posted my answer below. It can help someone like me.
partha143 16-May-15 3:24am View
   
I have done this already. But this hides the panel when I run my startup page but it does not trigger when the specified button is clicked.
partha143 12-May-15 23:13pm View
   
Thanks for your reply sir. The above solution hides all the panels and they wont popup when the desired button is clicked. Any suggestions?
partha143 1-May-15 11:23am View
   
That's what I exactly needed Tadit. Thanks a ton :)
partha143 1-May-15 11:01am View
   
I am a newbie. Could you please let me know where I am going wrong. Thank you.
partha143 1-May-15 10:59am View
   
https://jsfiddle.net/wg2gspLb/
partha143 1-May-15 10:40am View
   
I removed all the styles other then Hover(which I need to display block when user navigates mouse cursor) but still no luck. Please help
partha143 1-May-15 6:57am View
   
So what is the solution for the dropdown menu problem which I am facing?
partha143 26-Apr-15 10:06am View
   
Based on the USN entered by the students
partha143 26-Apr-15 10:06am View
   
I am developing a result sheet for my college, where student is asked to enter their reg num(USN) and it has to pull out the result for that reg num. So I am fetching USN,Name and Father Name into one datatable and CC,Sem and Marks into second datatable and joining those data as I have stated in my main question and lastly displaying the content of the final data in a gridview.
partha143 26-Apr-15 8:50am View
   
I tried merging the two datatables which result was as follows:
USN |Name |Father Name |CC |Sem |Marks
001 abc ABC
001 abc ABC
Sub01 3 78
Sub02 3 56
But the result which I am looking for is stated in my main question. Please help.
partha143 23-Mar-15 1:29am View
   
Arkadeep I am really very grateful to find a helping guy like you. As you suggested, I have mailed you. Please check and bail me out of this problem asap. Thank you.
partha143 22-Mar-15 23:11pm View
   
Thank you very much sir. :)
partha143 22-Mar-15 15:18pm View
   
Thanks a lot for the help Arkadeep. But I am too dumb to figure it out as I am new to this. I have attached a screen shot of my output. The USN field gets automatically shrink and extends depending on the data which I am populating from db. But with the name field it is not happening the same and I am not able to align the subject properly under 6 colspan of GridView. Can you please let me know how to fix the 1st column in the gridview to the 1st field in the table and so on for the name and when it comes to subject it has to fix the 6 column for one subject and it has to shrink and extend based on the data I am populating from db.
Link of the op : "https://plus.google.com/photos/105587850868503389652/albums/6128012171568696417/6129140916723270978"
partha143 21-Mar-15 14:08pm View
   
Arkadeep I dont know why is it denying from viewing my comment and I was not able to find your request. I will post the above message as the comment. You just have a look at it below. Thank you.
partha143 21-Mar-15 14:06pm View
   
Arkadeep, I know I am bothering you a lot, but I followed your suggestion and I could only come out with this :
<pre>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns = "false" CssClass = "gvAltRow td"
Width="609px">
<HeaderStyle BackColor="#df5015" Font-Bold="true" ForeColor="White" />

<asp:BoundField HeaderText="Usn" ReadOnly = "true"/>
<asp:BoundField HeaderText="Name" ReadOnly = "true"/>
<asp:TemplateField>
<HeaderTemplate>
<th colspan = "4" rowspan = "1"> Caption </th>
<tr>
<th> 1st </th>
<th> 2nd </th>
<th> 3rd </th>
<th> 4th </th>
<th> 5th </th>
<th> 6th </th>
</tr>
</HeaderTemplate>



</pre>
Image Link : "https://plus.google.com/photos/105587850868503389652/albums/6128012171568696417/6128012185228995986".
I some how want the 1st and 2nd to start from 3 column and also the thin line after the 3rd column which extends till the header text to be removed. Please help me with this tiny problem. Thank you
partha143 19-Mar-15 14:18pm View
   
Arkadeep, I know I am bothering you a lot, but I followed your suggestion and I could only come out with this :
<pre>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns = "false"
Width="609px">
<HeaderStyle BackColor="#df5015" Font-Bold="true" ForeColor="White" />
<columns> <asp:BoundField HeaderText="Usn" ReadOnly = "true"/>
<asp:BoundField HeaderText="Name" ReadOnly = "true"/>
<asp:TemplateField>
<HeaderTemplate>
<th colspan = "4" rowspan = "1"> Caption </th>
<tr>
<th> 1st </th>
<th> 2nd </th>
<th> 3rd </th>
<th> 4th </th>
<th> 5th </th>
<th> 6th </th>
</tr>
</HeaderTemplate>



<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns = "false" CssClass = "gvAltRow td"
Width="609px">
<HeaderStyle BackColor="#df5015" Font-Bold="true" ForeColor="White" />
<columns> <asp:BoundField HeaderText="Usn" ReadOnly = "true"/>
<asp:BoundField HeaderText="Name" ReadOnly = "true"/>
<asp:TemplateField>
<HeaderTemplate>
<th colspan = "4" rowspan = "1"> Caption </th>
<tr>
<th> 1st </th>
<th> 2nd </th>
<th> 3rd </th>
<th> 4th </th>
<th> 5th </th>
<th> 6th </th>
</tr>
</HeaderTemplate>



</pre>
Image Link : "https://plus.google.com/photos/105587850868503389652/albums/6128012171568696417/6128012185228995986".
I some how want the 1st and 2nd to start from 3 column and also the thin line after the 3rd column which extends till the header text to be removed. Please help me with this tiny problem. Thank you
partha143 19-Mar-15 11:03am View
   
Thanks for your reply Arkadeep. I got it. Even I have those 6 fields fixed as subject in your case. Can you please tell me how to set the range of column in colspan? As you can see the image, 1st 2 column are for Name and USN. So I have to specify the range of column like from column 3 to col 7. How can I do that?
partha143 19-Mar-15 1:25am View
   
Thanks a lot for your solution Arkadeep. As you can see from the image, I have 5 columns(P11MCA51,...,P11MCA55) and each column has 6 fields under it. I really dont know how to achieve the design with gridview. Can you please provide me with some information with the design of gridview. Thank you.
partha143 18-Mar-15 10:52am View
   
No no I do not want to edit. But I want to develop an webpage, where I can populate respective subject marks data from database. I cannot use DataGridView as there are 6 field under one header field. Please help
partha143 17-Mar-15 7:07am View
   
I just figured out that my problem can be solved by using Table. Thank you for your time and help. :)
partha143 17-Mar-15 6:53am View
   
Deleted
Rajeesh, any idea how to solve the above mentioned problem?
partha143 17-Mar-15 6:53am View
   
Thank you. My problem is, I am generating report cards and I have a set of data which is similar to all the report cards. So what is best way to solve this as I don't want the data to be populated from database or to insert data in programmatic way as it reduces the execution time.
partha143 4-Mar-15 10:09am View
   
Anyone please help me.
partha143 4-Mar-15 0:49am View
   
Hello Szymon.
I replaced this
<pre>
htmlparser.Parse(sr);
</pre>
to this.
<pre>
var stringStream = new StreamReader(GenerateStreamFromString(sr.ToString()));
htmlparser.Parse(stringStream);
</pre>
The PDF file created and in the document this is what I got : System.IO.StringReader.
I am sorry but I am very much new to this and I know this is very silly. Please help
partha143 4-Mar-15 0:39am View
   
I am sorry for providing you insufficient information. I searched a lot, but I was unable to find any solution for this. It is my understanding that as I am using Item Template I need to make some changes in code (Please correct me if my understanding is wrong). Please reply back if you need more information. Thank you.
partha143 3-Mar-15 10:36am View
   
Thanks a lot Mika :)
partha143 1-Mar-15 10:03am View
   
I tried your solution peter, but I am still unable to avoid duplication.
partha143 1-Mar-15 9:50am View
   
I tried your code and I am still unable to avoid insertion of duplicate values.
partha143 1-Mar-15 9:16am View
   
Yes. They both have same table definations
partha143 24-Feb-15 2:50am View
   
Deleted
Sir, I don't want to set any edit button as the main job of staff is to enter the marks. Once staff has enter subjectcode, all the records based on the subjectcode has to pull out and staff has to directly enter marks for the roll number fetched.
Just like below
<pre lang="c#">name | rollnum | test1 | test2 | Quiz
ABC 001 Inputbox Inputbox Inputbox
BCD 002 Inputbox Inputbox Inputbox </pre>
Thank you.
partha143 29-Jan-15 9:25am View
   
A website working on intranet network. My main intention behind asking this question is, which templates should I choose so that I can run my application on intranet network.
partha143 29-Jan-15 9:21am View
   
How can I do it? Can you reefer me to any links?
partha143 29-Jan-15 8:51am View
   
Thank you. The links which you provided helped me to make my choice :)
partha143 29-Jan-15 8:50am View
   
Thank You sir :)
partha143 29-Jan-15 2:52am View
   
What I am trying to tell is, I have developed the web-form on a local machine and it is running good. Now my question is that is there any way from which I can convert my local machine to server and connect client using the IP address of the server and retrieve the web-form which I had developed.
Thank You.
partha143 29-Jan-15 2:37am View
   
I am sorry. I have developed a simple web-form which asks from details(name and roll_number) and which is stored in database. This works fine on my system. Now I have to enter the same details from other system using the IP address of the 1st system. How can I achieve this?
partha143 29-Jan-15 2:00am View
   
Thanks a lot sir. I had missed to set autopostback property from both the checkboxlist. Now my problem is solved. Thanks a lot.
partha143 27-Jan-15 7:03am View
   
Sir, firstly I would like to thank you for your speedy response. I am sorry as the issue I had written was not in a correct format which led you to misunderstand my issue. I will try my level best to make you understand. The 2 checkboxlist, one for Name and other for Roll_number. I am populating data for these checkboxlist from database and I have no problem doing that. So now there are 2 checkboxlists, so if I check the 1st name from the 1st checkboxlist(checkboxlistname) then the corresponding rollnumber from the 2nd checkboxlist(checkboxlistroll) has to check and vice-versa i.e. If I check the 1st name from 1st checkboxlist then the 1st roll_number has to be checked from the 2nd checkboxlist.
Thank You.
partha143 27-Jan-15 4:03am View
   
Sir, I have again stuck with checkboxlist. I am using 2 checkboxlist, 1 for names and 2nd for roll numbers. Is there any way from which I can select the roll number automatically when I check a name from 1st checkboxlist.
Thank You.
partha143 26-Jan-15 23:52pm View
   
Thanks a lot sir.
partha143 26-Jan-15 15:21pm View
   
protected void Page_Load(object sender, EventArgs e)
{String sqlcon = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True;";
SqlConnection con = new SqlConnection(sqlcon);
con.Open();
SqlCommand cmd = new SqlCommand(query, con);
int cnt = Convert.ToInt32(cmd.ExecuteScalar());
if (cnt > 1)
{
SqlCommand cmd1 = new SqlCommand(query1, con);
SqlDataReader dr = cmd1.ExecuteReader();
while (dr.Read())
{
string myItem = dr["Sub_Code"].ToString();

CheckBoxList1.Items.Add(myItem);
}
}
else
{
SqlCommand cmd2 = new SqlCommand(query2, con);
SqlDataReader dr = cmd2.ExecuteReader();
while (dr.Read())
{
string myItem = dr["Sub_Code"].ToString();

CheckBoxList1.Items.Add(myItem);
}
}
con.Close();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
foreach (ListItem li in CheckBoxList1.Items)
{
li.Selected = true;
}
}
I used LinkButton for SelectAll option. But as the LinkButton loads the page, The Page_Load event is executed again thereby producing the same data twice. So I need selectall option to work without loading the page.
Thank You.
partha143 25-Jul-14 16:15pm View
   
Sorry. I miss typed it. I want to select 1st row from all 5 tables and insert those 5 rows into newtab.
partha143 25-Jul-14 16:08pm View
   
Is there another way other then using union? My main intention was to reduce usage the sub query.
INSERT INTO newtab(Ques1, Ques2, Ques3, Ques4, Ques5) SELECT TOP(1)* FROM tab1 UNION SELECT TOP(1)* FROM tab2; This is what I did now. But Im thinkin if there any other way so that i can eliminate writing "SELECT TOP(1)* FROM tabn" for every tab?