|
Hi.
i would like to move down vertical scroll bar automatically to show last inserted row in gridview after cliking "Submit" button.
Could any body help me please?
thanks in advance!
|
|
|
|
|
I think you can do it , by set the Div ScrollTop Property
|
|
|
|
|
thanks for your answer.
could you give a little more of using this,pls?
thanks and regards,
|
|
|
|
|
Check this site. Probably it may help you.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hello All,
Can anybody suggest how to reproduce thread switching scenario in ASP.Net. I would like to test whether during thread switching thread's local storage info is migrated to new thread properly or not (mainly current principal info).
http://piers7.blogspot.com/2005/11/threadstatic-callcontext-and_02.html[^] this article explains how to reproduce but i am unable to reproduce. I am trying with ASP.Net Development server (VS2005).
Thanks
|
|
|
|
|
I have A query
Insert Into DEPARTMENT_MASTER(DPM_ID,DPM_CM_COMP_ID,DPM_BM_ID,DPM_NAME)
values(-2147483614,'2','2','abc,xyz')
//// string StrQue Contains Above Query////////////////////////
string StrQue=Query.ToUpper();
String[] Arr1 = Regex.Split(StrQue.Trim(), "INTO");
String[] Arr2 = Arr1[1].ToString().Split('(');
String[] Arr3 = Arr2[1].ToString().Split(')');
String[] Arr4 = Arr2[2].ToString().Split(')');
String[] ArrCol = Arr3[0].ToString().Split(',');
String[] ArrVal = Arr4[0].Split(',');
In ArrCol I am Getting Correct 4 columns but
In ArrVal I am Getting 5 Values because it is Spliting coma(,) from last
value('abc,xyz') Thats whay I am getting 5 Values but I want 4 Values.
Can anyone give me solution. Its urgent
Thanks,
|
|
|
|
|
ArifShaikh wrote: Its urgent
Of course it is.
The solution is to call ToString(), apparently. This has nothign to do with ASP.NET, and I mean, absolutely zero.
Overall, it looks to me like the solution is to use regex to find what you want to in these strings. This code is very fragile IMO.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello,
i am new in ASP.net and i have a problem.(i can't read the value of the session in my class.cs)
do i miss something or ....
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
Yes, you missed that the session object is contained in the page class. Your classes shouldn't be tied to the session anyhow, but if they must be, you need to pass the session object through to them. It's really this.Session["key"]
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
use the below code to acces the session in the class
System.Web.HttpContext.Current.Session["key"]
Cheers!!
Brij
|
|
|
|
|
You can access the session variables in the current context using HttpContext.Current.Session .
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hello i am using ajaxToolkit:ModalPopupExtender in my site to display some detail its working very well on my local pc(localhost) but when i uploaded the site on server...its throwing javascript error ajaxControlToolkit is undefined and modelpopupextender is not getting displayed..i am trying to solve it from yesterday but the problem is still same.
I copied all the dll in bin folder and also included
<![CDATA[<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>]]> on top of page....and
<atlas:scriptmanager id="scriptmanager" runat="server" scriptmode="Release" scriptpath="./Script" enablepartialrendering="true" xmlns:atlas="#unknown">
<scripts>
<atlas:scriptreference assembly="AjaxControlToolkit" name="AjaxControlToolkit.Common.Common.js" />
<atlas:scriptreference name="AjaxControlToolkit.ModalPopup.ModalPopupBehavior.js" assembly="AjaxControlToolkit" />
</scripts>
</atlas:scriptmanager> in my master page
please tell me how to solve this problem...
|
|
|
|
|
Neetu Maheshwari wrote: ajaxControlToolkit is undefined
OK, so perhaps it needs to be in the GAC or something ? Have you tried just installing the MSI instead of copying the dlls ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
but how can i install MSI on server as i told you its working properly on localhost but throwing this error on server...so please give an alternate solution....
|
|
|
|
|
Neetu Maheshwari wrote: but how can i install MSI on server
It's a computer, isn't it ?
Neetu Maheshwari wrote: as i told you its working properly on localhost but throwing this error on server
Yes, so I assume that you installed the library on your local host, but you seem to say you only copied the files onto the server.
Neetu Maheshwari wrote: so please give an alternate solution....
Prayer ? Change of career ? Write your own AJAX code ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Prayer ? Change of career ? Write your own AJAX code ?
yeah i was expecting the same answer from you
Christian Graus wrote: Mr. Christian Graus
Thanxxxxxxxxxx
|
|
|
|
|
iam working on one web application i have this error when i go from one page to other
Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.
Parameter name: instance
plz give me solution for this why this is coming
iam using .net 3.5,ajax.
|
|
|
|
|
Probably because you're using a nested framework of libraries designed to help lazy people by generating all their javascript for them, so when something goes wrong, it's because you've used something in the wrong way, and it's a long way from obvious what it is that you've done wrong.
Most likely cause is an operator = is not defined, and so an object cannot be copied. But that's my C++ thinking, I have no idea why js would throw that error.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hai,
currently i m using asp.net with c# (.net 2005, 2.0 framework)
i have applied a stylesheet properties to all pages.
when user click the save button, i display a confirmation message box. but when that message box prompts and i click ok, the page font size, textbox size, menu size (menu control) and all the controls size getting big & Bold..
how to avoid this
help me - KARAN
|
|
|
|
|
|
here it changes the font sizes when i click the button and also a CHILD window popup'ing.....
|
|
|
|
|
Just guessing, have you enabled smart navigation in your page.
Try disabling it.
When you fail to plan, you are planning to fail.
|
|
|
|
|
It's plainly a bug in your css. So, you need to post your css if you can't work it out. I'd just cut the CSS file in half over and over until it stop happening and narrow down on what causes it that way.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yes I need css code.
like this code in ur code also poblem
a
{
color:pink;
}
a:hovel
{
color:red;
}
a:visited
{
color:yellow;
}
U can understand this code.
Normal hyperlink text color:pink
Mouse over hyperlink text color:red
after click hyperlink text color:yellow
so better to check once again ur css code properly and also HTML code.
Ananda
|
|
|
|
|
Hii..whenever i try to export the datagrid on my asp.net page to excel,
the excel sheet opens but with no data in it !
why is this so? am using visual studio 2005 and MS Office XP.
am terribly confused..can someone pls help me with this?..thanks in advance..
Microsoft.Office.Tools.Excel is what i have included..
here is my code..
Response.Clear();
string filename2 = TextBox4.Text;
Response.AddHeader("content-disposition", "attachment;filename=" + filename2 + ".xls");
Response.Charset = "";
Page.EnableViewState = false;
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter stringWriter = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmwrite = new HtmlTextWriter(stringWriter);
DataGrid2.RenderControl(htmwrite);
Response.Write(stringWriter.ToString());
Response.End();
|
|
|
|