15,881,248 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 Veeshal Mali (Top 36 by date)
Veeshal Mali
27-Aug-17 3:08am
View
eeeuuuuu..... it's working.....
Thanks a lot sir... its working... when I put "IMEX=1" in my connection string rather than "IMEX=2"...
Veeshal Mali
27-Aug-17 3:02am
View
han yes sir, when date like 7/7/2017 or 11/8/2017 or 12/8/2017 in excel it will pickup and show in grid view but when when date exceed the date more than 12 like 13/08/2017 or 18/08/2017 it will not pick up and show in gridview
Veeshal Mali
26-Aug-17 9:22am
View
PODate and DeliverySchedule these fields are not showing and the values are like this "18/08/2016" in which the date has more than 12.
Veeshal Mali
1-Dec-16 1:08am
View
Following is the table structure Image sir...
click For image
Veeshal Mali
30-Nov-16 2:38am
View
I analyze and replace this join with other joins. But the output is same sir...
Veeshal Mali
21-Jun-16 8:11am
View
I want to add this result into dataset that's why ....
Veeshal Mali
28-May-16 12:03pm
View
please let me know for gridview GridView1_RowDataBound() event handler sir.
Veeshal Mali
11-Mar-16 7:56am
View
thank you sir....
Its working....
Veeshal Mali
11-Mar-16 7:47am
View
thank you sir....
But It's showing an error
Cannot Implicitly convert System.Data.Linq.IQueryable<tbl_productTbl> to System.Data.Linq.Table<tbl_productTbl>
I cast it like this
(System.Data.Linq.Table<tbl_ProductTbl>)
then it rises exception
Unable to cast object of type 'System.Data.Linq.DataQuery`1[tbl_ProductTbl]' to type 'System.Data.Linq.Table`1[tbl_ProductTbl]'.
then How to cast it Sir ?
Veeshal Mali
7-Mar-16 4:07am
View
Thank you sir...
tbl_ProductTransferDetail ptd;
int ptdid = getNextTrandferDetails();
foreach (GridViewRow r in gvProductList.Rows)
{
ptd = new tbl_ProductTransferDetail();
ptd.PTDID = ptdid;
ptd.PTID = Convert.ToInt32(txtRpID.Text);
ptd.PID = Convert.ToInt32(r.Cells[3].Text);
ptd.Qty = Convert.ToInt32(r.Cells[7].Text);
db.tbl_ProductTransferDetails.InsertOnSubmit(ptd);
ptdid++;
}
Actually above is problem i want to insert multiple records which are in the grid view so how I can use this solution sir ?
Veeshal Mali
25-Jan-16 13:26pm
View
yes sir, I have understand. I found the solution to put option (maxrecursion 0).
But I cant understand where I have to put option (maxrecursion 0). So please let me know how to fix it.
Veeshal Mali
4-Nov-15 23:55pm
View
thank you sir its working...
But one twist here... my both tables are also in div tag. So its vanishing my tables also. I want just remove the div and content after the table div.
code is here
<div>
<table><tr><td></td><td>2015-10-30 21:00:43 GMT</td></tr></table><table><tr><td>Symbol</td><td>Last</td><td>5 Minutes</td><td>15 Minutes</td><td>Hourly</td><td>Daily</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">EUR/USD</td><td><span class="ftqa11bbb" style="color:#d80100;">1.1004</td><td>Buy</td><td>Neutral</td><td>Strong Sell</td><td>Strong Sell</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">GBP/USD</td><td><span class="ftqa11bbb" style="color:#05a007;">1.5427</td><td>Strong Buy</td><td>Neutral</td><td>Strong Buy</td><td>Buy</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">USD/JPY</td><td><span class="ftqa11bbb" style="color:#d80100;">120.62</td><td>Strong Sell</td><td>Strong Sell</td><td>Sell</td><td>Neutral</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">USD/CHF</td><td><span class="ftqa11bbb" style="color:#05a007;">0.9880</td><td>Neutral</td><td>Neutral</td><td>Neutral</td><td>Strong Buy</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">AUD/USD</td><td><span class="ftqa11bbb" style="color:#757575;">0.7136</td><td>Strong Buy</td><td>Strong Buy</td><td>Strong Buy</td><td>Strong Sell</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">EUR/GBP</td><td><span class="ftqa11bbb" style="color:#d80100;">0.7136</td><td>Strong Buy</td><td>Neutral</td><td>Strong Sell</td><td>Strong Sell</td></tr></tbody></table>
</div>
<div>Fusion Media/Investing.com will not accept any liability for loss or damage as a result of reliance on the information contained within this tool including data, quotes, charts and buy/sell signals. Please be fully informed regarding the risks and costs associated with trading the financial markets, it is one of the riskiest investment forms possible. Currency trading on margin involves high risk, and is not suitable for all investors. Before deciding to trade foreign exchange or any other financial instrument you should carefully consider your investment objectives, level of experience, and risk appetite.</div>
Like this..
Veeshal Mali
4-Nov-15 22:43pm
View
Hello Pankaj sir.... This is the url where i put new question.
http://www.codeproject.com/Answers/1045446/How-to-remove-some-tags-or-strings-from-Main-strin#answer1
Veeshal Mali
31-Oct-15 8:04am
View
I replace some string with Regex
eg. string a= Regex.Replace(str,"string1","string2");
and using this I want to remove the string.
Veeshal Mali
31-Oct-15 7:58am
View
i have one string variable in which I have collected above string from iframe. Now I want to remove the <div>blah blah blah blah....</div> from this string in c#. And Keep only the string with that two table tags and whatever data in table tags.
Veeshal Mali
31-Oct-15 7:57am
View
Can you give the solution with Regex please rather than XML ?
Veeshal Mali
31-Oct-15 7:54am
View
i have one string variable in which I have collected above string from iframe. Now I want to remove the <div>blah blah blah blah....</div> from this string in c#. And Keep only the string with that two table tags and whatever data in table tags.
Veeshal Mali
31-Oct-15 7:52am
View
i have one string variable in which I have collected above string from iframe. Now I want to remove the <div>blah blah blah blah....</div> from this string in c#. And Keep only the string with that two table tags and whatever data in table tags.
Veeshal Mali
31-Oct-15 7:49am
View
hey... Sir...
no one is perfect in this world. Sometimes anybody can rise a stupid questions. Please don't insult anybody. If you know the answer then help me otherwise leave it.
This is the helpers forum so anybody can as a questions which they suffer. why you are insulting like this.
I know you are expert in technology but its not mean you can insult anybody.
Veeshal Mali
31-Oct-15 7:42am
View
hello pankaj sir.. I have put the new question for this ... Please let me know the answer...
Veeshal Mali
31-Oct-15 7:41am
View
Deleted
hello pankakumar sir.. I have put the new question for this ... Please let me know the answer...
Veeshal Mali
31-Oct-15 5:42am
View
<table><tr><td></td><td>2015-10-30 21:00:43 GMT</td></tr></table></div><table><tr><td>Symbol</td><td>Last</td><td>5 Minutes</td><td>15 Minutes</td><td>Hourly</td><td>Daily</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">EUR/USD</td><td><span class="ftqa11bbb" style="color:#d80100;">1.1004</td><td>Buy</td><td>Neutral</td><td>Strong Sell</td><td>Strong Sell</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">GBP/USD</td><td><span class="ftqa11bbb" style="color:#05a007;">1.5427</td><td>Strong Buy</td><td>Neutral</td><td>Strong Buy</td><td>Buy</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">USD/JPY</td><td><span class="ftqa11bbb" style="color:#d80100;">120.62</td><td>Strong Sell</td><td>Strong Sell</td><td>Sell</td><td>Neutral</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">USD/CHF</td><td><span class="ftqa11bbb" style="color:#05a007;">0.9880</td><td>Neutral</td><td>Neutral</td><td>Neutral</td><td>Strong Buy</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">AUD/USD</td><td><span class="ftqa11bbb" style="color:#757575;">0.7136</td><td>Strong Buy</td><td>Strong Buy</td><td>Strong Buy</td><td>Strong Sell</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">EUR/GBP</td><td><span class="ftqa11bbb" style="color:#d80100;">0.7136</td><td>Strong Buy</td><td>Neutral</td><td>Strong Sell</td><td>Strong Sell</td></tr></tbody></table>
<div>Fusion Media/Investing.com will not accept any liability for loss or damage as a result of reliance on the information contained within this tool including data, quotes, charts and buy/sell signals. Please be fully informed regarding the risks and costs associated with trading the financial markets, it is one of the riskiest investment forms possible. Currency trading on margin involves high risk, and is not suitable for all investors. Before deciding to trade foreign exchange or any other financial instrument you should carefully consider your investment objectives, level of experience, and risk appetite.</div>
After second there is a one div with some content. Now I want to remove this whole siv with content too. only keep this both tables.
Veeshal Mali
31-Oct-15 4:39am
View
Sir Have a one more query...
Please give me a solution...
After Second table i have one div in which there is one paragraph... I want to remove this whole division after this table...
Veeshal Mali
31-Oct-15 4:38am
View
thank you sir...
its working....
Veeshal Mali
31-Oct-15 3:16am
View
sir this the string in which I want to replace the second table <table> with <table id="myDataTable">
Veeshal Mali
31-Oct-15 3:15am
View
<table><tr><td></td><td>2015-10-30 21:00:43 GMT</td></tr></table></div><table><tr><td>Symbol</td><td>Last</td><td>5 Minutes</td><td>15 Minutes</td><td>Hourly</td><td>Daily</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">EUR/USD</td><td><span class="ftqa11bbb" style="color:#d80100;">1.1004</td><td>
Buy
</td><td>
Neutral
</td><td>
Strong Sell
</td><td>
Strong Sell
</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">GBP/USD</td><td><span class="ftqa11bbb" style="color:#05a007;">1.5427</td><td>
Strong Buy
</td><td>
Neutral
</td><td>
Strong Buy
</td><td>
Buy
</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">USD/JPY</td><td><span class="ftqa11bbb" style="color:#d80100;">120.62</td><td>
Strong Sell
</td><td>
Strong Sell
</td><td>
Sell
</td><td>
Neutral
</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">USD/CHF</td><td><span class="ftqa11bbb" style="color:#05a007;">0.9880</td><td>
Neutral
</td><td>
Neutral
</td><td>
Neutral
</td><td>
Strong Buy
</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">AUD/USD</td><td><span class="ftqa11bbb" style="color:#757575;">0.7136</td><td>
Strong Buy
</td><td>
Strong Buy
</td><td>
Strong Buy
</td><td>
Strong Sell
</td></tr><tr><td><span class="ftqa11bb" style="color:#0059B0;">EUR/GBP</td><td><span class="ftqa11bbb" style="color:#d80100;">0.7136</td><td>
Strong Buy
</td><td>
Neutral
</td><td>
Strong Sell
</td><td>
Strong Sell
</td></tr></tbody></table>
Veeshal Mali
31-Oct-15 3:05am
View
No pankaj sir... Your solution doesn't solve my problem... Please give me best solution sir....
Veeshal Mali
31-Oct-15 2:47am
View
No not yet....
its not replacing any string belongs to my string.
Veeshal Mali
20-Sep-15 5:56am
View
namespace MessageControl
{
[DefaultProperty("MessageText")]
[ToolboxData("<{0}:MessageControl runat="server">")]
public class MessageControl : CompositeControl
{
public static string Error = "Error";
public static string Warning = "Warning";
public static string Success = "Success";
public static string Info = "Info";
public static List<string> messagetypeOptions = new List<string> { "Error","Success","Info","Warning"};
Literal ltrMessage = new Literal();
[Bindable(true)]
[Category("Appearance")]
[DefaultValue("Custom MessageControl")]
[Localizable(true)]
public string MessageText
{
get
{
EnsureChildControls();
return ltrMessage.Text != null ? ltrMessage.Text: string.Empty;
}
set
{
ltrMessage.Text = value;
}
}
public enum Options
{
Error,
Success,
Info,
Warning
}
public virtual Options MessageType
{
get;
set;
}
protected override void CreateChildControls()
{
Controls.Clear();
ltrMessage.ID = "ltrMessageText";
this.Controls.Add(ltrMessage);
base.CreateChildControls();
}
protected override void OnPreRender(EventArgs e)
{
Page.ClientScript.RegisterClientScriptInclude("MessageControl", Page.ClientScript.GetWebResourceUrl(this.GetType(), "MessageControl.css.MessageControlCss.css"));
HtmlGenericControl cssLink = new HtmlGenericControl("link");
cssLink.ID = "MessageControlCssFile";
cssLink.Attributes.Add("href",Page.ClientScript.GetWebResourceUrl(GetType(),"MessageControl.css.MessageControlCss.css"));
cssLink.Attributes.Add("type","text/css");
cssLink.Attributes.Add("rel","StyleSheet");
Page.Header.Controls.Add(cssLink);
base.OnPreRender(e);
}
protected override void Render(HtmlTextWriter writer)
{
try
{
string type= MessageType.ToString().ToLower();
switch(type)
{
case "error":
writer.AddAttribute(HtmlTextWriterAttribute.Class, "error");
break;
case "info":
writer.AddAttribute(HtmlTextWriterAttribute.Class, "info");
break;
case "success":
writer.AddAttribute(HtmlTextWriterAttribute.Class, "success");
break;
case "warning":
writer.AddAttribute(HtmlTextWriterAttribute.Class, "warning");
break;
default:
writer.AddStyleAttribute(HtmlTextWriterStyle.BackgroundColor, "#FFF");
writer.AddStyleAttribute(HtmlTextWriterStyle.BorderColor, "#000");
break;
}
writer.RenderBeginTag(HtmlTextWriterTag.Div);
ltrMessage.RenderControl(writer);
writer.RenderEndTag();
}
catch (Exception ex)
{
}
}
}
}
Sir I am creating a custom server control for message. In this server control i have created one property MessageType and have created enum for the list of values for this property.
But I want list of strings for this property which i will select from dropdown when I use this control. or I can assign the value for this property code behinde(c#).
But by using enum I cant assign string value as MessageType="Error" or MessageType="Success" in cod
Veeshal Mali
27-Aug-15 1:23am
View
More than one Buttons Click...
Veeshal Mali
27-Aug-15 1:13am
View
Deleted
More than one Buttons Click...
Veeshal Mali
24-Jul-15 3:43am
View
Calender is object of Calendar class...
Veeshal Mali
24-Jul-15 1:33am
View
I have create a custom calendar control with the help of web child controls(Text Box, Image Button and Calendar). And I have added the CSS file in this project as per your solution.
Now I want to apply some class belongs to this CSS file to my child controls(Text Box and ImageButton) in server control.
So How Can I apply ?
Code is Here
public class FirstCustomControl : CompositeControl
{
TextBox txtbox;
ImageButton imgbtn;
Calendar calender;
protected override void CreateChildControls()
{
Controls.Clear();
txtbox = new TextBox();
txtbox.ID = "txtCalender";
txtbox.Width = Unit.Pixel(150);
imgbtn = new ImageButton();
imgbtn.ID = "Imgbtn";
calender = new Calendar();
calender.ID = "Calender";
this.Controls.Add(txtbox);
this.Controls.Add(imgbtn);
this.Controls.Add(calender);
}
protected override void OnPreRender(EventArgs e)
{
Page.ClientScript.RegisterClientScriptInclude("animation",Page.ClientScript.GetWebResourceUrl(this.GetType(),"FirstCustomControl.css.animate.css"));
Page.ClientScript.RegisterClientScriptInclude("MLM", Page.ClientScript.GetWebResourceUrl(this.GetType(), "FirstCustomControl.css.VishalMLMStyle.css"));
}
protected override void AddAttributesToRender(HtmlTextWriter writer)
{
writer.AddStyleAttribute("Color", "red");
}
protected override void Render(HtmlTextWriter writer)
{
txtbox.RenderControl(writer);
imgbtn.RenderControl(writer);
calender.RenderControl(writer);
}
}
Veeshal Mali
24-Jul-15 1:10am
View
Sir please may i ask one another question related to this question ?
Veeshal Mali
24-Jul-15 1:05am
View
thank you sir...
This is what I had asked ...
Veeshal Mali
24-Jul-15 0:53am
View
I know how to apply css for server controls.
I want to include CSS file in Server Control. Which we can create by choosing the project type as ASP.NET Server Control and we will create the dll file of this project and add it in tool box and use for any application.
Show More