|
As said by you, I applied Server.ClearError() in Page_Error event but still same output.
NEHA GUPTA
|
|
|
|
|
|
I had created a rdlc in asp .net web application.But I have a problem.
I have also created dataset for that.In my rdlc,employeeid,employee name,department,designation,date of works,time in,time out and working hours are there.In my procedure,there are four parameters are passed.Parameters are employee id,from date,to date,dept id,designation id.Problem is that I will have to get my report as employee id,employee name,department,today's date as a group..
eg:
Company ID :ms4455
Employee Name :thanu
Department :development
Date :17/07/2010
time in ,time out and working hours will be as a report.Please help me to grouping this.Please give me a suggestion.I have to use sub report or not.
|
|
|
|
|
Hi,
you dont have to use subreports. Use a table within your rdlc and link that
tables datasource to the datasource containg your working hours.
Consider using seperate generic lists as datasources, which you add to your
report file one by one. This makes it very easy to choose the correct datasource
within your rdlc elements.
|
|
|
|
|
I have a page call Sample.aspx. I am using a Control (which have some textbox, radio buttonlist, etc) in it. and depending on no. of items that control got created repeatedly. on Sample.aspx, i have to find out its values for respective items.
How to achieve it ?
Kindly guide me a bit.
Thanks
|
|
|
|
|
Can you elaborate more on your question with
some sample code or illustration?
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
look, the scene is like, i m ordering an item list and i have to enter a quantity n all details for a specific item. For that i have created a control, which is get called on number of items, like if there are three items, then three times control get called and showing three interfaces for input. On save button click, i want to save respected data to their respective items, how to achieve it.
|
|
|
|
|
|
I have 5 drop-downs in user control. I need to display them in another user control button click event using
JavaScript.
|
|
|
|
|
Can you elaborate your question along with
some sample code, so that it is clear and easy
to understand?
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
If it weren't javascript that would be much better. Are the user controls nested (is one inside the other) or are they just on the same page? Regardless, if it weren't for the unfortunate javascript requirement I would say the user control with the button needs to fire an event that either the page or the parent control listens for. Then in the handler for that even tell the control with the dropdowns to do whatever it is it needs to do.
Now if you put both user controls in the same update panel all this would work without reloading the page and it would look and act the same from the user's perspective as it would had you done it with JavaScript.
Event Bubbling From Web User Controls in ASP.NET (C#) [^]
|
|
|
|
|
Hello every1,
I have installed VS208. I have tried to work with Entity framework. before, I start have some questions:
1) where is the Entity framework; because I haven't seen it. Do I have to install it? where? do you have any link?
2)how do I have to use it?can I use it in MVC. how?
|
|
|
|
|
|
hi every one,
can anyone tell me how to do paging for gridView in asp.net without using the sqlDataSource control, on clicking next it has to show the next page, on clicking prev it has to show the previous page in the gridView control. just like the operation we get in sqlDataSource control.
i'm fresher pls explain in detail. any links also will help me great..
thanks in advance
dittu
|
|
|
|
|
Try following code.
protected void gvPaging_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gvPaging.PageIndex = e.NewPageIndex;
gvPaging.DataBind();
}
protected void gvSorting_Sorting(object sender, GridViewSortEventArgs e)
{
DataTable dtSortTable = gvSorting.DataSource as DataTable;
if (dtSortTable != null)
{
DataView dvSortedView = new DataView(dtSortTable);
dvSortedView.Sort = e.SortExpression + " " + getSortDirectionString(e.SortDirection);
gvSorting.DataSource = dvSortedView;
gvSorting.DataBind();
}
}
private string getSortDirectionString(SortDirection sortDireciton)
{
string newSortDirection = String.Empty;
if(sortDirection== SortDirection.Ascending)
{
newSortDirection = "ASC";
}
else
{
newSortDirection = "DESC";
}
return newSortDirection
}
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
I'm using VS2010 and I can't figure out how to create a Web application project in the local IIS. I only seem to be able to do one of two things:
1. Create a Web Site project in the local IIS. I do this by choosing File>New>Web Site>ASP.NET Web Site with Web location set to File System. Then I click Browse and choose Local IIS.
2. Create a Web Application project in the local file system (not in the local IIS). I do this by choosing File>New>Project>ASP.NET Web Application. No option is provided to use the local IIS, only the local file system. It doesn't do any good to put the project in c:\inetpub\wwwroot\. I still wind up with a location like http://localhost:50758/[^]indicating that I'm using the Web server built into Visual Studio, not my local IIS.
Hopefully there's some additional configuration option I must set in IIS to recognize the location of the project in localhost.
Solution added Friday, July 16, 2010 2:25 PM PST: I had the solution to this problem in my back pocket all the time without realizing it. The first experimental ASP.NET project I ever started (to help me wade into the Wrox book, Professional ASP.NET 4 in C#) accomplished precisely what I was after, but I forgot what I did. After wading through responses I got in this thread (that did not provide the answer) I dug into my project settings and discovered the trick: Within Project>WebApplicationProject Properties on the Web tab, choose the Use Local IIS Web Server option. Then just Create Virtual Directory. Honestly, that's all there is to it.
Oh, yes. You also originally create the project as described above in my #2 item, precisely the option that the Wrox book, Beginning ASP.NET 4 in C# on page 38 warns you against making the "mistake" of choosing because it "is not compatible with the exercises in this book." But I'll bet you I can figure out how to transfer what I learn from this book to a Web Application project that does run under the local IIS. So now I wind up with a location for my Website like http://localhost/PPT/Customers.aspx[^].
modified on Friday, July 16, 2010 5:43 PM
|
|
|
|
|
For method #1 have you selected http instead of File System?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
According to this Wrox book I have by Imar Spaanjaars (Beginning ASP.NET 4 in C#), p. 38, choosing HTTP enables you to open a remote site running IIS with the so-called Microsoft FrontPage Server Extensions, so that's not relevant. Also, I'm not interested in my option #1 because I want to create a Web Application project in my local IIS, not a Web Site project.
modified on Friday, July 16, 2010 11:56 AM
|
|
|
|
|
Books are not always correct or give you all of the information. Specify localhost rather than a remote location.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Books are not always correct or give you all of the information.
Neither necessarily is any information you see in forums. I looked at MSDN documentation and what it says is that if the IIS is remote, it has to support Front Page Extensions. That's probably where Imar got his information, but it appears to be irrelevant to what he's telling his readers to do. Nowhere in his book does he entertain the notion that the reader might be interested in using the local IIS.
Of course MSDN isn't always correct either. The only way you know what is stated in a book, forum, or MSDN is true or not is to try it out and see what happens. So I tried out what you suggest and I wound up with a Web Site (no project file), not a Web Application (which has a project file and delivers an assembly, not .cs files). So you're not answering my question.
The other poster in this thread claims to be providing an answer for me, but it requires researching other posts he's made. When I get out from under what I'm currently doing (making my way through the second chapter of the Imar book), I'll look into his answer and hope he provides the answer I'm looking for.
One of the "problems" with the Imar book is that 95% of the book (all but the last chapter) assumes you're using a Web Site (not a Web Application) and the Web server built into Visual Studio (not IIS), so for my needs it has two strikes against it, but it provides all the basics which I need to get straight in my head.
|
|
|
|
|
|
Abhijit Jana wrote: Here is my two article which will help you for both of these cases.
I guess I didn't make it clear that I was only interested in the second case. I looked through both of your articles, looking for the answer to my problem, but I guess I couldn't see the forest for the trees. In the first place, both of your articles use old versions of IIS and VS that I am not running, so the old fashioned look of your screenshots sort of put me off. (Your articles really need updating.) In the second place, your second article was clearly addressing itself to Web Site projects, not Web Application projects and I thought I made it clear that I was only interested in Web Application projects.
In the meantime I started looking through the configuration of the first ASP.NET project that I built for reading along in the Wrox book, Professional ASP.NET 4 in C#. Somehow I had managed to accomplish precisely what I was asking about in my original post in this thread, but for the life of me I couldn't remember what I did! It didn't help to review the early chapters of the above book, because that book is basically a reference that assumes you already know such basic material backwards and forwards and doesn't go into it. That's why I subsequently got the Wrox book, Beginning ASP.NET 4 in C# which fills in all the blanks for ASP.NET beginners, but which unfortunately explicitly states it won't help the reader get up to speed on Web Application projects.
Well, all this mucking around did enable me to figure out how to accomplish what I originally asked: how to use the local IIS to host a Web Application project. I document that in my original post. So thanks anyhow, for prompting me to keep digging away for the answer, which I had in my back pocket all along without realizing it.
|
|
|
|
|
Is there a way to duplicate or recreate the auto ellipses feature used in C# so that it can be used on a Web Page using the ASP.Net format. If not, is there an alternate technique that is available that does the same thing, such as a div, panel or whatever?. I will use Java if I have to, but only if there is no other way. Thank you, Pat
|
|
|
|
|
AFAIK the auto ellipses property is not supported in ASP.NET. This[^] article may point you to a solution using CSS though, if that's any good to you. You may want to test this against different browsers though...
|
|
|
|
|
Thank you for our reply. I appreciate the time you took to research this issue. I looked at the link you provided. Unfortunately, it does not provide me with a workable solution for this problem...so I guess I am stuck with Java for now.. ... However, it did show me how to resolve another issue that I have confronted in the past, namely how to create an Ellipses in a Data Grid. So, thank you for that. In so far as telling me that there is no answer is the same as giving a correct answer, I am marking this issue as Answered. Best Regards, Pat
|
|
|
|