hi all
I have used Google map in my application.
its work very well on local application in visual studio but not worked in IIS through another PC.
it gives error like :
"this website needs a different Google MAPS API key.a new key can be generated at http://Code.google.com/apis/maps/."
i have already generated new api key in my application .
but still same error occurred when its running...
User Profile
Collapse
-
Google Map not working in IIS
-
talhakarkun replied to Solution for Object reference Not set to an instance in asp.net while filling datasetin ASP .NETU Can use following code:
Code:if (Session["UserName"] != null) Response.Redirect("~/AspX/Account.aspx?ShowMenu=No");
Regards
Talha KarkunLast edited by Frinavale; Sep 28 '10, 01:36 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags. -
i think problem is in ur datatable.
when u fill data in datatable then previous data are also same in this table.and new data insert after that.
So before u use same datatable
first u want to set new object of datatable.
like
dt=new datatable();
and after that fill Data in ur DataTable.
thanks
Talha KarkunLeave a comment:
-
U Can use following code :
comm.Parameters .Add("@Carrier" , SqlDbType.VarCh ar).Value = doCarrier.Colum nName;Leave a comment:
-
U can put subgrid in MainGrid TemplateField.
and bind subgrid on maingrid row databound event..Leave a comment:
-
if RollNo is the Primary key of your table then u had RollNo use in diffrent table as foreign key...
first check it and if roll no is connected with another tables with foreign key then first delete all recored from those tables which concerned same roll no in primary table..
like examples.
if u want to delete roll no:2 in gridview 2.ok
but roll no-2 is used by another table(s) as a foreign key..
so first check...Leave a comment:
-
first u have to deleted values for that id in child tables and then after u want to delete entry from parent tables.
if u are directly deleted parent table value then it gives exception because that value or ID uses in its child table.
so batter way is that first u want to delete its child table entry and after deleted parent table entryLeave a comment:
-
just try this way to give image path in background..
background-image: url(../image/slam-book.gif);
u can change all image url on that pages like above examples..Leave a comment:
-
sending mail from html page with javascript
hi all
i have one html page which includes following input control from user:
senderEmailId:
Subject:
body:
receiverEmailId :
submit button:
but i don't know why mail send from html pages.
i have already done sending mail in asp.net and PHP
but don't how its possible in html pages..
can anyone tell me how its possible with or without javascript.... -
Hi vijay7896
u can solve ur problem to set session timeout property in web.config file by foolowing steps.
->GO to Web.config File
->Find this tag <configuratio n>
->Under <configuratio n> u can see <system.web> tag
->in this tag u have just copy & past following line
<sessionState timeout="30"/>
->here 30 means 30 Minuts
...Leave a comment:
-
Page Reload from another page like on POPUP window
hi all
i am using lightbox in my application.
through lightbox i am open new window and add new recored in database..
the problem is that when i am close my popup window at that time the data which are not Updated are show on my Parent Page
but if i Refresh manually from refresh button on my browser then effect of new data properly on my Parent Page.
so pls give me solution for refresh or reload my parent... -
hi dear
if u are using sql database then
u can autogenerate number in ur primary key by following code..
CREATE TABLE [dbo].[emp](
[empno] [int] IDENTITY(1,1) NOT NULL,
[Ename] [varchar](20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL,
CONSTRAINT [PK_emp] PRIMARY KEY CLUSTERED
(
[empno] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
...Leave a comment:
No activity results to display
Show More
Leave a comment: