|
string ppath="'" + k + "'/sample/'" + m + ".jpg";
i have changed like this too but i am getting the same error
Haritha
|
|
|
|
|
string ppath=k + "/sample/" + m + "/.jpg";
DAsh04
|
|
|
|
|
i have tried like this it is not working
Haritha
|
|
|
|
|
string ppath=k + "//sample//" + m + "//.jpg";
DAsh04
|
|
|
|
|
I tried with this code its working fine
<br />
Session["impath"]="C:/FilesForXml/Photo/";<br />
string m="1";<br />
string k = Session["impath"].ToString();<br />
string path = k +"Sample/" + m + ".jpg";<br />
Are you trying to store the file ?
Debug your application and see what is the value of ppath .
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
string m=strPart ; (m="1" getting this)
string k ;
k=Convert.ToString(Session["impath"]); (k="pg/photo")
now i want to take string ppath as "pg/photo/sample(this is folder name)/1.jpg"
string ppath=" ' + k + ' "["sample"}" ' + m + ' ".jpg;
rhh
|
|
|
|
|
what is the different between session and context..in which all situation i can use context??
|
|
|
|
|
Both are used for accessing information between pages. But context provides access to the entire current context including request, object.
|
|
|
|
|
Hi
In asp.net page load i used one variable p that contains value as
string p="ls2";
now i want to get the "2" from ls2 into another variable
how to write code for this?
plz help me
thanks in advance
Haritha
|
|
|
|
|
is "2":
the third character in the string
the numeric part
the last character
everything that's not the first 2 characters
what would happen with an input such as x5 or r2d2?
Russ
|
|
|
|
|
String a= p.Substring(2,1)
will give "2"
store it in a variable
to convert into numeric
b= int.Parse(a);
vijaya
|
|
|
|
|
I have created procedures which is written in oracle.
How to use it in asp.net. In DAL neither create stored procedure nor exiting procedure is active.
How to call it? Is it possible to map to Gridview ? How to pass parameters to it?
Thank you
Vijaya
vijaya
|
|
|
|
|
.NET has dedicated classes for accessing Oracle databases, try googling for more info
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i have a datalist template hyperlink..if i click on tat i have to pass a query string to the response page...
the query string is a dynamic one...
for eg if im displaying a user name n password in the datalist i have to pass userid as querystring of the corresponding selected username..
how can i do tat??\plz help me out.
|
|
|
|
|
Hi,
I could not find any direct way to do this.
But u can use ItemDataBound event of datalist.
U need to put hyperlink in datalist ItemTemplate without setting its NavigateUrl property.
This property u can set at runtime while datalist it bound to the datasource.
Your hyperlink should be like following.
<asp:HyperLink ID="HyperLink1" runat="server"></asp:HyperLink>
I have put one label control which will have the value which we want make querystring.
I have set its visible property = false;
<asp:Label ID="lblusernamehidden" runat="server" Text='<%# Eval("username") %>' Visible="false"></asp:Label>
now I am setting hyperlink's navigateurl property in ItemDataBound event of datalist.
protected void dlst_ItemDataBound ( object sender, DataListItemEventArgs e )
{
HyperLink hl = ( HyperLink )e.Item.FindControl( "HyperLink1" );
Label lbl = ( Label )e.Item.FindControl( "lblusernamehidden" );
if ( hl != null && lbl != null )
{
hl.NavigateUrl = "~/TargetPage.aspx?username=" + lbl.Text;
}
}
this way you can get querystring dynamically in hyperlink.
also set Datalist's OnItemDataBound property to "dlst_ItemDataBound".
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
thank you...its working.....
|
|
|
|
|
in my gridview i have a textbox in footer . I want to validate the textbox for required field through javascripting since i donot want to use required field validator .Please give me the codings .
i can come inside the function but could not get textbox value.?????
i had like this.
function checkformtype()
{
alert();
var formtype=document.getElementById("txtFormType1").value;
alert(formtype);
if (formtype=="")
{
document.getElementById("Lblrequiredformtype").innerText ="Please enter the form type ";
alert( document.getElementById("Lblrequiredformtype").innerText);
return false;
}
return true;
}
|
|
|
|
|
have you checked the actual output name in the page source, you may find it is something like "Gridview1$txtFormType1"
Russ
|
|
|
|
|
Hi..
How can i get form id of form from which request is sent? Actually I have menu file which is created in javascript and I want to redirect to the home page of second application. I m calling the PostPage function on click of that menu. But this menu can be clicked from any form of the 1st application.
So please tel me how can i do this task?
function PostPage()
{
document.form1.action = "http://Ip-address/issuetracker/";
document.form1.method = "POST";
document.form1.submit();
return
}
Gurudatta B. Shelke
|
|
|
|
|
rather than form ID use forms[0] like this
document.forms[0].action =".."
Nobody is perfect i'm Nobody
|
|
|
|
|
Hi All,
Whenever we click on a button(ex:- Save button) the whole page is get loaded again in ASP.NET with c#
My second prolbelm is :-
How to save the text or data from a textbox of ASP.NET form into a MS-Word file
Plz give me the appropriate solutions
Thnx in advance
|
|
|
|
|
The Knowledge wrote: Whenever we click on a button(ex:- Save button) the whole page is get loaded again in ASP.NET with c#
That is how it is working. It will postback the data. If you are doing anything in pageload and you don't want to execute that when page is postingaback, write that in
!isPostBack<br />
<br />
<code>if ( !isPostBack )
{
}
</code>
|
|
|
|
|
U can use following code block to creat the output in word file.where u'll need to use the name of control in place of CTRL below, which have data to send to output file.
Response.Clear()
Response.AddHeader("content-disposition", "attachment;filename=FileName.doc")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Buffer = True
Response.ContentType = "application/vnd.word"
Me.EnableViewState = False
Dim oStringWrtr As New System.IO.StringWriter
Dim oHTMLTxtWrtr As New System.Web.UI.HtmlTextWriter(oStringWrtr)
CTRL.RenderControl(oHTMLTxtWrtr)
Response.Write(oStringWrtr.ToString())
Response.End()
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
You want to create a Word file on the server or the client ?
The Knowledge wrote: Whenever we click on a button(ex:- Save button) the whole page is get loaded again in ASP.NET with c#
I recommend buying a book on ASP.NET and working through it, you obviously have no idea how it works.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Form A displays qty and other details, allows user to purchase item by entering required qty.
If Form A is used by user, and for the first user it display 500 and he enters the qty he wants to purchase is 100, Form A should display for the second user with qty 400 even though qty is not posted to database.
Thank you
kvijaya@jyothy.com
vijaya
|
|
|
|