|
button is not dead ... when i click it first time it posts back ... goes to page load and comes back and doesn't do anything when i click it again it goes to the page load and then goes to event function and works fine ... but i don't why it doesn't go to click event on first click
Thanks
|
|
|
|
|
What exactly is it that it doesn't do on the first click? Is the button totally dead, or does it seem to react to the click? Perhaps it even causes a postback?
---
b { font-weight: normal; }
|
|
|
|
|
I have a main datagrid with three nested datagrids. These three are all child tables of the main table. I am wondering if you can create an edit (update/cancel) button that will enable the edit for all four datagrids. Is this possible?
Thanks!
|
|
|
|
|
It is possible. You only need to change the EditItemIndex and rebind each grid you need to edit. You can't do this automatically unfortunately.
My Blog
|
|
|
|
|
Another question then...If the parent table has one row, and nested data grid has 3 rows (example tblAnimal: Cat tblFood: canned, bag, tablefood) and I want to enable editing for all four of those items is that possible?
|
|
|
|
|
Hi,
What are the advantages of ASP.NET over J2EE?
Thanks.
|
|
|
|
|
|
I want to be record more information about a user then their email address, but I am having a lot of trouble finding out how to do this. I assume I have make a custom MembershipProvider and/or extend MembershipUser. The big problem is that, while every .net site in the work mentions you can write your own provider, the only article I can find about actually writing your own is for making it work through webservices which I have no interest in. So if anyone can point me in the right direction that would be great.
|
|
|
|
|
|
Hi,
IIS is not getting started!Even the World Wide Web Publishing!When I'm trying to create a web application,I'm getting an error as that the appln cannot be opened or created as Web Server is not running!I tried to connect from MMC!But I'm getting a message that The Connection couldn't get started!
What might be the workarounds for this problem?
Thank you!
Deepa!
Be the Change you want to See!
|
|
|
|
|
try Start-> CMD -> IISReset /start
That should return some info if it can't start it, or start the lil bugger if it can....
Check in services to see if its properties specify Auto-Start with OS. (Oh - bit silly, but you have INSTALLED it haven't you? Not installed by default with windoze)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi all,
I am tring to print information present on webpage.
I am using Javascript for this purpose.
function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
prtContent.innerHTML=strOldOne;
}
///on page lod
imgPrint.Attributes.Add("onclick", "CallPrint('innerPage');")
//on image button click
Dim popupScript As String = "CallPrint('innerPage') ;"
Page.RegisterStartupScript("PopupScript", popupScript)
But this gives error
'DialogArguments_IE_PrintType' is Null or not an object.
If Any one knows something...let's share with me.
thanks,
Nagraj
|
|
|
|
|
Hello,
I have two pages that both contain a checkbox.
The first page contains a link to the second page.
I want to save the checkbox state when the user navigate to the second page.
I prefer not to perform it using parameter in the URL, I want to do it using the C#, that is, to send the first page to the server and when generating the second page, I want that the server will be able to see the checkbox state and to initialize it on the second page.
Thanks in advance,
Yossi
|
|
|
|
|
Put it into session maybe?
|
|
|
|
|
If you are using the ASP.NET 2, you can use the cross-page posting[^] with the LinkButton.PostBackUrl property, and in the second page you can access the checkbox of the first page.
|
|
|
|
|
Hi,
Thats sounds cool.
Does it post the whole page or only the LinkButton?
How do I access it?
Thanks,
Yossi
|
|
|
|
|
It posts the whole page and you can follow the link to see how to get the value/control of the source page.
|
|
|
|
|
Hi,
How do I save an uploaded file to something else? I have it as follows:
fuImage.SaveAs(Server.MapPath("../../images/winery/") + fuImage.FileName);
It uploads the file name as is, lets say it is myfile.jpg. What happens if I want to save the file as mase.jpg. How do I get this right?
Please can someone advise.
Regards,
ma se
|
|
|
|
|
I think i must be missing something in the question, but:
<br />
fuImage.SaveAs(Server.MapPath("../../images/winery/") + "mase.jpg");
|
|
|
|
|
Yes maybe a little bit, irrespective of what the file name and file extension is, I want it renamed. What I do is if I add a winery to the database, it returns the ID, and I want the pic saved as this ID.
|
|
|
|
|
does the above code not work for that?
|
|
|
|
|
Find the image name in the FileName and replace it with your own. Just a simple string operation.
My Blog
|
|
|
|
|
Hi All,
I have a question connect with the build option...
I create website, where I create web user control. (C#) This is working correctly!
Possible create from this .ascx file .dll, which I can use other application or other web site? I can add after this .dll to the toolbox?
If yes, how can i solve this?!
Thank you, your answer and help!
Regards,
Gabor
|
|
|
|
|
Not sure if this will work, but you could try adding a web custom control to your project (essentially a class file) and inherit the user control you have created. This custom control will build down to a dll...
|
|
|
|
|
Thanks, but this is not working!
|
|
|
|