|
hi Paddy,
Thanks but its only a bit of html (the page's footer) which I'd like to be easily update-able by changing the code in only one place rather than on every page...
Is this what a web user control achieves?
many thanks,
gerry
|
|
|
|
|
Hi,
I have created html page in asp.net. There I am getting imagefile paths in textarea. I have to create runtime thumbnail images with checkboxes by using these paths.
Thanks
-- modified at 2:46 Monday 23rd July, 2007
|
|
|
|
|
i was trying a query.Like in the table there an attribute for date.i have to select all
those dates which lies for the particular month.example from the following dates
4/20/2007
1/31/2006
2/5/2006
2/24/2006
3/28/2006
i have to select the february month dates.so the dates for feb month should be following
1/31/2006
2/5/2006
2/24/2006
3/28/2006
1/31/2006 and 3/28/2006 , was included because it's next and previous respectively , does
not complete the month
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Hi Sonia Gupta,
i m not getting ur Q...
& please post the Query in which ur getting problem so that we can give u proper soln...
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
i have to select those dates which lies in february month.
I have done till here.In the array collection , i am storing these february month dates, then i am sorting it in ascending order.
Now i am finding that initial date is not 1st feb , but it is 8th feb.
now in this case i want to include
1/31/2006 so as to compensate the missing initial seven days.
i want to implement this problem.
Please help.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Pls explain clearly what is your problem?
SSK.
|
|
|
|
|
Refer this one]
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
if you are saying that you want to select date of the month then use datepart funtion ie datepart (dd, filed from where date comes ).
hope this will solve your problem
imaran khan
|
|
|
|
|
sir , which class datepart function comes under?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
its an sql fuction , you can use in query. you can test as
select datepart(dd,getdate())
hope this will clear your doubt.
imaran khan
|
|
|
|
|
if ur field in the table is of type date..
just do order by with that field
it will order by datewise...
by the way DATEPART function works like
DATEPART(month, GETDATE())
it will give u current month in numeric (7)
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
thanks , i am facing one more problem regarding the two dimensioal array.
to implement this i am using the following code.
Dim datearray(0, 1) As String
Dim counter As Integer = 0
While (objDR.Read)
datearray(counter, 0) = objDR.Item("wef").ToString
datearray(counter, 1) = objDR.Item("weeklyOff").ToString
counter += 1
ReDim Preserve datecounter(counter, 0)
ReDim Preserve datecounter(counter, 1)
End While
is there any problem in the code.
the problem i am facing is .. the array goes out of control.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
<asp:gridview id="grd_details" runat="server" selectedrowstyle-backcolor="Blue" allowsorting="true" onsorting="grd_details_onsorting" autogeneratecolumns="false">
<columns>
<asp:boundfield datafield="au_id" headertext="authorid" sortexpression="au_id">
<asp:boundfield datafield="au_lname" headertext="first name" sortexpression="au_lname">
<asp:boundfield datafield="au_fname" headertext="lastname" sortexpression="au_fname">
<asp:buttonfield buttontype="Button" text="select">
<asp:templatefield>
<selectedrowstyle backcolor="Blue">
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Integrated Security=SSPI;Initial Catalog=pubs;server=IBM-9D721EFE7F7");
SqlDataAdapter da=new SqlDataAdapter("select au_id,au_lname,au_fname from authors",con);
DataSet ds=new DataSet();
da.Fill(ds);
grd_details.DataSource=ds;
grd_details.DataBind();
}
protected void grd_details_onsorting(object sender, System.Web.UI.WebControls.GridView e)
{
grd_details.Sorting = e.SortExpression;
}
}
in this code how to insert the delegate for onsort command.can any body tell me
|
|
|
|
|
Have you tried MSDN ?
I assume this is not production code, but a basic test of something ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hi, I need to create a folder on the server and upload the file to that new folder. The foldername is given by the user.
The problem is that it creates the foler, but don't upload the file and gives an exception. Here is the code:
string username = Membership.GetUser().UserName.ToString();<br />
string path = @"E:\asem\Visual Studio 2005\WebSites\Project\Files\" + username;<br />
try <br />
{<br />
if (Directory.Exists(path)) <br />
{<br />
}<br />
else<br />
{ <br />
DirectoryInfo di = Directory.CreateDirectory(path);<br />
} <br />
String filePath = path + "\\" + pdfUpload.FileName;<br />
pdfUpload.SaveAs(MapPath(filePath));<br />
Label1.Text = "File uploaded successfully";<br />
<br />
catch (Exception x) <br />
{<br />
Label1.Text = x.Message;<br />
} <br />
It gives me this exception:
x = {"'E:\\asem\\Visual Studio 2005\\WebSites\\Project\\Files\\erbol123\\bank_statment.jpg' is not a valid virtual path."}
thanx!
|
|
|
|
|
try using "Request.PhysicalApplicationPath"
dont do
pdfUpload.SaveAs(MapPath(filePath))
directly give pdfUpload.SaveAs(Request.PhysicalApplicationPath + "\\" + pdfUpload.FileName);
try using this..
hope it will work....
even i was getting the same problem i did this, & is working fine now.....
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
thanx, but it seems that it doesn't create a folder, so it gives the next exception"
x = {"Could not find a part of the path ...."}
|
|
|
|
|
I've got you thanx!!!
I created the folder first and then used Request.PhysicalApplicationPath
Thank you
|
|
|
|
|
Hi!
Long time since I posted here...
I created a typed dataset using the wizard by adding a Dataset to the project.
I have a very variable menu(for a web page) structure that is stored in a database(SQL2K5X).
I need to be able to have the menu items stored as an xml file that the menu control will read from and I don't know how to do that. I tried several things but... I'm here
So how do I dynamically manage my menu from a database?
Thank you for your help, sincerely,:->
Antoine
|
|
|
|
|
I hosted one page and also bin directory,web.config and precompiledapp.config while deploying will get these files.i just add only two controls in that page one HTML Text box and one Asp Label Control but when i open that page i could see only the Html Text box, Label is not shown in that page.But when i check the source of this page i could see the Label and its Text.what is the problem is there anything should i host.
|
|
|
|
|
Hi,
i have three asp.net applications in different domains say www.domain1.com and www.domain2.com and www.domain3.aspx.
Two pages are there in each applications .First LogIn.aspx and other MyPage.aspx. In mypage of www.domain1.com, i have a link to mypage.aspx of www.domain2.aspx and www.domain3.aspx. now my requiremets are:
1> when user login in www.domain1.aspx, and clicks any link on MyPage.aspx, say he clicks www.domain2.aspx, then he shud be redirected to Mypage.aspx of www.domain2.aspx. it shud not show him its login page .same for www.domain3.aspx.i have to use forms authentication.
Its basicly a single sign on.
The problem i am facing excatly is that, i acieved this using same machinekey,validationkey for all in web.config like
<machinekey validationkey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902"
="" decryptionkey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC" validation="SHA1">
But i need that the validation keys should be different for different applicatons in there web.config ,and when i click the links from www.domain1.aspx then anyways i save it in the formauthetication cookie and also i want to add some more information in formauthentication cookie.
Please help me in this. Its urgent.Any other way to get this functionality achieved ia also welcome
thx
|
|
|
|
|
hello friends
i want to send a mail in asp.net but i cant.
althought i could send mail in localhost but i dont know the smtpserver value for set.
if every body know the smtpserver value ,please say me.
thank you(msma)
oh my god
im alone and alone
and nobody close me
no body know me
nobosy love me
nobody like me
but i have u
you like me
u love me
u power me
and u are all of my things...
thank u
|
|
|
|
|
Wow - a sig that's longer than your question, and is a poem in txt speak.
If you don't know the SMTP server, you can't send mail, simple as that. Check your mail program to find out what your smtp server is.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
thank you Christian
but can you say me more details ...
where can i find this value?
in the control panle of my site or else...
please say me in more details
oh my god
im alone and alone
and nobody close me
no body know me
nobosy love me
nobody like me
but i have u
you like me
u love me
u power me
and u are all of my things...
thank u
|
|
|
|
|
Dude, your sig is kind of annoying. Not because of it's contents, but because it takes up so much space.
Honestly, I can't say in great detail without knowing what your mail program is.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|