|
i'm usin microsoft sql server 2005 express
|
|
|
|
|
|
that is my question man
|
|
|
|
|
EmZan wrote: that is my question man
The link that I have provided to you explained how to configure the SQL Server for remote connection
|
|
|
|
|
lol i thought it's a post not a link
thanks
|
|
|
|
|
If you are using SQL 2005 or above then just go to SQL Server Configuration Manager >> SQL Server Network Configuration >> Protocols for SQLExpress. Enable the TCP/IP protocol. Restart the SQLExpress service.
There is no foolish question, there is no final answer...
modified on Monday, June 15, 2009 9:42 AM
|
|
|
|
|
i did that but it didn't work
|
|
|
|
|
Hi..
I have create a function named public void UnreadMail() in MasterPage.
There is a page named MailingDetails.aspx. This page is created with Master Page.
I have called UnreadMail() in MailingDetails Page dynamicllay for refreshing only particular of masterpage's that function.
It is like ....
this.Master.UnreadMail();
but it can't refresh of master page's that particular data even if it run successfully.
plz, suggest me where's the problem with this issue.
Thanks.
Regards,
PUJA FALDu
|
|
|
|
|
Place this in your child page
<%@ MasterType VirtualPath="~/MasterPage.master" %>
and call the function as you have done.
himanshu
|
|
|
|
|
hi...
I have already register this tag in .aspx page but then also its not work.
Any other issue, can conflict with this one? kindly suggest...
thanks.
|
|
|
|
|
What do u mean by can't refresh master page's function .
What are you ding in that function
himanshu
|
|
|
|
|
hi..
i have used modalpop up in master page and its shows data with, public void UnreadMail() by masterpage.master.cs page.
i have datagrid in MailingDetails.aspx page which contains this master page.
now in click of one record of datagrid,it opens NewPage.aspx.
NewPage.aspx does not contain master page.
I want to refresh UnreadMail() which is called in MailingDetails.aspx page.
Thanks.
|
|
|
|
|
I like to create textBox dynamically by pressing a button. But I can’t getting the textbox or its value back after a postback occur. I am creating New textBox lile bellow...
Partial Class postback
Inherits System.Web.UI.Page
Dim tx As New TextBox
................
................
Protected Sub btnNewAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnNewAdd.Click
PlaceHolder1.Controls.Add(tx)
End Sub
..............
...............
Now I pressed a 'save' button and try to show dynamically created text box's value in label.But it is not happening. Also textBox vanishes. My code is bellow...
Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click
Label1.Text = tx.Text
End Sub
..........
End Class
Please help me to achive this.
|
|
|
|
|
Because you are adding textbox in the click event of Add button.
So when u click save button you are not getting anything
himanshu
|
|
|
|
|
Saam_cse wrote: I like to create textBox dynamically by pressing a button. But I can’t getting the textbox or its value back after a postback occur.
You will not get. Because you have to create the textbox, before Page_Load() , because Postback data and view state data load for control before page_load . Create your control on Page_PreInit() will resolve your problem.
|
|
|
|
|
Create a HashTable and add the control id as key and control value as value.
Then at postback get the control's value using Request.Form(control_id) and create the control again and assign it the same value.
Example :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
If Not IsNothing(ViewState("ht")) Then
Dim v_ht As New Hashtable
v_ht = CType(ViewState("ht"), Hashtable)
For i As Integer = 0 To v_ht.Count - 1
'getting value of 1st control
Dim a = Request.Form("txt_1")
'getting value of 2nd control
Dim b = Request.Form("txt_2")
Next
Else
Dim ht As New Hashtable
'dynamically created 1st control
Dim txt As TextBox
txt = New TextBox
txt.ID = "txt_1"
txt.Text = "CODE"
ht.Add(txt.ID, txt.Text)
ph_Main.Controls.Add(txt)
'dynamically created 2nd control
txt = New TextBox
txt.ID = "txt_2"
txt.Text = "PROJECT"
ht.Add(txt.ID, txt.Text)
ViewState("ht") = ht
ph_Main.Controls.Add(txt)
End If
Catch ex As Exception
Response.Write(ex.ToString)
End Try
End Sub
store the id(s) of dynamic controls in a hashtable.
at postback loop through the hashtable and using Request.Form and passing control id through hastabale , get back all values.
this is the easiest method of getting back the values of dynamically created controls.
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click
TextBox txtBxTemp = (TextBox)e.Item.FindControl("tx");
Label1.Text = txtBxTemp.Text;
End Sub
Well those two list are C# I have no clue what VB would be maybe:
txtBxTemp as TextBox = (TextBox)e.Item.FindControl("tx") ?
|
|
|
|
|
Can anybody help to give code or application for update carrer profile page which contains
1. qualification details..(any number of rows dynamically in client side)
2. Experience details.. (any number of rows dynamically in client side)
These two this must done without using Ajax only by .net 2.0
|
|
|
|
|
svenki wrote: Can anybody help to give code or application
For free ???
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Just render one HTML and place it into your div.
Mind that, you need to specify the name attribute of the dynamically created controls, as you can get the name from the Request.Params I think.
|
|
|
|
|
Public 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
|
|
|
|
|
anbusenthil wrote: Handles Me.Load
MyBase.OnLoad(e)
Don't you think, it is obvious. You are calling the Onload event from Load method. It is a recursive loop.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
Hello,
I am using a panel control on page.
I want a html of the pannel control in codebehind.
Thanks in Advance
Regards,
Milind
|
|
|
|
|
Hi,
what are you trying to achieve? please clarify
himanshu
|
|
|
|