|
actual my requirement is that iam having a form with 100 fileds to fill ..i kept the form in the panel so the scroll ber is comming ..now iam having a textbox outside the panel where the user enter the filed value and the field value comes in the panel form to the respective field..its working fine upto some values.the fields after the scroll ber is not visble to person what it was filled again panel have to scroll..is there is any method to scroll vartical scroll bar panel automatically down each time wen user enter the values
|
|
|
|
|
Hi,
have u set the height and width of the panel
|
|
|
|
|
You can set the scroll position of your DIV after the users enter the values.
document.getElementById("grdWithScroll").scrollTop = strPos;
|
|
|
|
|
sir will u plz tell where this is to implement and what is strpos
|
|
|
|
|
|
hi friends
I want to call .jsp files functions from asp.net
how can I do this
I need to create HessianProxyFactory for that
does any one knows how to do this
Thanking you,
Laxmikant
|
|
|
|
|
If the files reside on the same server or domain then yes.
Otherwise, you will not be able to do so.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
I've Two pages,One is HTML and Other One is ASPX page..When I'm Clicking Button on html Page it Redirect to aspx page..Here is the prblm..I want to see the HTML Page name in aspx page???
How Can I???
|
|
|
|
|
You would need to pass it on the URL
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 )
|
|
|
|
|
Vanamaindia wrote: How Can I???
You can get it by
string preURL=Request.UrlReferrer.ToString();
Best regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
i'm used Like This Response.Write(PreviousPage.ClientID)
But gives Object reference Notset bla bla...
|
|
|
|
|
Vanamaindia wrote: 'm used Like This Response.Write(PreviousPage.ClientID)
What do you want to get?
If you want previous page URL, use my first post code
please don't forget to vote on the post that helped you.
|
|
|
|
|
string preURL=Request.UrlReferrer.ToString();
It Gives Error Like Object reference not set to an instance of an object.
|
|
|
|
|
Try this.
HTML File
=========
<title>Untitled Page
Page_Load event of Default.aspx
===============================
Response.Write (Request.UrlReferrer.ToString ());
|
|
|
|
|
Vanamaindia wrote: string preURL=Request.UrlReferrer.ToString();
It Gives Error Like Object reference not set to an instance of an object.
You should check the Referrer is null before continuing. Pages that don't have referrer will throw this error. Do a null check before you access ToString()
|
|
|
|
|
Hi,
try this..
string url = Request.ServerVariables["HTTP_REFERER"];<br />
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
|
|
plz repeat the question clearly
|
|
|
|
|
It is Clear.....I can Search in Google..
|
|
|
|
|
hai,
my req is i need to add items from database into dropdownlist my code follows this way:
form id="form1" runat="server">
<asp:detailsview id="DetailsViewEnquiryEdit" runat="server" autogeneraterows="False"
="" datasourceid="ObjectDataSource1" height="50px" width="188px">
<fields>
<asp:boundfield datafield="EnquiryId" headertext="EnquiryId" sortexpression="EnquiryId">
<asp:boundfield datafield="EnquiryName" headertext="EnquiryName" sortexpression="EnquiryName">
<asp:boundfield datafield="EnquiryStatus" headertext="EnquiryStatus" sortexpression="EnquiryStatus">
<asp:boundfield datafield="EnquiryDesc" headertext="EnquiryDesc" sortexpression="EnquiryDesc">
<asp:boundfield datafield="SourceId" headertext="SourceId" sortexpression="SourceId">
<asp:boundfield datafield="CustomerId" headertext="CustomerId" sortexpression="CustomerId">
<asp:boundfield datafield="ServiceId" headertext="ServiceId" sortexpression="ServiceId">
<asp:boundfield datafield="CountryId" headertext="CountryId" sortexpression="CountryId">
<asp:templatefield headertext="CountryName">
<edititemtemplate>
<asp:dropdownlist id="DropDownList1" runat="server" datasourceid="SqlDataSource1"
="" datatextfield="CountryName" datavaluefield="CountryName" selectedvalue="<%# Bind("CountryName") %>">
<asp:sqldatasource id="SqlDataSource2" runat="server" connectionstring="<%$ ConnectionStrings:System.Data.SqlClient %>"
="" selectcommand="SELECT [CountryName] FROM [tb_country]">
<itemtemplate>
<asp:label id="Label1" runat="server" text="<%# Bind("CountryName") %>">
<footertemplate>
<asp:button id="Button1" runat="server" text="Save" onclick="Button1_Click">
<asp:button id="Button2" runat="server" text="Cancel" onclick="Button2_Click">
.
<asp:objectdatasource id="ObjectDataSource1" runat="server" oldvaluesparameterformatstring="original_{0}"
="" selectmethod="GetEnquiry" typename="gfinFacade.EnquiryFacade">
<selectparameters>
<asp:sessionparameter name="enqId" sessionfield="enqId" type="Int32">
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:gfinConnectionString %>"
="" selectcommand="SELECT [CountryName] FROM [tb_Country]">
but i am getting error like
'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
can anybodu tell how to solve this
padma
|
|
|
|
|
Hi,
check the items in the datasource before you execute,
it must have changed i believe
|
|
|
|
|
hai,
my req is i need to add items from database into dropdownlist my code follows this way:
form id="form1" runat="server">
<asp:detailsview id="DetailsViewEnquiryEdit" runat="server" autogeneraterows="False"
="" datasourceid="ObjectDataSource1" height="50px" width="188px">
<fields>
<asp:boundfield datafield="EnquiryId" headertext="EnquiryId" sortexpression="EnquiryId">
<asp:boundfield datafield="EnquiryName" headertext="EnquiryName" sortexpression="EnquiryName">
<asp:boundfield datafield="EnquiryStatus" headertext="EnquiryStatus" sortexpression="EnquiryStatus">
<asp:boundfield datafield="EnquiryDesc" headertext="EnquiryDesc" sortexpression="EnquiryDesc">
<asp:boundfield datafield="SourceId" headertext="SourceId" sortexpression="SourceId">
<asp:boundfield datafield="CustomerId" headertext="CustomerId" sortexpression="CustomerId">
<asp:boundfield datafield="ServiceId" headertext="ServiceId" sortexpression="ServiceId">
<asp:boundfield datafield="CountryId" headertext="CountryId" sortexpression="CountryId">
<asp:templatefield headertext="CountryName">
<edititemtemplate>
<asp:dropdownlist id="DropDownList1" runat="server" datasourceid="SqlDataSource1"
="" datatextfield="CountryName" datavaluefield="CountryName" selectedvalue="<%# Bind("CountryName") %>">
<asp:sqldatasource id="SqlDataSource2" runat="server" connectionstring="<%$ ConnectionStrings:System.Data.SqlClient %>"
="" selectcommand="SELECT [CountryName] FROM [tb_country]">
<itemtemplate>
<asp:label id="Label1" runat="server" text="<%# Bind("CountryName") %>">
<footertemplate>
<asp:button id="Button1" runat="server" text="Save" onclick="Button1_Click">
<asp:button id="Button2" runat="server" text="Cancel" onclick="Button2_Click">
.
<asp:objectdatasource id="ObjectDataSource1" runat="server" oldvaluesparameterformatstring="original_{0}"
="" selectmethod="GetEnquiry" typename="gfinFacade.EnquiryFacade">
<selectparameters>
<asp:sessionparameter name="enqId" sessionfield="enqId" type="Int32">
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:gfinConnectionString %>"
="" selectcommand="SELECT [CountryName] FROM [tb_Country]">
but i am getting error like
'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
can anybodu tell how to solve this
padma
|
|
|
|
|
hi all
gud morning.can anyone tell me how to export a crystal report to pdf format through c# coding(programatically)
pintoo
|
|
|
|
|
Dim oStream As New System.IO.MemoryStream
oStream = crEnquiryReport.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.BinaryWrite(oStream.ToArray())
Response.End()
|
|
|
|