|
Hi minhpc_bk, Thanks for the reply.
The event handler gets called as you would expect when the radio button list is on the form in a "usual" position, but if I put it in the edititemtemplate the handler is not called. I added OnSelectedIndexChanged to the control and now the handler is called but the RadioButtonList1 object is Nothing.
I ended up having to get set up a datalistitem object using
datalist.item(datalist.EditItemIndex)
then using datalistitem.findcontrol to grab the radiobuttonlist.
But hey, it works now and you pointed me in the right direction, so thanks!
|
|
|
|
|
hi all
i want the page to display a message, i knw hw to do it by script, but hw to make the ASP code calls the script method as i wrire the code in the code behind page not in the HTML page
thank u
abdelhameed81
|
|
|
|
|
Hi,
you can use Page.RegisterClientScriptBlock() method to register client scripts.
|
|
|
|
|
thank u but i tried the following code
if (!Page.IsClientScriptBlockRegistered("mytest") )
Page.RegisterClientScriptBlock("myrest", "alert('Hello');");
but not work
abdelhameed81
|
|
|
|
|
it works ok here; although you wrote "myrest" the seccond time.
|
|
|
|
|
hi all
i am using a multitext field to enter data in the database but when i press (enter) in the text box and check the tables in the db i found that the new line is not inserted in the table
plz tell me wht to do
abdelhameed81
|
|
|
|
|
There is no reason why the newline should not be saved. I think that it's saved all right, but not displayed the way that you expect in the user interface for the database. What database are you using, and what user interface do you use to view the data?
---
b { font-weight: normal; }
|
|
|
|
|
hi all,
I am trying to develope a mailserver control panel in asp.net with c# using Exchange server 2003.I want all the details to read mails from Exchange server..
|
|
|
|
|
IMO, for that you'll have to implement two parts:
+ Code to access the Exchange Server to pull data, and you may consider using the WebDav .Net , other choices are CDO or MAPI.
+ Code to implement the custom panel control to display data, and it depends on how you want to show data you choose a way to go, you can see MSDN for the details on how to develop a custom server control.
|
|
|
|
|
Hi Friends,
In a gridview i have a bounded image column,thats working fine.
My problem is
when some one clicks on the edit button in the grid, I want to get the image name in a variable for some reason.
can any one help me pls.
I am passing RowId and column id
like this
GridViewRow row=mygridview.Rows[1];
row.Cells[2] //where cell 2 is an image column.
How can i get value of cell 2 in a variable.
thanks
Naveed Kamboh
|
|
|
|
|
Does this work?
(GridView1.Rows[1].Cells[2].Controls[0] as Image).ID
|
|
|
|
|
Thanks dear it worked for me as
Image im1 = row.Cells[2].Controls[1] as Image;
this.imgCurrent.ImageUrl=im1.ImageUrl;
I was using template column.
thanks for the great help.
Naveed Kamboh
|
|
|
|
|
Hi
Please help !!!!!
I am using Crystal Reports 11.5 R2 with Visual Studio 2005 on XP with SP2 for development. The program runs fine on my development machine and the reports open up fine. When I run the program on the a Windows 2000 Server I ge the following error, even though I gave ASPNET, IUSR,IWAM and Everyone full access to the directory that has the reports, the reports themselves and the temp direcories.
Access is denied.
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: Access is denied.
Source Error:
Line 422:
Line 423:
Line 424: oRpt.Load("d:\mcsistest\" & dbrptName)
Line 425:
Line 426: 'oRpt.Load("C:\Documents and Settings\JP\My Documents\Visual Studio 2005\StudentInfo\" & dbrptName)
Source File: D:\mcsistest\colMain.aspx.vb Line: 424
Stack Trace:
[COMException (0x80004005): Access is denied.
]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +87
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +279
[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +341
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +964
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +73
Studentinfo_colMain.CreateReport() in D:\mcsistest\colMain.aspx.vb:424
Studentinfo_colMain.studCINF() in D:\mcsistest\colMain.aspx.vb:307
Studentinfo_colMain.start() in D:\mcsistest\colMain.aspx.vb:193
Studentinfo_colMain.btnSubmit2_Click(Object sender, EventArgs e) in D:\mcsistest\colMain.aspx.vb:176
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Thank you.
|
|
|
|
|
Professorewan wrote: Exception Details: System.Runtime.InteropServices.COMException: Access is denied.
Looks like the COM access permission, not the permission to the folder, you might want to check if the ASPNET process identity has the permission to work with the COM object, for details you can see Process and request identity in ASP.NET[^]
|
|
|
|
|
I added the userName="SYSTEM" password="AutoGenerate" to the processmodel and this still did not work.
Is there any other suggestions.
Thank you
|
|
|
|
|
You might try to use the dcomcnfg tool to grant the permissions to the account that runs the ASPNET process.
|
|
|
|
|
Professorewan wrote: Line 424: oRpt.Load("d:\mcsistest\" & dbrptName)
The most probable cause might be an NTFS permission on the quoted folder.
|
|
|
|
|
I've searched the 'net but can't seem to find the answer to this.
I'm using the Label to hold some HTML text read in from a database. So I'm curious what the character limit on the text property is (if there is any). Anyone know?
|
|
|
|
|
|
How to insert Annotation to some part of the text in a document using javascript.
|
|
|
|
|
Okay. What have you tried so far?
|
|
|
|
|
i have captured the screen coordinates when mouse is clicked on the page.
i have designed one control in which we can add annotation.From the captured screen coordinates, i have drawn a polygon that was created using javascript
towards the control.
While in runtime when you move the control vertically or horizantally,the polygon that is drawn should move accordingly with respect to the coordinates of the control.
The way the polygon is drawn dynamically is not working properly.
So looking out for an Annotation tool(javascript based).
-- modified at 7:28 Thursday 12th October, 2006
|
|
|
|
|
So it sounds like you started developing your own solution, but would now like to get a tool that can do this, yes?
If you know how to use Google, you might try there. I did a quick search and one of the first links that came back was this:
http://fotonotes.net/[^]
|
|
|
|
|
i have a Funny Problem
when i use RequiredFieldValidation Control With Validation Summary an use them in my local pc they works good (ClientSide & serverSide)
But when i Upload the site on the internet Only ClientSide is Worked ( )
and serverside codes dosn't work (in asp.net1.1)( don't see any effect when all textbox is filled )
how can i solve it ??
With Thanks ....
MHF
|
|
|
|
|
With the ASP.NET 1.1, what you might need to check is the client side validation script that should appear in the folder aspnet_client at root.
|
|
|
|