|
hi : Michael Sync
tank you .
your answer is with javaScript.
can you get me an example with C# or VB.NET ?
|
|
|
|
|
Have you read Bassam Saoud's post?? maybe.. this is what you want..
|
|
|
|
|
you want to post data from an ASP.NET application to a form in another ASP.NET application ?
Anyways to post data from a web form to another you can Add PostBackUrl="<YOUR_FORM_Path>" property to the submit button or use Server.Transfer and set the preserveForm parameter to True (for example Server.Transfer("<YOUR_FORM_Path>", True) )
Now to read post data you can use Request.Forms("<your_controlid>") to access value for a specific control
Hope this helps.
|
|
|
|
|
|
HttpWebRequest hReq = (HttpWebRequest)HttpWebRequest.Create(ReqUrl);
HttpWebResponse hResp = (HttpWebResponse)hReq.GetResponse();
Stream str = hResp.GetResponseStream();
Can you be more specific about your problem??????
|
|
|
|
|
|
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
|
|
|
|