|
i am using menu conrol and on subitem click i m writing this code to open a new form....
Page.ClientScript.RegisterStartupScript(Me.GetType(), "close", "<script language=javascript>window.open(" + ("'Accounts/dummy.aspx'") + ",'_blank'); </script>")
locally it works fine but after pulishing and running on iis 5.1
object reference error occurs please guide what to do????
umerumerumer
|
|
|
|
|
It is difficult to track the error with this information. Find the exact position where the error occurring. Then it is easy to find a solution.
|
|
|
|
|
actually when i load simple page without master page it works fine
locally and same after publishing...
but when i use master page on that page and then open it in a new window it works fine locally but not after publishing....
means master page gives object reference error in new window.....
umerumerumer
|
|
|
|
|
Hi,
Im using ASP.Net 3.5,VB.Net 3.5. Is it possible to import mail from gmail or yahoo from its inbox.i know that contacts can be imported,but for mails,is there is any way to do like that?
Rgrds
Kanna..
|
|
|
|
|
There are no built-in classes for POP3. You have to write your own POP3 or buy any third party controls.
|
|
|
|
|
Hi,
Thnx could u able to send me some of the link plz...
rgrds
Kanna
|
|
|
|
|
Search in google. You can find tons of articles.
|
|
|
|
|
Dotnetkanna wrote: Is it possible to import mail from gmail or yahoo
Yes, if you look at the gmail/yahoo mail FAQ pages there are details.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
Thnx could u able to send me the link plz...
rgrds
Kanna
|
|
|
|
|
I did. I said take a look at the gmail/yahoo mail FAQ pages.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
Hello Everybody,
I have no experience to work with google msp control. But it is very urgent to me. Please anyone help me.
My google map path is coming from database. the value is like "http://maps.google.com/maps?f=d&hl=en&geocode=3247078336938893064,37.091165,-8.727708&saddr=37.091331,-8.727458&daddr=&mra=dme&mrcr=0&mrsp=0&sz=18&sll=37.091408,-8.727146&sspn=0.001883,0.003648&ie=UTF8&t=h&z=18";
Now I have to show only the goole map. Remember in the link there are the co-ordinates of the place, How can I show the map in my .aspx page. Pleaseeeeeeeee Help me.
Thanks & Regards,
ARIJIT DUTTA
mrdutta81@gmail.com
|
|
|
|
|
mrdutta wrote: I have no experience to work with google msp control
You should first read the basics about using google map control from there site.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
try to find out on google how google map works...don't give up so early.here experts will help you only when you will finish your ground work.....
Amit Agarwal
|
|
|
|
|
Hi, i browse a file from client local hard disk and place that text file on the server. This part already done using ASP. But now i want to retrieve back that file and display it using massage box and text box for next processing..But until now still cannot work. Below is the source code. Anyone please help me..
function doKey()
{
crs = doKeyGen();
document.forms.form1.crs.value = crs;
}
Function doKeyGen()
Dim strDN
dim objFSO, objFile, objReadFile
dim strContents
dim strContents0
strDN = "<%=Session("dn")%>;"
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("C:\NewCRS\new\uploaded\certreq.txt")
If objFile.Size > 0 Then
Set objReadFile = objFSO.OpenTextFile("C:\NewCRS\new\uploaded\certreq.txt", 1)
strContents = objReadFile.ReadAll
objReadFile.Close
End If
strContents = Right(strContents, len(strContents) - 39)
strContents = Split(strContents,"-----")
strContents0 = strContents(0)
doKeyGen = strContents0
MsgBox(strContents0)
Set objReadFile= nothing
Set objFSO = nothing
End Function
Generating Certificate Request
;
.
.
.
-camar-
|
|
|
|
|
Please tell what is the problem you are getting?
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Hello,
I am trying to install an asp.net app inside the subdirectory of another app and I am having problems. How do you do this? There seems to be some conflict. First it gave me a web config error and now it can't find any of my classes in my App_Code file. This all worked fine under my local machine.
thanks
|
|
|
|
|
It will try to save all the class files in the app_code folder.
Why do you want to install on the same location? if it is part of the same solution then add it to that solution and make one setup. For separate permissions place a separate config file in its own folder.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Hi,
I am developing an ASP.Net application which communicates with a .Net COM DLL. All the functionalities depends on the DLL events. When I am trying to update any control (say adding a list box item or setting button.enabled state) from any of the DLL Event Handler, its not getting updated and its not throwing any error too. But when I update it from any page events (say page_load or button_click), its getting updated.
Can anyone give a solution for this please? My application is totally based on DLL events.
Thanks
Sree
|
|
|
|
|
Hi
I have a gridview displaying the northwind Orders table. I'd like to add a new column called "Order Details" which is a hyperlink to the order details of the order record. I created the column and added the following code...but I don't know how to create my NavigateURL dynamically based on the primary key of the order selected.
"GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="dsOrders">
"True">
"OrderID" HeaderText="OrderID" InsertVisible="False"
ReadOnly="True" SortExpression="OrderID">
"OrderDate" HeaderText="OrderDate"
SortExpression="OrderDate">
"RequiredDate" HeaderText="RequiredDate"
SortExpression="RequiredDate">
"ShippedDate" HeaderText="ShippedDate"
SortExpression="ShippedDate">
"Order Details">
"dsOrders" runat="server"
ContextTypeName="NorthwindDataContext" TableName="Orders">
The problem with the code below is I don't know how to identify the order id, and how to convert the text into an actual hyperlink value instead of static text.
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[5].text = "http://mysite/orderdetail.aspx?OrderId=?";
}
}
|
|
|
|
|
I didn't get the complete code which you have posted. But from your question what I can suggest is to have a template column in the gridview and then in the gridview rowdatabound event just find that control and then set the navigate URL property of it. The rowdatabound event gets fired for all the rows in the gridview. So this will suffice the need.
Apurva Kaushal
|
|
|
|
|
Anyway you are getting the value of OrderId in one of the cells. So get that value in an integer variable like below:
int ordid = e.Row.Cells[5].Text
Probably you need a conversion here to integer. Then, for making dynamic hyperlink columns, check in this site : CreateHypeLink Fields Dynamically
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
So here is my confusion...some people say add an itemTemplate field with a hyperlink, and others claim to simply a new hyperlink column and set the DataNavigateURLFields, and DataNavigateURLFormatString manually.
I didn't have any luck with using the ItemTemplate field....so I added a hyperlink column instead below.
Are there any advantages over using an ItemTemplate vs hyperlink column???
<asp:hyperlinkfield xmlns:asp="#unknown">
DataNavigateUrlFields="OrderId, CustomerId"
DataNavigateUrlFormatString="HyperLinkOrderDetails.aspx?aOrderID={0}&CustomerId={1}"
HeaderText = "Order Details"
Text="View order details" />
|
|
|
|
|
Hi All,
I have a Datagrid with some hyperlink columns. Need to pass those column values to another page (not by using querystring). What is the event that fires when the hyperlink column is clicked? Any help is much appreciated. Thanks.
Rohini
|
|
|
|
|
I think for your case a Link Button control will be suited. That control looks like hyperlink and have an event to perform some action.
Apurva Kaushal
|
|
|
|