|
You can use the IFrame
The Web Developer. Beirout-Lebanon
|
|
|
|
|
Make it a control, an ascx, which you can reuse.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi i have a tabcontrol ajax
and a linkbutton
my link button must creat a new tab on my tabcontrol
i have this code
but it has this error
first time that i click on this linkbutton it creates the tab but then when i click it makes an error
code:
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
Dim a As New AjaxControlToolkit.TabPanel()
a.HeaderText = "sfdasdfasd"
a.ID = a.GetHashCode().ToString()
Me.TabContainer1.Tabs.Add(a)
End Sub
error:
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index]
System.Web.UI.ControlCollection.get_Item(Int32 index) +2107838
AjaxControlToolkit.TabPanelCollection.get_Item(Int32 index) +44
AjaxControlToolkit.TabContainer.LoadClientState(String clientState) +251
AjaxControlToolkit.ScriptControlBase.LoadPostData(String postDataKey, NameValueCollection postCollection) +94
AjaxControlToolkit.TabContainer.LoadPostData(String postDataKey, NameValueCollection postCollection) +60
AjaxControlToolkit.ScriptControlBase.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +36
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +661
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194
Nika Asgari
|
|
|
|
|
I am using all the controls in the update panel including the iframe and ajaxToolkit:ModalPopupExtender. On button click i block the whole page using javascript and display ajaxToolkit:ModalPopupExtender.
Everything is doing fine. But the iframe which is in page inside update panel is not getting blocked. Instead it is overlapping the ajaxToolkit:ModalPopupExtender.
Did anybody know the solution.
VanithaVasu
|
|
|
|
|
hi vasu,
try giving the id of the frame and make it invisible in the javascript when u block the other details
T.Balaji
|
|
|
|
|
Hi.
Is there any difference between microsoft AJAX extension and system AJAX extension?
Is there these 2 versions? or both are same?
Best wishes
|
|
|
|
|
I didnt know there was a system ajax extension
How did you come across this?
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
I heard from an AJAX man.
Best wishes
|
|
|
|
|
Hi,
I have a grid view and in item template i have placed one Radio buton. Below the grid i have Edit and Delete button. On the click of these button i want to call java script validation, to check whether the any of the Radio button is selected or not.
I dont want sever validation.
Your reply with some valuable link or Code will be great help.
Thanks
Binod K.
(Miles to go before I sleep)
|
|
|
|
|
|
You can do one thing......
First run the code by just placing on Radio button in the GridView
In ouput (after pressing f5), If u have any rows then it shows rows along with Radio Button then see the source of the file
In that you will find the id of the Control like :
gv_ctl02_rdo
gv is Gridview ID , ctl02 is the default control name, rdo is my radio button id. this only example for you
once you get id from source then everything is over
you can just write a javascript block to find the id
Ex: document.getElementByID('gv_ctl02_rdo').cheked or not.....
Regards,
Shaik Haneef
|
|
|
|
|
Call your JavaScript function like below from your aspx page:
"JavaScript:Validate('<%= serverControlID.ClientID%>')"
Here, the Validate javascript function receives the Client Id of the server control & perform your required operation.
I hope, it will help you.
Jey
|
|
|
|
|
Hi there i am a newbie in VB .Net, I am getting this error on my Page_Load DataModule is not a member of 'System.Security.Principal.IPrincipal' and I do not have any roles yet on my application, just a simple class to populate a datagrid, is there a way i can turn this security off? what is wrong? i am using VS 2008 with v3.5sql server 2005. Please help
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Security
Imports System.Security.Principal
Imports System.Web
Imports System.Web.UI
Public Class User
Dim mDataPath As String
Public Shared DataModule As User
Function GetConnection() As SqlConnection
Return New SqlConnection("Server=GMPROD13\GMFE;Integrated Security=True;Database=GM_Escheatables")
End Function
'Public Overloads Function GetUsers() As DataSet
' Return Me.GetAllUsers("USER_EMPL_NO")
'End Function
Public Overloads Function GetAllUsers() As DataSet
Dim conn As SqlConnection = GetConnection()
Try
Dim cmd As New SqlCommand("Escheatables_GetAllUser", conn)
Dim ds As New DataSet
Dim adpt As New SqlDataAdapter(cmd)
Try
adpt.Fill(ds, "users")
Finally
adpt.Dispose()
End Try
Return ds
Finally
conn.Close()
conn.Dispose()
End Try
End Function
Public Sub New(ByVal sDatapath As String)
MyBase.new()
Me.mDataPath = sDatapath
User.DataModule = Me
End Sub
End Class
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections.Generic
Imports System.Security.Principal
Partial Class Escheatables_UserList
Inherits System.Web.UI.Page
Private dsUsers As DataSet
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
dsUsers = User.DataModule.GetAllUsers
Me.GridView1.DataSource = dsUsers
Me.GridView1.DataMember = "users"
'Me.GridView1.ReadOnly = True
Me.GridView1.DataBind()
End Sub
End Class
|
|
|
|
|
Hi ..
I want to use Response & Server object in my class file. Somewat like this ..
String path = Server.MapPath(strRequest);
Response.Clear();
Bt it says objects Response & Server does not exist in this context. How to use this objects in class file??
|
|
|
|
|
Use HttpContext.Current.Response . Always check HttpContext.Current for NULL.
|
|
|
|
|
You need to inherit the System.Web.UI.Page Class
Ex:
Public Class MyClassName : System.Web.UI.Page
---Your code
End Class
|
|
|
|
|
Shaik Haneef wrote: You need to inherit the System.Web.UI.Page Class
This is potentially one way to achive the desired result, but you by no means need to inherit from this class to obtain a reference to the current Http Context.
|
|
|
|
|
Dear Friends,
Thanks for the different type of helps in time to time matter,
Currently i am working on an project in which i am storing different type of extension document in sql database at column with data type "image" all working properly. but today i found an bug in it that if i am trying to open any html file it is open in same browser where my web applcation is running......
Is it possible to open that file to different browser?
Please help me regard this.
Thanks in advanced.
My code to open the stored doc is as beow
Code: C#
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=<filename>" + <file extention="">);
Response.ContentType = "application/octet-stream";
Response.BinaryWrite(<byte array="" of="" the="" file="">);
Response.End();</byte></file></filename>
Sasmi
|
|
|
|
|
Put a link which has a target as _BLANK and it will open this page in a new window.
Sasmi_Office wrote: with data type "image
Future SQL server versions won't support this datatype. If possible change this to VarBinary(MAX)
|
|
|
|
|
I don't understand where to put the link which has a target as _BLANK, because the response object directly opening the page retrieved from the sql database as mention in my above code..
Sasmi
|
|
|
|
|
Hello,
Friends
I am using Mysql ( version 5.0) as database and C# for programming the page. I am unable to store the date value into the DB i tried with converting the datetime value to yyyy-MM-dd still i get 0000-00-00 in the database.
and at the time of getting back the data a error is thrown
" unable to convert mysql datetime to system datetime "
Please if anyone knows how to solve this issue please let me know
Thanks and Regards
Krazy programmer
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Use date format:
<br />
DATE_FORMAT(DateValue, '%yyyy/%mm/%dd')
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
thanks for the response i tried with it
Now it is storing NULL
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Try
convert(datetime, @date,103)
|
|
|
|
|
Does anybody guide me how to transfer data from DataTable to Excel
|
|
|
|