|
so what's ur problem ?
Koushik
|
|
|
|
|
the checkbox is not checking
kirankumar
|
|
|
|
|
try following code In ItemTemplate of gridview
<asp:CheckBox Id="chk" runat="server"
Checked='<%# Eval("FiledName").ToString()=="Y"?true:false' />
BesT Regard
PaThan
|
|
|
|
|
hi,
thanks its working fine
kirankumar
|
|
|
|
|
You've asked four different questions now with the subject of 'gridview'. Can I suggest you start providing more meaningful subjects, if you want to attract peple who can help you ?
I also recommend buying a book on ASP.NET, you seem to be asking a lot of beginner questions, it would really help you to learn some basics in a more structured format.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
hai all,
i just want to know,
i had one gridview1 ,in that i have empID(stored in databse) and empname visible on gridview but is also stored in DB.
and also i have checkboxes in gridview....
if i selcect individual checkbox or selecting all check boxes that related empname should be send to the gridview2 of another page.
thanks in advance
Thanks
Subbu.
|
|
|
|
|
I'm a beginer of ASP.NET developing.
I use some dll file for converting video to flv on web.
So, My Website runs sucessful on VS2005. but when client connect this web page, following error message is displayed.
Server Error in '/VideoUpload' Application.
--------------------------------------------------------------------------------
Retrieving the COM class factory for component with CLSID {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX} failed due to the following error: 800401f9.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX} failed due to the following error: 800401f9.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true">
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[COMException (0x800401f9): Retrieving the COM class factory for component with CLSID {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX} failed due to the following error: 800401f9.]
upload.Page_Load(Object sender, EventArgs e) +29
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Please help me!
|
|
|
|
|
Does the site the machine runs on have the COM component installed ? Why would you be using a web site to upload video and convert it ? If your app is taking a file path and then converting the file, the issue is that on your local machine, the file exists on the same machine as the COM dll, but for the user, that won't be the case.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Hi
guys can any one let me know the reasons for IE crash while using .Net web application , which are specific to the .Net web application and caused by the .Net web application due to some error in code or any cioinfirguration issue,thankx in advance,
kindly reply ASAP,
|
|
|
|
|
Wow - I can't imagine how you used so many characters to tell us so little.
If IE crashes, the issue is not specific to .NET. .NET just generates HTML. If you're getting an error message, it's because of errors in your code.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Christian Graus wrote: "also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
New Signature ? But it's overflowing the screen
|
|
|
|
|
Does it force a scrollbar on a low res monitor ? I may have to change it. Yes, it's new, I saw that today.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Christian Graus wrote: Does it force a scrollbar on a low res monitor ?
Yes it is. But not a low resolution, Mine is 1024 X 768. I think you took this function name from C# forum . Right ?
|
|
|
|
|
OK, I am 1440, b/c my notebook doesn't do 1600 wide. I'll make a change so it's not a menace.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Well it doesn't gets crashed but IE gets closed , it happens on and off not all the time, do you have any idea why is it happening like this ,
regards
|
|
|
|
|
Sorry it is not crashed but it gets closed, can any one let me know the general reasons why IE gets closed while using ASP.NET web application, thankx in advance, reply ASAP
|
|
|
|
|
IE7 does not close without prompting you first. No-one can hope to help you, you're not giving us enough info.
1 - what versions of IE
2 - how many PCs have you tested on ?
3 - does it happen consistently ?
4 - Where does it happen ( what do you do ? )
etc
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
1) IE version is IE 6.0
2) it doesn't happens consistently
3) client has reported this
4) it happens on client machine
is it enough man or u require some other info ,can you please let me know any reasons if you know
regards
|
|
|
|
|
Hi,
I have a question about gridviews. I have a gridview in my code, in code behind I associate a List with the gridview when the page is first loaded but after that when I try to handle the PageIndexChanging event, the grid's datasource is null. And the funny thing is that when I select the second page of the grid, nothing happens but for the second selection it really takes me to the second page. Again, if I want to come back to the first page, it won't let me just for the second try but the result is worse because it messes up the rows, so I don't get back all of the rows of the first page just a subset of it. My question about this mess is what do I have to do to have the datasource visible after postbacks. Do I have to bind the gridview to the datasource each time the page is requested?
Sorry for the lengthy post but i'm really confused and not know what to do. I would like to have clear look on this instead of writing some garbage code to handle this. Any help is appreciated!
|
|
|
|
|
It depends on how you handle paging. Ideally, your gridview will request the current page of data, and therefore ask for the data for the newly requested page when you change pages. If you have 10,000 items, and 10 per page, would you want to hold 10,000 items in viewstate ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
So I know what u're saying but my problem just wasn't that. The scenario is as follows: the user requests the page with a get variable which is a file name, I download a file from a database, get specific entries out of it and store that collection in session state; if the user changes the page I get out the entries from session state, and that's it. What I didn't know is that I have to bind the datasource each time to the gridview and furthermore I realised that I have to bind it again when the event occurs, otherwise it won't work properly.
So I just wanted to say what i've already learned from a short examination.
Thanks for your suggestion, happy coding!
|
|
|
|
|
I have one master page which has various link buttons. OnPostbackURL event of link button I am loading new page. On click of link button the page is getting refreshed. I don't want page refreshment. I tried using 'update panel'. But upadate panel is not supported in ' Contentplace holder '.
The code for the master page.
<asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional">
<contenttemplate>
|
The new page code
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
| <%--Panel Manage Category--%>
<asp:panel id="panCategory" runat="server" height="26px" width="165px" cssclass="padheading">
Manage Category <asp:imagebutton id="ibtnCategory" runat="server" height="19px" imageurl="~/Images/arrow1.jpg"
style="position: relative" width="20px" causesvalidation="False">
| <%--Panel Category Items---%>
<asp:panel id="panCategoryItem" runat="server" height="69px" style="position: relative;" width="165px">
<asp:linkbutton id="lnkAddCategory" cssclass="text" runat="server" style="position:relative;" postbackurl="CreateCategory.aspx" enabletheming="True" borderstyle="None" causesvalidation="False">Create Category
| <asp:linkbutton id="lnkUpdateCategory" cssclass="text" runat="server" style="position: relative;" postbackurl="CreateCategory.aspx" causesvalidation="False">Edit/Update Category
| <asp:linkbutton id="lnkViewCategory" cssclass="text" runat="server" style="position: relative;" postbackurl="CreateCategory.aspx" causesvalidation="False">View Category
|
|
Category: | | | <asp:label id="lblErrorMessage" runat="server" font-bold="True" forecolor="Red" cssclass="errortext_1"> | Category Name: | <asp:textbox id="txtCategoryName" runat="server" cssclass="textbox_1">
<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" controltovalidate="txtCategoryName"
errormessage="Enter category name" cssclass="errortext_1"> | Category Description: | <asp:textbox id="txtCategoryDescription" runat="server" height="50px" textmode="MultiLine" width="200px" cssclass="textbox_1">
<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" controltovalidate="txtCategoryDescription"
errormessage="Enter category description" cssclass="errortext_1"> | | <asp:button id="btnAddCategory" runat="server" text="Add Category" onclick="btnAddCategory_Click" cssclass="textbox_1">
| View Category: | | Select Type: | <asp:dropdownlist id="ddlCategoryType" runat="server" autopostback="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged" cssclass="textbox_1">
<asp:listitem value="Active">Show Active Categories
<asp:listitem value="InActive">Show InActive Categories
<asp:listitem value="ShowAll">Show All Categories
| | | <asp:gridview id="gdViewCategory" runat="server" onrowediting="gdViewCategory_RowEditing" bordercolor="Black" cellpadding="4" onrowdatabound="gdViewCategory_RowDataBound" borderstyle="Solid" borderwidth="1px" cssclass="text_1" forecolor="#333333" gridlines="None">
<footerstyle backcolor="#5D7B9D" font-bold="True" forecolor="White">
<columns>
<asp:commandfield buttontype="Button" showeditbutton="True">
<rowstyle backcolor="#F7F6F3" forecolor="#333333">
<editrowstyle backcolor="#999999">
<selectedrowstyle backcolor="#E2DED6" font-bold="True" forecolor="#333333">
<pagerstyle backcolor="#284775" forecolor="White" horizontalalign="Center">
<headerstyle backcolor="#5D7B9D" font-bold="True" forecolor="White">
<alternatingrowstyle backcolor="White" forecolor="#284775">
|
Regards;
T h kishore |
|
|
|
|
|
|
hi to all,
I am using asp.net 2.0, in that I designed a webpage for uploading an image. If the user uploads an image it should be automatically change in to thumbnail and it is displayed in that website. I searched in Google but I didn’t get the proper coding for that. So, please help.
jai prakash
|
|
|
|
|
Why have you posted your question again? You only posted your original question 30mins ago.
Don't you know that it is rude to do this? You won't necessarily get an immediate response to your question. This is a free site, so unless you are going to pay someone for advice you should be prepared to wait.
I've answered your first post. Please read it and remember not to double-post in future.
Paul Marfleet
|
|
|
|
|
sorry ya,here after i will not do it.
I cont get a clear idea from that link. Is there any other link for full code. Please help me.
jai
|
|
|
|