|
ya i have added system.web.extensions and System.web.Extensions.Design and Ajaxcontroltoolkit.dll.....still it"s giving the same error...
|
|
|
|
|
Hi
I am developing a web application in ASP.Net 2.0
I have a web page for project registration in which I can add project details like Project code, name description,start date, end date etc. I want to include in this page the project members and roles.
I have added a table with 2 columns which contains combo boxes bounded to Project member table and roles table. Also a button to add new member. On click of the add button i create new row to the table with combo box controls bounded to project members and roles. But I cannot retrieve the selected values of the dynamically added controls.
Can any one please help me to solve this.
With kind regards,
Jimi
|
|
|
|
|
Dynamically created controls need to be created before page load in order for viewstate to populate. OR you need to use hidden controls to store the values you want.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
All these questions are asked almost daily. How about writing a ASP.NET FAQ article?
|
|
|
|
|
Like they would read it.....
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks.
I got it solved using dynamic gridview.
|
|
|
|
|
|
This is the ASP.NET forum. ASP is so far out of date, it's not funny. No-one seriously uses it unless they have to. If you're stuck with it, my deepest sympathy, try the web dev forum. If you're not stuck, run for your life, buy an ASP.NET book.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all,
i need to get the text of a cell in a datagrid control, whose column Visible property is set to false (i dont want to display that column to the user: just contains a code number and eats space on the screen). This datagrid is data bounded to a ObjectDataSource control.
i try the following without success:
GridView_1.SelectedRow.Cells[0].Text
(on debug, i see the property Text as "")
is there a workaround to get the selected cell value without turning column's Visible property to true?
Thanks in advance.
|
|
|
|
|
if you set Visible property of the column to false, that column will not rendered. That is why you getting String.Empty when you query the cell value.
The work around is to use css to hide the column from the user. Now you can access the cell value the same way as you access the visible=true columns.
First define your css, example
<style type="text/css">
.columnHidden
{
display:none;
}
.columnVisible
{
display:block;
}
</style>
Now use the css to hide your columns
<asp:boundfield datafield="PID" itemstyle-cssclass="columnHidden" />
Yusuf
modified on Monday, March 2, 2009 6:13 PM
|
|
|
|
|
Hi Yusuf,
thanks a lot, very well explained.
|
|
|
|
|
Howdy,
I have had a web site running for some time now and I am constantly having issues with the statement User.IsInRole ("somegroup") returning a false value. It does not always happen but often the user is a memeber of the group which membership is being tested but the statement returns false. The application makes decisions based upon the return value and then the user does not have proper access to certain functionality within the site.
We normally have to stop and start the application pool on the iis server. Is there anything I am doing wrong?
thanks
Patrick
|
|
|
|
|
Hi,
I need to check the date changed, if changed i need to execute a snippet for first request after date change and for further requests another snippet executes.
How do i check the date is changed? and execute snippet for first request only?
Thanks in advance.
|
|
|
|
|
Look at Validation[^]
you can run your validation on the client side too. If you are looking only date changed events then look at this[^]
Yusuf
|
|
|
|
|
Hi Friends,
I am looking for the C# code to place one image on another image. My requirement is exactly like the following link.
http://photofunia.com/
When user browse and select his image, it has to be adjusted on another image. Please provide me if you have any sample code or if you know any third party controls and codes which provide these kind of functionality.
Thanks in Advance
Regards,
Malleswar
|
|
|
|
|
There is not a piece of code that does this. Perhaps there is a third party that makes it simple, but its pretty simple to do it from scratch without any extra controls.
Its actually a combination of 'photoshop' techniques and code. You do actually have to layer two photos on top of one another however in a rendered code page. You use the standard DIV tags and then layer them via the absolute positioning, setting the z-index of two tags to force one behind the other. The top most photo needs to be a GIF that has the sections 'cut out' and made transparent where you want the underlying photo to 'show through'. You will need a tool like Photoshop to accomplish this part (and its really the hardest part of it all). Its an old, and simple technique.
|
|
|
|
|
Thank you for the reply.
Please provide me some links where I can get sample codes or third party tools for this.
|
|
|
|
|
hi
Can any one let me know, i am using URL mapping in ASP.NET 3.5 i have made the following enteries in my web.config
<urlmappings enabled="true">
<add url="~/Widget/aspx" mappedurl="~/Products/W/Widgets.aspx">
but when the user is typing the URL it is showing 404 error? i am using IIS 5.1 on Windows XP. Kindly reply ASAP, thanks in adavance.
regards,
|
|
|
|
|
dont know what you are writing in Web config
<urlmappings enabled="true">
<add url="~/News.aspx" mappedurl="~/UrlMappingVB.aspx?category=news" />
</urlmappings>
|
|
|
|
|
Thanks for the reply i want to do URL Mapping this has been provided in ASP.NET 2.0, for which i have to add the tags in Web.config, but it's noy working for me.
|
|
|
|
|
let me know what exactly the problem that it gives.
Is it from the development environment, or in published version.
|
|
|
|
|
Can any body write Solution for validating input textboxes in Gridview
I need to validate for value shouldn't blank and must be numeric.
|
|
|
|
|
function checkBlank(id)
{
var element = document.getElementById(id);
return element.value.length > 0;
}
Call this function in the OnBlur Event of the textboxes like this :
onblur = return checkBlank(<% this.txtbox.clientId %>);
Abhishek Sur
|
|
|
|
|
Hi all,
I want to use barchart and graphs in crystal reports..how to give x axis and yaxis value in them..i saw in data tab ..
on the change of and show values textboxes in tat tab..i cant undstand
suppose from my dataset i want to give x axis as branch name and amount in y axis??
how to give them
pls help me
|
|
|
|
|
just drag and drop the field you want in the chirt data axis...
Abhishek Sur
|
|
|
|