|
why u don't use google??
u don't have specific question, just general, what is HttpResponse and HttpRequest... and you want answer in detail!
Do you expect somebody to write several pages here about these two objects? Be more specific, what do you want to know, or what kind of problem you have.
google.com -> msdn HttpResponse -> the first page is http://msdn2.microsoft.com/en-us/library/system.web.httpresponse.aspx
google.com -> msdn HttpRequest -> the first page is http://msdn2.microsoft.com/en-us/library/system.web.httprequest.aspx
sufficient? not? then think about what information these pages are missing and put these words instead of "msdn" in google.
Remember google, is your best friend in a world of internet
Pilo
|
|
|
|
|
I want to develop applications using AJAX , for this do I need to load any software to develop AJAX based applications.
Sridhar B.
|
|
|
|
|
you have to add the dll of the ajax to use in ASP.Net , there are different ajax dll's availabel for use with .Net 1.1 and .Net 2.0 and hope fully u will get the tutorial from the google easily, if u don't let me know i will mail it to u.
|
|
|
|
|
Not at all - it's a common misconception made by complete muppets
Seriously though - look to www.w3schools.org - best resource I use
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
While calling webservice i am getting this error.
Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\fhqazh3m.0.cs' could not be found
error CS2008: No inputs specified
awaiting for your solution.
Sathiyaraj Ganesan
|
|
|
|
|
|
how to run a flash movie or .mpeg file in asp.net with vb.
|
|
|
|
|
Hi for a flash movie u can try this
OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
height="240" width="400"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>
PARAM NAME="_cx" VALUE="10583">
PARAM NAME="_cy" VALUE="6350">
PARAM NAME="FlashVars" VALUE="">
PARAM NAME="Movie" VALUE="filename.swf">
PARAM NAME="Src" VALUE="filename.swf">
PARAM NAME="WMode" VALUE="Window">
PARAM NAME="Play" VALUE="-1">
PARAM NAME="Loop" VALUE="-1">
PARAM NAME="Quality" VALUE="High">
PARAM NAME="SAlign" VALUE="">
PARAM NAME="Menu" VALUE="-1">
PARAM NAME="Base" VALUE="">
PARAM NAME="AllowScriptAccess" VALUE="">
PARAM NAME="Scale" VALUE="ShowAll">
PARAM NAME="DeviceFont" VALUE="0">
PARAM NAME="EmbedMovie" VALUE="0">
PARAM NAME="BGColor" VALUE="">
PARAM NAME="SWRemote" VALUE="">
PARAM NAME="MovieData" VALUE="">
PARAM NAME="SeamlessTabbing" VALUE="1">
PARAM NAME="Profile" VALUE="0">
PARAM NAME="ProfileAddress" VALUE="">
PARAM NAME="ProfilePort" VALUE="0">
embed
src="filename.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="400" height="240">
/OBJECT>
-- modified at 2:20 Wednesday 2nd August, 2006
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
hi
thanx for replying me.
actually i was trying this code.but its not running a flash file.
i show u how i try to to do it.i hav put the my .swf file in Imagess folder and trying to run it.but it shows me blank box.
<OBJECT<br />
classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://downloa<br />
d.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"WIDTH<br />
="550" HEIGHT="400" id="myMovieName" VIEWASTEXT><PARAM NAME=movie<br />
VALUE="~\Imagess\Soft-Orange.swf"> <PARAM NAME=quality VALUE=high> <PARAM<br />
NAME=bgcolor VALUE=#FFFFFF> <EMBED src="~\Imagess\Soft-Orange.swf" quality=high<br />
bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myMovieName" ALIGN=""<br />
TYPE="application/x-shockwave-flash"<br />
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED><br />
</OBJECT>
one thing which confused me that i don't hav flash software on my PC.
do i need to install it.if it is then how it will run on server.
thanx
-- modified at 2:43 Wednesday 2nd August, 2006
|
|
|
|
|
It is working.......
I think the file address is problum
OBJECT style="Z-INDEX: 101; LEFT: 136px; POSITION: absolute; TOP: 144px"
codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
height="240" width="400" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>
PARAM NAME="_cx" VALUE="10583">
PARAM NAME="_cy" VALUE="6350">
PARAM NAME="FlashVars" VALUE="">
PARAM NAME="Movie" VALUE="~\Imagess\Soft-Orange.swf">
PARAM NAME="Src" VALUE="~\Imagess\Soft-Orange.swf">
PARAM NAME="WMode" VALUE="Window">
PARAM NAME="Play" VALUE="-1">
PARAM NAME="Loop" VALUE="-1">
PARAM NAME="Quality" VALUE="High">
PARAM NAME="SAlign" VALUE="">
PARAM NAME="Menu" VALUE="-1">
PARAM NAME="Base" VALUE="">
PARAM NAME="AllowScriptAccess" VALUE="">
PARAM NAME="Scale" VALUE="ShowAll">
PARAM NAME="DeviceFont" VALUE="0">
PARAM NAME="EmbedMovie" VALUE="0">
PARAM NAME="BGColor" VALUE="">
PARAM NAME="SWRemote" VALUE="">
PARAM NAME="MovieData" VALUE="">
PARAM NAME="SeamlessTabbing" VALUE="1">
PARAM NAME="Profile" VALUE="0">
PARAM NAME="ProfileAddress" VALUE="">
PARAM NAME="ProfilePort" VALUE="0">
embed src="~\Imagess\Soft-Orange.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="400" height="240">
/embed>
/OBJECT>
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
i'm trying the same
but its not working it gives me the blank box.
path is correct
i hav intall the flash too but still not working
what is missing..
|
|
|
|
|
Try this
www.w3schools.com/flash/flash_inhtml.asp
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
hi thanx
its working now kirti
thanx for ur support
tc
|
|
|
|
|
By the way its much easier to just publish the file.
Then it creates an html page to view and copy the object tab out of it.
That only takes a second and you know it works.
Nick
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
I am inserrting a button in a table in the edititemtemplate of datagrid in the itemdatabound function dynamically. It is comming in the row successfully.But the problem is when i click on that button the row containing that button get eliminated from the datagrid.
Please help.
I am using the following code.
If (e.Item.ItemType = ListItemType.EditItem) Then<br />
Dim ph1 As PlaceHolder<br />
ph1 = e.Item.FindControl("ph1")<br />
<br />
Dim table As New Table<br />
table.ID = "table1"<br />
Dim tablerow(1) As TableRow<br />
Dim tablecell(1) As TableCell<br />
tablerow(0) = New TableRow<br />
tablecell(0) = New TableCell<br />
Dim b1 As New Button<br />
b1.ID = "save"<br />
b1.CommandName = "save"<br />
b1.Visible = True<br />
b1.Text = "Save"<br />
tablecell(0).Controls.Add(b1)<br />
tablerow(0).Controls.Add(tablecell(0))<br />
table.Controls.Add(tablerow(count))<br />
ph1.Controls.Add(table)<br />
endif
-- modified at 0:45 Wednesday 2nd August, 2006
|
|
|
|
|
you probably didn't set edititemindex property
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi , I Hope You fine.
I have some problem with this code for paging in asp.net
this bottom code work correctly without any error but when
I try to place separate code in .VB file then error is begin and occured .I want to separate this code and compiling .vb code using VBC.exe later .(bin/paging.dll)
when do it like me so you retrive only < Previous Page Next Page > in your web browser and you don't retrive list Of data in your web browser.
then i try this job and place <% dopagin() %> in paging.aspx file between ...
then i retrive list of data but when you click next you cannot navigate than more 1 page and when
you click previous page you get error "Index -5 is not non-negative and below total rows count"
how can i correct this code .somebody help me please
thank you very much
-------------Correct pagingDS.aspx Code begin ---------------------
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SQLClient" %>
Dim pagedData As New pagedDataSource
Sub Page_Load(byVal obj As Object, byVal e As EventArgs)
doPaging()
End Sub
Function getTheData() As DataTable
Dim DS As New DataSet()
Dim strConnect As New SQLConnection("server=localhost;uid=sa;pwd=relayer;Database=Northwind")
Dim objSQLAdapter As New SQLDataAdapter("SELECT companyName, contactName, contactTitle FROM customers", strConnect)
objSQLAdapter.Fill(DS, "customers")
Return DS.Tables("customers").Copy
End Function
Sub doPaging()
pagedData.DataSource = getTheData().DefaultView
pagedData.AllowPaging = True
pagedData.PageSize = 5
Try
pagedData.CurrentPageIndex = Int32.Parse(Request.QueryString("Page")).ToString()
Catch ex As Exception
pagedData.CurrentPageIndex = 0
End Try
btnPrev.Visible = ( NOT pagedData.IsFirstPage )
btnNext.Visible = ( NOT pagedData.IsLastPage )
pageNumber.Text = (pagedData.CurrentPageIndex + 1) & " of " & pagedData.PageCount
theDataList.DataSource = pagedData
theDataList.DataBind()
End Sub
Public Sub Prev_Click(ByVal obj As Object, ByVal e As EventArgs)
Response.Redirect(Request.CurrentExecutionFilePath & "?Page=" & (pagedData.CurrentPageIndex - 1))
End Sub
Public Sub Next_Click(ByVal obj As Object, ByVal e As EventArgs)
Response.Redirect(Request.CurrentExecutionFilePath & "?Page=" & (pagedData.CurrentPageIndex + 1))
End Sub
<title>Paging with ASP.NET - DataSet Example - VB.NET
<asp:label id="pageNumber" runat="server">
<asp:datalist id="theDataList" runat="server">
<itemtemplate>
Company Name: | <%# DataBinder.Eval(Container.DataItem, "companyName") %> | Contact Name: | <%# DataBinder.Eval(Container.DataItem, "contactName") %> | Contact Title: | <%# DataBinder.Eval(Container.DataItem, "contactTitle") %> |
<separatortemplate>
<asp:linkbutton id="btnPrev" text="<" onclick="Prev_Click" runat="server">
<asp:linkbutton id="btnNext" text=">" onclick="Next_Click" runat="server">
-------------------Paging.aspx End Code-----------------------------------------
***********************************************************************
---------------MY .ASPX file begin------------------------
<%@ Page src="paging.vb" language="vb" AutoEventWireup="false" Explicit="True" Inherits="farhad.myfunction2" ContentType="text/html" %>
<title>Paging with ASP.NET - DataSet Example - VB.NET
<asp:label id="pageNumber" runat="server">
<asp:datalist id="theDataList" runat="server">
<itemtemplate>
Company Name: | <%# DataBinder.Eval(Container.DataItem, "companyName") %> | Contact Name: | <%# DataBinder.Eval(Container.DataItem, "contactName") %> | Contact Title: | <%# DataBinder.Eval(Container.DataItem, "contactTitle") %> |
<separatortemplate>
<asp:linkbutton id="btnPrev" text="< Previous Page" onclick="Prev_Click" runat="server">
<asp:linkbutton id="btnNext" text="Next Page > " onclick="Next_Click" runat="server">
------------End My ASPX file ------------------------------
*************************************************
-------MY .VB Code AND CLASS begin--> Paging.vb --------------------
Imports System
Imports System.Data
Imports System.Data.SQLClient
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.Webcontrols
Imports System.Xml
namespace farhad
public class myfunction2 : Inherits Page
public pagedData As New pagedDataSource
public ds As New DataSet()
public strConnect As New SQLConnection("server=localhost;uid=sa;pwd=mysecretpass;Database=northwind")
public objSQLAdapter As New SQLDataAdapter("SELECT companyName, contactName, contactTitle FROM customers", strConnect)
public btnPrev AS LinkButton
public btnNext AS LinkButton
public pageNumber AS Label
public theDataList AS DataList
public Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
dopaging()
end sub
public function getTheData() As DataTable
objSQLAdapter.Fill(DS, "customers")
Return DS.Tables("customers").Copy
End function
public Sub doPaging()
pagedData.DataSource = getTheData().DefaultView
pagedData.AllowPaging = True
pagedData.PageSize = 5
Try
pagedData.CurrentPageIndex = Int32.Parse(Request.QueryString("Page")).ToString()
Catch ex As Exception
pagedData.CurrentPageIndex = 0
End Try
btnPrev.Visible = ( NOT pagedData.IsFirstPage )
btnNext.Visible = ( NOT pagedData.IsLastPage )
pageNumber.Text = (pagedData.CurrentPageIndex + 1) & " of " & pagedData.PageCount
theDataList.DataSource = pagedData
theDataList.DataBind()
End Sub
public Sub Prev_Click(ByVal obj As Object, ByVal e As EventArgs)
Response.Redirect(Request.CurrentExecutionFilePath & "?Page=" & (pagedData.CurrentPageIndex - 1))
End Sub
public Sub Next_Click(ByVal obj As Object, ByVal e As EventArgs)
Response.Redirect(Request.CurrentExecutionFilePath & "?Page=" & (pagedData.CurrentPageIndex + 1))
End Sub
end class
end namespace
----------------------End My CLASS IN paging.VB FILE----------
|
|
|
|
|
Hello Everyone,
I am trying to use DataBind.Eval(Container.DataItem, "column") in the code behind but when I type in Container.DataItem, it gives me an error. Does anyone know how to use this instead of using it in the aspx page? Thanks
Sincerely,
The Major Rager
|
|
|
|
|
You may only use the DataBind.Eval method in the DataBinding event handler in code-behind. Basically, it is used in the data binding expression right in the web page, I'm curious as to why you need to call it in code-behind.
|
|
|
|
|
hi
this is aavesh..
actually i was trying this code.but its not running a flash file.
i show u how i try to to do it.i hav put the my .swf file in Imagess folder and trying to run it.but it shows me blank box.
<object
classid="clsid27cdb6e-ae6d-11cf-96b8-444553540000"codebase="http: downloa
d.macromedia.com="" pub="" shockwave="" cabs="" flash="" swflash.cab#version="6,0,40,0"WIDTH
="550"" height="400" id="myMovieName" viewastext="">VALUE="~\Imagess\Soft-Orange.swf"> NAME=bgcolor VALUE=#FFFFFF> <embed src="~\Imagess\Soft-Orange.swf" quality="high
bgcolor=#FFFFFF" width="550" height="400" name="myMovieName" align=""
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
one thing which confused me that i don't hav flash software on my PC.
do i need to install it.if it is then how it will run on server.
thanx
|
|
|
|
|
TheMajorRager wrote: I am trying to use DataBind.Eval(Container.DataItem, "column")
well its DataBinder.Eval(<datasource>, <property>)
datasource = is the item being bound to
property = property name
This is done inside of event raised by a control.
If your doing this outside of an event, just grab the data from the data source and dont use the DataBinder
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
I have a panel in which I dynamically add text boxs and drop down list controls Panel1.Controls.Add(myTextBox); When I click a toolbar button the system removes all the controls from the panel. How do I maintain the state of the panel. Thanks.
|
|
|
|
|
The ViewState of the control does not persist its child controls, when you work with dynamic controls, you need to remember to readd the controls on postback, otherwise they get lost.
|
|
|
|
|
Hello,
Is it possible to call a webmethod of a webservice which takes parameters and get a response (string) from Java script?
Please let me know how to achieve if anyone knows it.
Is it possible to do that without using SOAP?
Appreciate your help.
- ashish
|
|
|
|
|
It is possible.
If your web service just takes/returns primitive parameters it is easy. If you get into passing objects around, you'll find it more difficult, requiring rather complex serialization.
This basic idea is available using AJAX. Though it's not limited to calling a webservice, you could just call a web page with a query string.
There are a number of AJAX toolkits out there that should make this reasonably painless for you. See Microsoft ATLAS ATLAS CTP
Or just look for AJAX frameworks. There are several.
Any of them will provide you with numerous examples of the serialization and usage of XmlHttpRequest in javascript.
-- modified at 15:39 Tuesday 1st August, 2006
|
|
|
|