15,903,385 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 yeshgowda (Top 33 by date)
yeshgowda
7-Nov-13 5:52am
View
hi pradipta,
i used the code as u suggested but give a "Microsoft JScript runtime error: Object expected" at $(currControl) line
here is my view
@model List<mvcapplication1.models.favouritegivenname>
<!DOCTYPE html>
<html>
<head>
<title>Index</title>
<script language="javascript">
function submitForm(currControl) {
$(currControl).closest('form').submit();
}
</script>
<style type="text/css">
.webGrid { margin: 4px; border-collapse: collapse; width: 300px; }
.header { background-color: #E8E8E8; font-weight: bold; color: #FFF; }
.webGrid th, .webGrid td { border: 1px solid #C0C0C0; padding: 5px; }
.alt { background-color: #E8E8E8; color: #000; }
.person { width: 200px; font-weight:bold;}
</style>
</head>
<body>
@using (Html.BeginForm("Assign","Home"))
{
var grid = new WebGrid(Model, canPage: true, rowsPerPage: 2);
grid.Pager(WebGridPagerModes.NextPrevious);
@grid.GetHtml(tableStyle: "webGrid",
htmlAttributes: new { id = "DataTable" },
headerStyle: "header",
alternatingRowStyle: "alt",
columns: grid.Columns(
grid.Column("Name"),
grid.Column(header: "Assign?", format: @<input class="check-box" id="assignChkBx" name="assignChkBx" type="checkbox" value="@item.Id" önclick="submitForm(this)"/>)
));
}
</body>
</html>
what mistake i done ?
yeshgowda
8-Oct-13 5:27am
View
Hi checked those links but none explained how to use packaged zip generated from visual studio 2010 in iis5.1.
Iam asking in visual studio .zip it creates under obj /debug is this is a physical path ?How to point this through IIS 5.1 as it doesnt support import application
yeshgowda
20-Jun-13 7:51am
View
no i got it !!!! Thanks u so much
yeshgowda
20-Jun-13 7:16am
View
ok then i need to check whether string contains null character
yeshgowda
20-Jun-13 4:36am
View
yes correct without typecasting also it works.but my question is i have to check a null byte in any of encoding formats? how to perform that
yeshgowda
8-Apr-13 5:27am
View
Yes actually iam trying out from morning how to do because as there is no method like addTriangle how to acheive this.as this was question asked in one interview place.as i couldn't able to answer this hence i was excited how to acheive this?
private void Form1_Load(object sender, EventArgs e)
{
System.Drawing.Drawing2D.GraphicsPath myGraphicsPath = new
System.Drawing.Drawing2D.GraphicsPath();
//myGraphicsPath.AddEllipse(new Rectangle(0, 0, 500, 700));
myGraphicsPath.AddLine(10,20,30,40);
//myGraphicsPath.AddEllipse(new Rectangle(75, 75, 20, 20));
//myGraphicsPath.AddEllipse(new Rectangle(120, 0, 125, 125));
//myGraphicsPath.AddEllipse(new Rectangle(145, 75, 20, 20));
//Change the button's background color so that it is easy
//to see.
textBox1.BackColor = Color.Chartreuse;
textBox1.Size = new System.Drawing.Size(256, 256);
textBox1.Region = new Region(myGraphicsPath);
}
yeshgowda
23-Sep-12 1:25am
View
During page load showing this panel and hiding when able controls are loaded are loaded and during button clicks again this panel is made visible and then hiding when specific action has been completed this works fine this scenarios works fine when we do repeatedly.but during pageload the panel back ground image is visible and hidden when table controls are loaded and then if waited for few minutes then click on buttun panel background image will only be invisible.label and img tag will be visible
panel background image is visible when there is continous action on page but panel background image is not visible when we doesnt do any action on that page for few minutes.that is the question why this behaviour only in mozilla? Is that it is taking time to load panel background image? iam hiding and showing panel from javascript panelId.style.visibility = value ? 'visible' : 'hidden'; and added panel control in masterpage
yeshgowda
22-Jun-12 0:24am
View
Good answer .My 5!
yeshgowda
19-May-12 1:56am
View
Thanks for ur sujjestion
yeshgowda
18-May-12 0:06am
View
It was just an assignment :) i searched in google how to sort based on attribute.I never got an answer. hence i asked the question
yeshgowda
18-May-12 0:04am
View
Thanks for ur answer :)
When i use Name and EmpId id in combobox based on selected item how to add object expr in exp.AddSort(" ".......);
yeshgowda
3-Apr-12 4:43am
View
No It is not readonly but this exception is occured randomly not always
yeshgowda
20-Dec-11 0:00am
View
Absolutely r8! My 5points
yeshgowda
8-Nov-11 7:43am
View
Deleted
I need to do it in aspx.cs page .document.getElementById cant be used?.If i use this in aspx.cs text is in red color(means it is not supported)
yeshgowda
8-Nov-11 5:35am
View
I have to pass Panel ID to .jss file through aspx.cs How to set panel ID using documnet.getElementByID()
In jss file iam setting style attribute
Sys.UI.DomElement.setLocation(element, point.x, point.y);
element.style.removeProperty('display');
element.style.visibility = value ? 'visible' : 'hidden';
This doesnot works if pass parameter panel.ClientID to javascript in aspx.cs page so how to send a parameter Panel ID using document.getelemetID
In aspx page if i pass parameter progressPanelId the style are set
var progressPanelId = document.getElementById('<%=_progressPanel.ClientID %>');
But i need to know in aspx.cs page how to send
yeshgowda
25-Oct-11 7:33am
View
Is there a way without setting br tag automatically it should wrap to next line using Html tags
yeshgowda
25-Oct-11 7:15am
View
Actually in IE6 Label is wrapping to next line but in non -IE browsers it is expanding.Wht to add the property to fix this
yeshgowda
25-Oct-11 5:59am
View
I have to follow the next line once label text has reached maximum screen width
yeshgowda
9-Sep-11 6:12am
View
I have tried this 2gets appended with the string.(i.e <stx> character) this should get appended with string how shall i do this?
yeshgowda
6-Sep-11 8:22am
View
Asking question ?
yeshgowda
1-Aug-11 3:28am
View
I am getting some 50 bytes in each foreach loop i need to add those bytes from each loop and i need to compare the length of bytes
yeshgowda
29-Jul-11 5:52am
View
Bitmap image has PixelFormat.Format24bppRgb,how can i change my bitmap image to PixelFormat.Format8bppIndexed?
yeshgowda
13-Apr-11 8:10am
View
iam not using anything i have opened task manager selected an application in processes tab and clicking performance tab there is a CPU Usage displayed in % and that is considered as CPU time?
yeshgowda
13-Apr-11 7:44am
View
CPU usage is displayed in % whether it is considered as CPU time?
yeshgowda
13-Apr-11 5:52am
View
Thank u for your valuable suggestion
yeshgowda
18-Mar-11 2:16am
View
i have used encoding.UTF8 but it doesn't work.i have used device and simulator using serial port.device will send 47 bytes but in simulator i have used serialport.BytesToRead to read bytes from device but in simulator it reads only 24 bytes based on tht it performs execution but at nxt time device will send next bytes .but in serialport.BytesToRead the remaining 23bytes+other bytes send will be received and performs operation but it is wrong.how can i do in serialport to read all 47 bytes at one slot and perform operation.and bytes are getting appended how can i clear in serialport.and other thing is bytes 47 is an example not always 47 bytes is received it will vary based on input .i should wait till all bytes received and perform operation how can i accompalish?? -this is through loop back cable.but when i does through virtual com port it is working fine.but i need to do through loopback cable
yeshgowda
18-Mar-11 1:14am
View
means iam expecting 47 bytes but it receives only 24 bytes in Serial port.BytesToRead.i have added baudrate =9600,databits=8,parity=none,stopbits=one, particular portname.or writing and reading is slow in serial port
yeshgowda
8-Mar-11 3:35am
View
Its ok Ryan Thanks for giving suggestion
yeshgowda
8-Mar-11 1:10am
View
ok.Thanks for suggestion .ok i will check out the problem it may be .net runtime exception
yeshgowda
7-Mar-11 23:51pm
View
Thanks for information.If possible can u explain with a sample code about handling of System.ExecutionEngine exception.
yeshgowda
7-Mar-11 8:03am
View
Deleted
Exception of type 'System.ExecutionEngineException' was thrown.
Here the method follows
public static void Add(IWin32Window owner)
{
initialised an object of windows form as form1
try
{
if (form1.ShowDialog(owner) == DialogResult.OK)Here Exception is thrown but not catched in catch block
{
logic goes here
}
}
catch (Exception e)
{
Debug.Assert(e.Message != null);
//log your exception
}
}
yeshgowda
7-Mar-11 8:00am
View
Exception is not caught in catch block.
yeshgowda
23-Feb-11 6:33am
View
ThanQ this code will work fine with minimum number of lines.
Show More