AsyncFileUpload disappears when near by asp dropdownlist postbacks, both the controls are inside update panel
anbusenthil
Posts
-
AsyncFileUpload disappears -
Need to add where rownum between 0 and 0 + 6 -1 in a queryselect ROW_NUMBER() OVER (ORDER BY pid DESC) as RowNum, pid,grpname from (select distinct p.ParticipantId as pid,p.pname + ' (' + p.username + ' )' as grpname from TSParticipants as p inner join TSGroupParticipants as gr on p.ParticipantId=gr.ParticipantId where p.status=0) as grplist in the above query i have to add the the below where condition WHERE RowNum BETWEEN 0 AND 0 + 6 -1 where should i add this condition if add it its showing error: Msg 207, Level 16, State 1, Line 8 Invalid column name 'RowNum'. Msg 207, Level 16, State 1, Line 8 Invalid column name 'RowNum'. -------------------------------- select * from ( select *, row_number() over (unique_column_name order by asc) as rownum from emp ) as test where rownum between 0 and 0 + 6 -1 ----- this above query gives all the rows i need only unique rows
-
gridview with check box in iti hav a gridview with check box in it if i click the checkbox the value should be saved tanx
-
how to add coding to the click event of the pager control in gridviewhow to add coding to the click event of the pager control in gridview when i click the pager control i need an alert msg lik yes or no... if the user clicks yes only , the page should get to next page or it should stay in the same page tanx
-
Object reference not set to an instance of an object wen the cookie has no valueProtected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load con = New SqlConnection(ConfigurationManager.ConnectionStrings("ESCConnection").ConnectionString) If IsPostBack = False Then gridbind() End If 'for setting language preference If Request.Cookies("lang").Value Is Nothing Then------>(Object reference not set to an instance of an object wen the cookie has no value) Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") 'get the culture info to set the language rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) End If
-
not getting value in request.cookies("lang")not getting value in request.cookies("lang") Protected Sub LnkEng1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkEng1.Click Dim appCookie As New HttpCookie("lang") Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES") LoadStrings(Thread.CurrentThread.CurrentCulture) here i am getting value "es-ES" <-----------Response.Cookies("lang").Value = thread.CurrentThread.CurrentCulture.ToString appCookie.Expires = DateTime.MaxValue Response.Cookies.Add(appCookie) but in immediate window i am not getting the value for request.cookies("lang") pls help tanx
-
not getting the cookie value in next pagenot getting the cookie value in next page in my first page i am assigning a cookie a value Protected Sub LnkEng1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkEng1.Click Dim appCookie As New HttpCookie("lang") Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES") LoadStrings(Thread.CurrentThread.CurrentCulture) Response.Cookies("lang").Value = Thread.CurrentThread.CurrentCulture.ToString Response.Cookies.Add(appCookie) End Sub ------------------------------------------------------ but in next pg i am not getting the value of the cookie If Request.Cookies("lang").Value Is Nothing Then Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") 'get the culture info to set the language rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) ElseIf Request.Cookies("lang").Value = "es-ES" Then Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES") 'Request.Cookies("lang").Value = ci.ToString 'Thread.CurrentThread.CurrentCulture = Session("lang") rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture 'ci = Thread.CurrentThread.CurrentCul
-
how to store culture info into a cookiehow to store culture info into a cookie for eg Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") LoadStrings(Thread.CurrentThread.CurrentCulture) i want to store the above said culture info in cookie tanx
-
how to add all the control to Page.Form.Controlshow to add all the control to Page.Form.Controls and create object for it
-
how to make object for the class file andhow to make object for the class file and after use that object and call the function in the aspx pg which is inherited
-
how to inherit two class filehow to inherit two class file in one aspx pg(vb.net)
-
want to load controls in aspx pg from the class file which is inheritedi have a function loadstring in a class file like Public Sub LoadStrings(ByVal ci As CultureInfo) Dim HylEdit As New HyperLink Dim BtnClear As New Button Dim BtnSave As New Button Dim HylView As New HyperLink i hav inherited tis class to a aspx page where i hav those controls like HylEdit, BtnClear, BtnSave, HylView i want to load those controls wit values tat i hav assigned to it
-
not getting value in session("lang")session("lang") is nothing i hav assigned value in a button click lik session("lang") = thread.currentthread.culture
-
not getting value in session("lang")tis is my code in class file called langsetting here i am not getting value in session("lang") Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ci As CultureInfo Thread.CurrentThread.CurrentCulture = Session("lang") rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) End Sub
-
type 'System.StackOverflowException' error while writing class file which i am inheritingstill its not working
-
type 'System.StackOverflowException' error while writing class file which i am inheritingPublic Class languagesetting Inherits System.Web.UI.Page Private rm As ResourceManager Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load MyBase.OnLoad(e)------------>An unhandled exception of type 'System.StackOverflowException' occurred in System.Web.dll Dim ci As CultureInfo ci = Session("lang") rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) Thread.CurrentThread.CurrentCulture = ci LoadStrings(ci) End Sub
-
variable'HylEdit' is used before its assigned a value in class file in app_codeDim TDAwdDes As HtmlContainerControl---> these r html contrtols which is showing an error new cannot be used in class tat is declared must inherit Dim TDAwdpic As HtmlContainerControl TDAwd.InnerText = rm.GetString("Awd", ci) TDAwdDes.InnerText = rm.GetString("Awddes", ci)
-
To inherit a class filehow to inherit a class file in our aspx page to acess the functionality
-
variable'HylEdit' is used before its assigned a value in class file in app_codePrivate Sub LoadStrings(ByVal ci As CultureInfo) Dim HylEdit As HyperLink Dim BtnClear As Button Dim BtnSave As Button Dim HylView As HyperLink Dim TDAwd As HtmlContainerControl Dim TDAwdDes As HtmlContainerControl Dim TDAwdpic As HtmlContainerControl Dim TDFreq As HtmlContainerControl Dim TDAwdcri As HtmlContainerControl Dim TDAwdSt As HtmlContainerControl Dim TDAwdk As HtmlContainerControl errror here variable'HylEdit' is used before its assigned a value( its an class file inside the app_code) <--- HylEdit.Text = rm.GetString("Add", ci) BtnClear.Text = rm.GetString("Clear", ci) BtnSave.Text = rm.GetString("Save", ci) HylView.Text = rm.GetString("View", ci) TDAwd.InnerText = rm.GetString("Awd", ci) TDAwdDes.InnerText = rm.GetString("Awddes", ci) TDAwdpic.InnerText = rm.GetString("Awdpi", ci) TDFreq.InnerText = rm.GetString("Freq", ci) TDAwdcri.InnerText = rm.GetString("Awdcri", ci) TDAwdSt.InnerText = rm.GetString("AwdSt", ci) TDAwdk.InnerText = rm.GetString("Awdk", ci) End Sub
-
to check control is present which is not in the pagehow to check the control is their or not which is not in the page is it possible to check the control is present or not using codebehind