|
Christian Graus wrote: But, I doubt it.
Me also. But what to do since question is not clear.
|
|
|
|
|
Ask questions to make it clear ?
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 Nehrubabu
if u want to crate a folder at run time
use this code
If Not Directory.Exists(Server.MapPath(Request.ApplicationPath) & "/foldername") Then
Directory.CreateDirectory(Server.MapPath(Request.ApplicationPath) & "/foldername")
End If
finalstring = FormatReportString()
srw = File.CreateText(Server.MapPath(Request.ApplicationPath) & "/foldername/" & fileName)
srw.Write(finalstring)
srw.Close()
Response.Redirect("../../../foldername/" & fileName)
|
|
|
|
|
Hi all,
This is Jats.
I have a requirement in my project where i have to host videos to net from a server.
Some thing similar to Youtube.
Select a particular video and view it.
I have no idea of where to start, can any body assist me in it.
As it is for a company use i cant use and external softwares(Freewares are ok).
Please help.......
Thank you.......
Jats
|
|
|
|
|
Hi,
I am using VB.NET 1.1.
I have the following in my ASPX page:
<asp:RadioButtonList ID="rblSearch" Runat="server">
<asp:ListItem Value="ISBN">ISBN</asp:ListItem>
<asp:ListItem Value="Title">Title</asp:ListItem>
<asp:ListItem Value="Author">Author</asp:ListItem>
<asp:ListItem Value="Keyword">Keyword</asp:ListItem>
</asp:RadioButtonList>
I have a querystring value called ISBN, anf it will look something like this:
http://localhost/MySite/Search.aspx?ISBN=True or
http://localhost/MySite/Search.aspx?ISBN=False
I need to go and select the list item if it is true, I'm not sure how to set it:
If Request.Params("ISBN") <> Nothing Then
' Set it here
End If
Please can someone help me??
Regards
ma se
|
|
|
|
|
In code behand
Bind the data to RadioButtonList & specify value ,display member
|
|
|
|
|
Your not making sense. I get the value from a query string parameter, either true or false. Look at my code that I gavae above.
|
|
|
|
|
I got my solution:
If Request.Params("ISBN") <> Nothing Then
If CBool(Request.Params("ISBN")) Then
rblSearch.Items.FindByText("ISBN").Selected = True
End If
End If
|
|
|
|
|
Dear all,
I am using asp.net ,C# (VIsual studio 2005).
let me explain the scenario. i am fetching imageurl of picture and would like to display the correspoing picture in gridview. my problem the recordset which i fetch can have four, five , or six ,or any number of column. out of them one column should be image. i seen static column gridview displaying images but not clear how to set dynamically.
please guide me .
thanks
imaran khan
|
|
|
|
|
|
i have the following data in the table
1/20/2006
1/31/2006
2/1/2006
2/2/2006
3/28/2006
3/12/2006
7/26/2007
1/20/2006
i have a date query.
query = "select date1 from emptimepolicies where date1> 2\1\2006
it shows the following data
1/20/2006
1/31/2006
2/1/2006
2/2/2006
3/28/2006
3/12/2006
7/26/2007
1/20/2006
Please help to rectify the query
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Looks to me like it's working, but that your machine is showing dates in MM/DD format and your SQL Server is expecting DD/MM format.
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 )
|
|
|
|
|
christian , my machine has a date format of mm/dd/yyyy
and my database is ms-access
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Well, Access knows how to count and compare dates, so it's plain what is going wrong. As someone else said, if you always pass dates using date types instead of strings, you will solve the problem.
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 )
|
|
|
|
|
Thanks you for ur kind atention chistian , problem is solved.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
You may check your regional settings.
But this is not an ultimate solution because you'll never know how it is defined in the user computer. So try this:
Dim d as date = "2\1\2006"
query = "select date1 from emptimepolicies where date1>" & CDate((CLng(d))
I hope it will help.
Shay Noy
|
|
|
|
|
can i convert the value of type long to date?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Yes,
In fact date is a long formatted number.
If you will try to write the fololowing code:
Dim d as date ="31/12/1899"
msgbox(Clng(d))
You will get 1
"31/12/1899" is the first date from it we start to count.
To answer to your question, try this:
'This is in VB6, if you need it in VB.NET, tell me
Dim d As Date
d = "31/12/1899"
Label1.Caption = CDate(CLng(d))
Label1.caption result will be "31/12/1899".
I hope it helps you.
Shay Noy
|
|
|
|
|
try this in your query
"SELECT date1 FROM emptimepolicies where month(date1)>2 and day(date1)>1 and year(date1)>2006"
i try that in my query analyzer and its works fine
Regards,
Tomi
|
|
|
|
|
Woh .it is working very fine.
Thanks a lot
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Anytime Sonia..
Glad can solve u'r problem
Kind Regards,
Tomi
|
|
|
|
|
I have 2 asp.net files: default.aspx.cs and test.aspx.cs
How can I call methods from test.aspx.cs from default.aspx.cs?
I can't seem to call methods from a different file unless it's in my appcode folder.
/\ |_ E X E GG
|
|
|
|
|
i think function calling is posible if class is placed in appcode folder.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Try this code
Use this line where u want to call Function
In .aspx page
<%@ PreviousPageType VirtualPath="~/index.aspx" %>
in .aspx.cs
this.PreviousPage.Login();
//Make sure your method is public
Best Regard
Pathan
-- modified at 0:54 Wednesday 1st August, 2007
---------------------------------------------------
|
|
|
|
|
imran i tried ur code
i got the following exceptions
Object reference not set to an instance of an object.
at the following line
this.PreviousPage.Login();
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|