|
hi,
How to Convert Sql server 2000 Data into Excel Format in ASP.NET
dfgdf dgdgdf tge tt rtertet tert
|
|
|
|
|
|
hi,
i have 2 drop down lists ,now the functionality i am looking for is
based on item selected from first dropdownlist ,item from second dropdown list should be populated
how can i achieve this functionality
Thanks
sri
|
|
|
|
|
|
How to use Webparts in an asp.net webapplication? Please answer
Sunil Nair
|
|
|
|
|
|
|
Is there a way to force a day render? I have 3 calendars on one page. I am using the .Visible feature to hide them until a date is selected ont he first, then second.
However depending on the first date selected I need to remove values from the second calendar and so on for the third.
How can i force a dayrender on a click event?
thanks
|
|
|
|
|
oskardiazdeleon wrote: How can i force a dayrender on a click event?
You don't have to do that. A DayRender event is raised for every day in every visible calendar, you just have to use it.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guff thanks for the response. I must not be explaining my challenge properly.
It seems to me that the calendars render on load right? I need to be able to control when the calendar renders
protected void slCalendar_DayRender(object sender, DayRenderEventArgs e)
{
//inside here is where i am setting all my dates to blackout based on a dataset
//i am bringing in from the database. My blackout list is created here.
}
This is where the date rendering is happening. What I would like to do is add to the blackout list for the second calendar. How do I dissable cells outside of the sl_Calendar_DayRender?
Thanks
|
|
|
|
|
oskardiazdeleon wrote: It seems to me that the calendars render on load right?
No, as everything else in the page, they render on render.
oskardiazdeleon wrote: I need to be able to control when the calendar renders
In that case you have to pull it out of the page and render it yourself.
oskardiazdeleon wrote: This is where the date rendering is happening. What I would like to do is add to the blackout list for the second calendar. How do I dissable cells outside of the sl_Calendar_DayRender?
You have the data before rendering, right? Why don't you create the list before the rendering, so that you can use it in the DayRender events.
---
single minded; short sighted; long gone;
|
|
|
|
|
My aspx page is trying to connect to a remote server with SQL Server 2000 installed on it, the ip of the server is 172.16.3.111 and the same is the instance of SQL Server, sql server is running in SQL Server Authentication mode, user id is "test" and password is "test123", name of database is myDB,the connection string which I am providing is as follows:
data source=172.16.3.111\172.16.3.111;user id=test;password=test123;initial catalog=myDB;"
But I am getting the following exception:
SQL Server does not exist or access denied.
Can u please tell whats the problem,is the connection string correct,the DBA has also registered me "test" as a user on the SQL server.One thing which I want to mention is that through enterprise manager I can connect and use sql server without any problems,also please note that in VS.NET when I try connecting using server explorer and test the connection than I connect successfully, than why is problem occuring in connecting throug aspx page.
Thanking You.
|
|
|
|
|
The problem might be because of the 2 ip addresses provided which both are the same.
so just provide one ip and then check.
|
|
|
|
|
as per your instructions I provided one ip address but still I am getting the same exception.
|
|
|
|
|
Hi in my dropdown list box i given number of years (1990 to 2225)...,
Same like another dropdown i given jan to dec...,
When the page load in that time it want to show the current year from that dropdown list...,
and similarly another drop down it want to show the current month
How to do that...,
Advance thanks,
Regards,
Magi
|
|
|
|
|
DateTime.Now to get the current year and month, then set them to be selected.
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 )
|
|
|
|
|
The DateTime.Now property will give u the answer just get the current year n month from that.
|
|
|
|
|
I am using the AJAX tab control on a page and it contains a DropDownList which is populated at runtime. When the page is refreshed at postback, the Dropdownlist is cleared. The Viewstate property is ON for DDL and the page. I am unable to understand why is this happening.
I have tried by putting the DDL outsite the Tabs with no luck.
Working under
Visual studio 2005
Microsoft windows Server2003
|
|
|
|
|
If you always set the datasource for the list, that will reset the selection.
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 )
|
|
|
|
|
i didnot set any datasource but i am populating it Item by Item just once when the page loads the first time.
It is supposed to retain its contents after each postback.and thats all what i want.
it shows everything as required the first time but nothing after a postback.
Following is the code segment, its written in PageLoad
If Page.IsPostBack = False Then
Dim Datareader As SqlDataReader
Datareader = GetServers(Session("CompanyId"))
Try
While Datareader.Read()
Dim text As String, value As String
value = Datareader("NetworkServerId")
If Not Datareader("ServerName") = "" Then
text = Datareader("ServerIP").ToString + " ( " + Datareader("ServerName").ToString + " )"
Else
text = Datareader("ServerIP").ToString
End If
Dim item As New ListItem(text, value)
DDL_Servers.Items.Add(item)
End While
Datareader.Close()
Catch ex As Exception
If Datareader IsNot Nothing Then
Datareader.Close()
End If
End Try
|
|
|
|
|
OK, that looks like it should work, obviously if you remove the check for postback, you will lose your selection.
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 )
|
|
|
|
|
its not the answer of my question, u know it.
i am expecting some help please try to solve my problem or better not bother to reply
|
|
|
|
|
I'm sorry, I didn't realise I had an obligation. It's obvious you've not provided enough info, so I was trying to figure out what the missing issue was, but if you're not happy with that, I'll make a mental note not to bother you in future.
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 )
|
|
|
|
|
What the f*** you think he is doing?
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
shahid_isb85 wrote: using the AJAX tab control
This[^] one?
shahid_isb85 wrote: I have tried by putting the DDL outsite the Tabs with no luck.
Which means what? You are still losing dropdownlist's items after postback?
shahid_isb85 wrote: I am unable to understand why is this happening.
Try to find out! If I was you, I'd set up some breakpoints - at least at page_load. You should see then WHAT is happening with your dropdown, and if you still don't understand WHY is it happening, no problem, post it here. Also you can try to comment out as much code as you can (both in codebehind and aspx page) to simplify the problem.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|