15,899,314 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 utm (Top 48 by date)
utm
1-Jun-15 1:19am
View
Thank very much sir,
I got ur point.
it will be very usefull for me.
thanks u sir.
utm
31-May-15 7:59am
View
thank u.
from above code .. that means whenever i create new model and add it MyViewModel the i will get all properties....am i correct sir?
can u give some code sample.. to access (or fill) item model properties,category model properties etc using MyViewModel.
utm
31-May-15 7:44am
View
yes,i am using mvc framework 4.5
i am very thankful if provide me some sample.
thank u.
utm
31-May-15 5:21am
View
Thank u for ur reply..
Now if no of table is big..then each time i have to create third model as per requirement. so it going to tuff work. how to make it simple?
if i keep all properties in one model then is it will be right approach?
right now i am not using entity framework.?but want keep same structure like entity frame work? please guide me..
utm
13-Mar-15 6:49am
View
THANKS ..IT SOLVE MY PROBLEM :)
utm
13-Mar-15 6:31am
View
yes.
utm
17-Dec-14 2:04am
View
ok thanks.. let me check
utm
17-Dec-14 1:48am
View
OPTIONS https://auspost.com.au/api/postage/parcel/domestic/weight.json jquery-2.0.3.min.js:6
XMLHttpRequest cannot load https://auspost.com.au/api/postage/parcel/domestic/weight.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:10427' is therefore not allowed access. The response had HTTP status code 500.
this error i got in console
utm
17-Dec-14 1:42am
View
error:function()
get execute and show alert message("network error");
but i want json result from the above api link and success alert message.
i think i am doing wrong some where in authentication.please help.
my plan is if i get success than i will append the json with the html.
utm
17-Dec-14 0:30am
View
$.ajax({
type: 'POST',
url: 'https://auspost.com.au/api/postage/country.json',
beforeSend: function (xhr) {
xhr.setRequestHeader("AUTH-KEY", "d1dc0329-5769-463b-af5f-84aea8d85218");
},
success: function () {
alert("success");
},
error: function () {
alert("Network error");
}
});
my above script is not working...it shows network error..please suggest
utm
16-Dec-14 10:46am
View
thanku very much..
utm
16-Jul-14 4:31am
View
above c# code work as mine..after upload it give me the server mac address
javascript code not working in my local machine...still trying
thanks for reply..
utm
16-Jul-14 3:32am
View
thanks for reply but not getting Answer..
utm
16-Jul-14 3:26am
View
for some security purpose..
i have requirement for attendence can be done from only single pc..
so that person can't give attendece from home..
utm
26-Apr-14 10:39am
View
thank you for reply.<br><br>
i have seen this link... i want same thing but on button click ...thats mean i want javascript function..and that fuction can be call on button click event...if i create javascript function it is felxible for me...i will use it on other event also..
utm
22-Apr-14 11:00am
View
yes i have...i add it as reference.
utm
22-Apr-14 10:44am
View
there no problem of binding the grid view...i have use all above code..but not working..
i have problem in itextsharp...somewhere HTMLWorker htmlparser = new HTMLWorker(pdfDoc);and
htmlparser.Parse(sr); but i am not getting it ... vs intellisense ask for stream reader in place of string reader ...in htmlparser.parse(?)..
thank u dear for reply..
utm
22-Apr-14 10:29am
View
sorry .. i get error
htmlparser.Parse(sr);//red line
same error as above...
utm
22-Apr-14 9:53am
View
sorry its not working..i got errors
1Error 83 The best overloaded method match for 'iTextSharp.text.html.simpleparser.HTMLWorker.Parse(System.IO.StreamReader)' has some invalid arguments
it is error of itextsharp but i can't get it..
2.Error 84 Argument 1: cannot convert from 'System.IO.StringReader' to 'System.IO.StreamReader'
utm
22-Apr-14 9:38am
View
plz its urgent ... provide solution.
thanks.
utm
1-Apr-14 13:51pm
View
thanks for reply..
utm
1-Apr-14 13:51pm
View
thanks for reply..
utm
30-Mar-14 15:41pm
View
Thank You..
utm
30-Mar-14 15:07pm
View
i rephrase it..if still u not understand my question please reply..
utm
30-Mar-14 14:48pm
View
if is it nowhere.. then why dataset called an disconnected architecture. and we are able update the dataset record in ado.net. how?
and there is feature of ado.net to searching ,sorting with help of dataview.
so, if it is store nowhere then how these things are posible?
we use dataadper.fill(dataset).
and we use this dataset according to our requirement.like.. to fill the gridview,repeter etc.
now my question is where the data stored in dataset. in server memory or client machine memory.
utm
11-Mar-14 10:37am
View
thanks..
i never heard about this..
i got new things to learn..
utm
11-Mar-14 10:25am
View
Deleted
modified query..
with cte(ParentId,id,Name)
as
(
SELECT pm.ParentId,pm.Id,pm.Name from dbo.Product_Master AS pm where pm.ParentId = 0
union all
select a.ParentId,a.Id,a.Name from Product_Master as a inner join cte as b on b.id=a.ParentId
)
select * from cte
i am not getting the proper result...
the output is..
0 1 Mobile
0 6 OS
0 16 Computers
6 7 MicroSoftWindows
6 8 Mac
7 9 Vista2007
1 2 Nokia
1 11 Samsung
11 12 Samsung galaxy
2 3 NokiaLumia
3 4 NokiaLumia525
3 14 NokiaLumia520
utm
11-Mar-14 7:52am
View
if i use datareader in place of datatable and dataadapter .. is it good idea?
utm
11-Mar-14 7:51am
View
if i use datareader in place of datatable and dataadapter .. is it good idea?
utm
7-Mar-14 1:38am
View
hello rohit ..is there any problem or my Question is not understandable.
if any problem plz tell..
utm
6-Mar-14 4:20am
View
no i am not using sqldataadapter .. i am asking for alternative way without datatable and sqldataadapter filling the List ..
my code is here..
SqlConnection connectToDb = new SqlConnection(mycon);
DataTable dt = new DataTable(); // not want to use
SqlCommand cmd = new SqlCommand(getsp, connectToDb);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter(cmd); //not want to use
da.Fill(dt); // not want to use
return dt; // not want to use
***********************************************************************
list<string> lst = new List<string>
SqlConnection connectToDb = new SqlConnection(mycon);
SqlCommand cmd = new SqlCommand(getsp, connectToDb);
cmd.CommandType = CommandType.StoredProcedure;
how to fill list with data?
return lst
hope this time u understand my requirement.
utm
5-Mar-14 23:46pm
View
thanks for reply..
i got your point and its good but some Question arises..
i don't want to use datatable. if i use datatable then why to use List write some extra code for fill List,it doesn't make sense and all work can be done by datatable then why List?
and
according to above code ... do i have to create class with properties whenever i have need different type of results return from databse?
utm
23-Feb-14 16:12pm
View
thanks for reply.
its working ..
protected void Btn_gen_Click(object sender, EventArgs e)
{
Label1.Text = htmlStr;
}
for that i have add lable control in my aspx page. and set html in label.text. its work no problem.
but is there any way to attach my htmlstr variable directly to the aspx page without using any type of server side control. i am asking it because i don't want add controls in my page its makes the page slow.
utm
23-Feb-14 1:23am
View
i can create htmlstr on button click but
how can i pass my htmlstr at runtime to the .aspx page on button click
protected void Btn_gen_Click(object sender, EventArgs e)
{
???? how ?
}
utm
22-Feb-14 15:26pm
View
sorry.. for late reply :(
utm
22-Feb-14 15:22pm
View
thanks for reply..
i have modified the code but still not works..
here is my code.
string filename = Server.MapPath("~/File/DocFile/) + strFilename;
byte[] file = File.ReadAllBytes(filename);
var myMemoryStream = new MemoryStream(file);
Response.ContentType = "Application/msword";
Response.AddHeader("Content-Disposition", "attachment;filename=" + filename);
Response.BinaryWrite(myMemoryStream.ToArray());
Response.Close();
Response.End();
please if possible give me solution with code.. Smile | :)
utm
22-Feb-14 2:16am
View
htmlStr = htmlStr + "<tr>";
for (cellCtr = 0; cellCtr <= cellCnt; cellCtr++)
{
htmlStr += "<td>" + cellvalue + "</td>";
cellvalue = cellvalue + 1;
}
htmlStr = htmlStr + "</tr>";
i have bind the html according to my need now i want to display this html in aspx page on button click event . i have try <%htmlstr%> in aspx page but it not working. plz help.
utm
17-Feb-14 15:36pm
View
sir,
i am newbie on this topic. and i give my situation also.
i don't know about 3tier architecture? and my ""real time advantage" means thats when i run project on 2tier project and project on 3tier project and that time i want to get difference between them..
utm
17-Feb-14 15:10pm
View
what simple question?
utm
17-Feb-14 15:08pm
View
Deleted
No comment
utm
17-Feb-14 14:58pm
View
no i am not mess up...but my problem is ..suppose i have to start new asp.net project then which architecture should i follow ? and why? project can be completed using 2 tier architecture the why should make it complex by using 3tier architecture?i need benefits of 3 tier architecture over 2 tier architecture. hope i make u clear and my situation.
utm
28-Jan-14 3:45am
View
no i maintain the same name in aspx page as well as .cs page and rbtn i given the example that is not the issue.
utm
28-Jan-14 2:43am
View
in vs2005 i have not get designer.cs.. kindly explain
utm
28-Jan-14 2:25am
View
Full Tag Details
<asp:RadioButtonList ID="RadioCoupon" runat="server" CssClass="nobg" RepeatDirection="Horizontal">
utm
26-Dec-13 23:40pm
View
its working.. thank you.
i modify it and set lefttime value at runtime. thats it.
utm
24-Dec-13 6:52am
View
new problem arises How to Check whether Session is Expired or not ?
utm
17-Dec-13 5:51am
View
thanks for reply.
utm
17-Dec-13 5:46am
View
Yes i have to do but this my last option . i am still search for some shortcut to do this job.
thanks for reply.
Show More