|
|
hi,
can anybody tell how i can use
sesssion in window applications
(syntax)
thnks
Afreen
|
|
|
|
|
afreen taj wrote: can anybody tell how i can use sesssion in window applications
There is no "Session" object in windows application..
Why do we want to use "Session" in Windows Application???
|
|
|
|
|
|
Hi all,
I am studying on using google maps to integrate into my web application..my need is to show "Get directions", search nearby and Save to my maps on a marker..
Thanks,
<< >>
|
|
|
|
|
I have the following code in my global.asax file. The reasons I create a page object and pass it is because my error reporting code requires a page object which it then uses parts of to build the report. Now obviously this method provides no page details. Is it possible to get the last page viewed and send that instead of a NULL page.
Otherwise is it possible to send some form of machine specific information via my error report. The error report code lies in a seperate vb file.
Thanks in advance
' Code that runs when an unhandled error occurs<br />
Dim ex As Exception = Server.GetLastError<br />
Dim page As Page = Nothing<br />
<br />
Emailer.ErrorEmail(ex, page)<br />
<br />
Server.Transfer("~/Error_Page.aspx", False)
|
|
|
|
|
HI, I used timer control in my page.
each 10 second i show one of some pics in my page by timer control.
problem is here, when i am scrolling in my page, when pic change, page scroll to top of page (my images change in top of page).
any one has Idea about it?
|
|
|
|
|
I'd like to use "smart client" for listing what software someone who visits my website uses.
For example, if you visit my homepage, my program will run to check your software for security.
and then my program compare your software information and my DB that has some information.
If you have software which has security problem, my program will earn you.
A problem is CAS.
I've searched many information about CAS over the internet.
but I can't fix it.
If you know sites which has information of CAS, plz tell me
have a good day!!
Nothing!! But gonzo!!
|
|
|
|
|
Real Coder wrote: I'd like to use "smart client" for listing what software someone who visits my website uses.
Smart Client Software Factory [^] or SmartClient, a commercial Ajax framework [^]??
Real Coder wrote: if you visit my homepage, my program will run to check your software for security.
Are you trying to get the information of client machine from your website?? Actually, it won't work unless those users added your website in the trust list....
Real Coder wrote: A problem is CAS.
No idea about what CAS is...
|
|
|
|
|
Hi,
The identity field of one of my SQL DB tables is a bigint, using ADODB to query the DB based on this bigint works fine in my XP machine, but gives me a "Bad variable type" error when I use my app in a W2000 machine.
The W2000 machine has every service pack issued by MS, what could be the problem?
Thank you!
|
|
|
|
|
Where do you get this error? in code or stored procedure?
Can you show us your ADODB query?? Why are you using ADODB instead of ADO.NET??
Are you using Authorization Manager in your project??
|
|
|
|
|
Hi Michael,
1.The error is raised when I call a stored procedure.
2.when I started this project, ADODB is all I knew . By the time I discovered ADO.NET I already had over 100 rutines written with ADODB. I Will eventually update the code.
Here is the Code:
Public Function Get_TransDetails(ByVal iTransId As Long, ByRef TransData As String) As System.Text.StringBuilder<br />
Dim Rs As New ADODB.Recordset()<br />
Dim Cmd As New ADODB.Command()<br />
Dim Str As New System.Text.StringBuilder()<br />
<br />
Try<br />
Verify_Connectivity()<br />
Cmd.ActiveConnection = Con<br />
Cmd.CommandType = ADODB.CommandTypeEnum.adCmdStoredProc<br />
Cmd.Parameters.Append(Cmd.CreateParameter("TransId", ADODB.DataTypeEnum.adBigInt, 1, , iTransId)) '<-the error happens here<br />
Cmd.Parameters.Append(Cmd.CreateParameter("TransData", ADODB.DataTypeEnum.adVarChar, 2, 60, TransData))<br />
Cmd.CommandText = "[QTransDetails]"<br />
Rs.CursorType = 0 : Rs.LockType = 1 : Rs = Cmd.Execute()<br />
While Not Rs.EOF<br />
Str.Append(CType(Rs.Fields(0).Value, String).Replace(Chr(13), "") & Chr(10))<br />
Rs.MoveNext()<br />
End While<br />
Rs.Close() : WagerData = Cmd.Parameters(1).Value<br />
Return Str<br />
Catch<br />
Handle_Error(Err, "Get_TransDetails")<br />
End Try<br />
End Function
Please forgive my lack of knowledge. I have no idea what Authorization Manager is?
Again, this codes does not generate any errors when run on my XP computer, but fails when excuted in a W2000 machine. Apparently it has something to do with the Long - BigInt data types
Thanks for you time and patience.
Best Regards,
Alex.
|
|
|
|
|
alexvw wrote: Cmd.Parameters.Append(Cmd.CreateParameter("TransId", ADODB.DataTypeEnum.adBigInt, 1, , iTransId)) '<-the error happens here
Here are some possibilites that I suggest you to try..
1. What about trying to convert the variable "iTransId" to double explicitly??
eg:
Cmd.Parameters.Append(Cmd.CreateParameter("TransId", ADODB.DataTypeEnum.adBigInt, 1, , CDbl(iTransId)))
or
Cmd.Parameters.Append(Cmd.CreateParameter("TransId", ADODB.DataTypeEnum.adBigInt, 1, , CLng(iTransId)))
2. Why don't you set nothing for size parameter?? What about if you set something??
e.g.
Cmd.Parameters.Append(Cmd.CreateParameter("TransId", ADODB.DataTypeEnum.adBigInt, 1, 20 , iTransId))
3. If The two possibilities above can't solve your problem, you should probably try to convert those ADODB code to ADO.NET...
hope it helps.. let me know the result after trying those possibilities...
|
|
|
|
|
Good morning Michael,
I tried the explicit conversions.
CType(iTransId, Long) = does not work.
CType(iTransId, Double) = does the trick!
Although it works, I think I will have re-write it into ADO.NET. I am just not sure what consequences I will face in the future if I keep it this way.
To work around the issue by treating a BIGINT as a Double Precesion number does not quite make me feel confident it won't eventually fail. Moreover, it raises questions about efficient data handling.
You asked about sizing the parameter; so far, in my lack of experience, I have only needed to size string-like parametes, apparently both ADODB and ADO.NET take good care of all other data types.
Well, Thank you very much for following up my request for help. Your tip did work!
Alex.
|
|
|
|
|
alexvw wrote: Although it works, I think I will have re-write it into ADO.NET.
Yeah. man.. you should ....
alexvw wrote: To work around the issue by treating a BIGINT as a Double Precesion number does not quite make me feel confident it won't eventually fail.
ya.. I'm not sure about this too... It might be a bug or something...
alexvw wrote: I have only needed to size string-like parametes, apparently both ADODB and ADO.NET take good care of all other data types.
Yes. I think so too.. but just in case.. this is also a possibility..
alexvw wrote: Thank you very much for following up my request for help. Your tip did work!
Your welcome.. Alex..
|
|
|
|
|
Hi.How we can show header in DataList.i had given the property showheader=true,in this DataList only one column that is repeated column(3).Like Datagrid is there any propery for adding the Header.
|
|
|
|
|
The DataList is a templated control. You need to define a header template[^] to be displayed.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
I have a datagrid that has a column of links and one of these
links is clicked, a new browser window pop up and shows the aspx specified in
the link.
Thnx in Advance
|
|
|
|
|
|
how i can add scroll bars to a grid view control
|
|
|
|
|
Put it in a div and set it up to have scroll bars.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
<asp:updatepanel id="up_gv_planSpareutilise" runat="server" updatemode="Always">
<contenttemplate>
<asp:gridview runat="server" id="gv_planSpareutilise" skinid="GridViewWithOutPaging"
="" showheader="false" showfooter="false" datasourceid="ods_planSpareutilise" autogeneratecolumns="False" datakeynames="WO_ID,PK_WO_SPARE_REQD" allowpaging="false" horizontalalign="Left">
<rowstyle cssclass="row">
<headerstyle>
<columns>
<asp:boundfield datafield="PROD_NAME" readonly="True" showheader="false">
<itemstyle horizontalalign="Left" verticalalign="Middle" wrap="False" cssclass="cls_rowstyle"
="" width="122px">
<asp:boundfield datafield="QTY" readonly="True" showheader="false">
<itemstyle horizontalalign="Right" verticalalign="Middle" wrap="False" cssclass="cls_rowstyle,pad_Right10"
="" width="35px">
<asp:boundfield datafield="EST_COST" readonly="True" showheader="false" dataformatstring="{0 .00}">
<itemstyle horizontalalign="Right" verticalalign="Middle" wrap="False" cssclass="cls_itemstyle"
="" width="101px">
<emptydatatemplate>
<asp:label id="lbl_noRecordplan" runat="server" meta:resourcekey="lbl_noRecordplan"
="" width="306px" font-size="13px">
<headerstyle horizontalalign="Center">
use a div with property as style="overflow:auto" or style="overflow-x:scroll;overflow-y:scroll;" and update panel inside it and its update mode="always" it will hold its position....any more help needed reply to pratik.vishwakarma@live.in
|
|
|
|
|
hi
i got all by datatables in dt can i assign it directly to crystal reports as me code follows like this:
Dim dt As DataTable
dt = trackFac.FullReportCR()
CrystalReportViewer1.ReportSource = dt
and i wrote this in Button click event
can anybody tell is this write
Regards
padma
|
|
|
|
|
dandamudi padma wrote: Dim dt As DataTable
dt = trackFac.FullReportCR()
CrystalReportViewer1.ReportSource = dt
I don't think this is right. ReportSource of the CRV object should be a ReportDocument Object and DataSource of the ReportDocument Object should be the DataTable .
Regards - J O H N -
|
|
|
|
|
Hi all,
I am asked this question in an Interview. Add the Cart Entry in the tempory Grid which has the buttons for edit/delete.If the user add the entry then you have to show the items in the added cart and if the user want to delete then that particular row has to deleted.
I have replied that, I wil store the entry in the Gridview, when the user click the add button then add that entry(row) in the View. If the user click the click the delete button i wll remove the particular row from Gridview.
But the interviewer told that not it is not that goood way. What I did wrong heere
Thanks
Dana
|
|
|
|