|
Dim Data As DropDownComboData = New DropDownComboData<br />
<br />
' use following codes to retrieve data when data request is invoked from client.<br />
Dim TopRows As Int32 = e.StartRow + e.RowCount<br />
<br />
Dim ds As DataSet = Data.Bank_Lookup(e.QueryText, TopRows)<br />
<br />
e.DataSource = ds
I have the following code which creates a DataSet using the arguments passed to it from a control's event. The code works fine but as a requirement of the control it also requires a Count passed to it. Originally I created a new stored procedure to get this but it would make more sense to pass this back with the resultset. This would mean one stored procedure to do it all. I have created the SP and it returns a resultset and now a second resultset which just includes the scalar count value.
What is the syntax to get this single value? Something like
<br />
Count = ds.Tables(1).Rows(0)
Is that correct??
|
|
|
|
|
i think this code might help you
<br />
object[] itemsInOneRow=ds.Tables[0].Rows[0].ItemArray;<br />
now again iterate through the itemsInOneRow it will give what you want
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Thanks that works great.
I only really needed this though
Dim ThanksfortheHelp As Integer = ds.Tables[0].Rows[0].ItemArray(0)
|
|
|
|
|
hi,
I am running a complicated page which is looping through all of the folders beneath a specified folder, then looping through all of the files within each folder. Then for each file, I am doing a check on the name (Format, length etc.) then if it is correct moving it to a different drive on a different server, creating the relevant folders to house the files, and again with the incorrect files. This all works fine but after exactly 1 hour, the page seems to time out and displays the "This page could not be found" error page.
I am assuming it is a timeout as it is always after an hour.
I have changed the httpRequest executionTimeout to be over 3 hours (as that's what i expect it to be at least, due to the No. of gigs being shifted by the app!).
The session state timeout is 480 Mins so that isn't the problem and everythings being done with server-side script (c#) so it shouldn't be client-side script timeout.
does anyone have any suggestions?
thank you
|
|
|
|
|
You need to check Trace of the aaplication that will give where is the error or problem you are facing do one thing
1) make a change in the web.config by modifying Trace Enable=true.
2) type the URL of your application then type trace.axd at the last it will give detail of your application
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i have 2 radio button,if i checked the one radio button means other radio button also automatically checked.how to clear this.
|
|
|
|
|
Give same Group name to both the radio buttons
radio button means only one can get selected among all same group buttons
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
In asp.net2,
AJAX is not working for dropdownlist_selecteditemIndex event in IE.
It is working fine in Mozilla firefox.
-- modified at 6:35 Friday 20th April, 2007
|
|
|
|
|
What do you mean by 'AJAX is not working' ??? There is no AJAX built into ASP.NET 2005, by default. Are you using ATLAS, or have you written your own AJAX code ? If your own code, have you written it so it can work with both ( the code is different )
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 m using following for dropdownlist:
<asp:UpdatePanel runat="server" ID="YourUpdatePanel">
<ContentTemplate>
Here is code for dropdownlist.....
</ContentTemplate>
</asp:UpdatePanel>
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="YourUpdatePanel">
<ContentTemplate>
Here is code for dropdownlist.....
</ContentTemplate>
</asp:UpdatePanel>
You need to check 'ignore HTML tags' for this to be visible.
OK, so you're using ATLAS. What is happening in IE ? Is your page making it's AJAX call ? Is anything being rendered ?
I don't use ATLAS, so odds are, I can't offer much help.
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 )
|
|
|
|
|
when i selects item in country dropdownlist.Its giving me javascript error as follows:
'event' is null or not an object.
|
|
|
|
|
Can we see the code for the whole thing. Dropdown list, update panel and dropdown event code?
|
|
|
|
|
SOunds like your code is out of whack somewhere - event in this case is the event object - it's used as a param to event handlers in FF, but not in IE (or the other way round - can never remember!).
Check your handlers...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Just check whether ScriptManager is there on the page, before any AJAX controls.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Yes ScriptManager is there.
It is working for local server.but not working for another server where i put this application.
Any idea....why it is so...
|
|
|
|
|
Hi Guys,
I want my images on the page to load after the contents of the page are loaded.I have about 10 images in my page which causes the delay to load my page.
If anyone has suggestions or coding please reply.
Thanks
jith
|
|
|
|
|
Before U start, please read about Buffer property of the
Response class.
<%response.Buffer=true%>
<html>
<body>
<%
Objects to be rendered first
%>
<%response.Flush%>
Images to be rendered last
</body>
</html>
Hope, this helps u.
Regards,
Arun Kumar.A
|
|
|
|
|
You may want to consider including your img tags with an empty src attribute in your initial HTML. You could then include a client script fragment to set the src after the page has loaded. For example:
<html>
<head>
<script language = "javascript" type = "text/javascript">
function LoadImages()
{
document.getElementById('myImage').src = 'http://www.server.com/image.jpg';
}
</script>
</head>
<body onload = "LoadImages(); return true;">
<!-- blah blah HTML -->
<img id = "myImage" src = "" alt = "" />
<!-- blah blah more HTML -->
</body>
</html>
Hope that helps.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
hi
i am sending HTML mail thorugh my applicaion and in that mail there is a button when user clicks that button it should update a row in my DB. is tere any idea how to do that .
K Dastgir
|
|
|
|
|
If you're sending HTML, and if the mail viewer allows it, then you can render a button and have it call a page. But, most people won't see it, obviously.
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 )
|
|
|
|
|
Well K,
what you could do is to send the user to one particular
page on your site after that click, and with that you
should pass the information that needs to be updated.
On that page you could retrieve the information sent by the
user and from there you can easily update your database
by a simple SQL query.
Hope this solves your problem
pIrus
Dreams in our eyes, We are aiming high
Sky is not the limit, When we spread wings and fly
Marketraise.com
|
|
|
|
|
i am doing it for example there is a page leave application , user fills and send it his boos thorugh an email, in email there are links accept and reject. On accept another ASP page opens and it updates the respstvie DB.
as far flow is concern it is oki but i dont want user to see the page.
K Dastgir
|
|
|
|
|
Ok that means you don't want the boss to view
the new page that opens after he accepts or rejects
an application. Right!
Not even a message page whether his action has updated the
database or not
pIrus
Dreams in our eyes, We are aiming high
Sky is not the limit, When we spread wings and fly
Marketraise.com
|
|
|
|
|
Yes ,management dont want that they go on any page and change things.
they want a link yes or no, if yes then update DB. we can show them a paage that changes made but they dont want to go on a page and click button there to update. what i am doing now in a test application i am semding a link ,on click it goes to a page where there is a button along with record entry .
my point is is there a way to update directly from email.
K Dastgir
|
|
|
|