|
you can also see www.datagridgirl.com, you have enough articles on datagrid in this site
Gautham
|
|
|
|
|
Hi,
I am making a web portal where in there's one section which is only visible to some particular users. Also there are individual pages which are in general accessible to everyone but the EDIT / ADD / DELETE functionality on those pages is only accessible to Admins.
Now I have a login page and once the user logs on successfully, I do a FormsAuthentication.RedirectFromLoginPage which takes me to Default page.
But now the approach has to be changed a bit. This representation would clear it.
Default page(open to all without any login initially, and a seperate link to allow the user to login for accessing special functionality) -> If not logged on, the user can move around but wont have any access for EDIT/ADD/DELETE and even the special section. -> Once user clicks the special link -> redirect to Memberlogin page and once authenticated -> redirect to default page yet again -> This time depending on user's rights enable or disable the EDIT/ADD/DELETE func and allow the special func to be accessed now.
How can this be achieved ?
Can we have FormsAuthentication enabled and instead of using RedirectFromLoginPage do a manual redirect and once user logs off, do a FormsAuthentication.SignOut() ?
Pls guide me.
Omkar Ghaisas
|
|
|
|
|
i have a dataset Dataset1.Xsd. in that there is a table video.i have to retrieve the value from a particular coloumn in that table and to display it in another page. hw to code in c# in .net 2.0
|
|
|
|
|
Hi
I have a web-service which is created in VC++ 8, I only have the .wsdl file of that web-service along with some .dll files. For my local pc, i did access the web-service successfully by creating the virtual directory. But when i try to access that web-service from a different pc on the network, i can not access it. I get the connection time-out error, or the page can not be displayed error.
I also shared the folder in which web-service is residing but still this solution couldn't solve my problem.
Can anybody suggest any solution to access that web-service???
Regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Go to the project in inetmgr and rightclick-> Properties -> Directory Security tab-> Under Authentication and access control section click edit and check the enable anonymous access.
|
|
|
|
|
Anonymous access is already checked. But still it doesn't work.
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Hi,
Iam New to Webservices,Plz refer good material to learn webservices quickly
iam awaiting for reply
Thanks & Regards
Srilakshmi
|
|
|
|
|
To start you can have a look at this[^]
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
When i was creating the proxy at command prompt i got the error like "wsdl is not recognized as an internal or external command"
Why this error come,and also why we prefer proxy to expose webservice methods,cant we directly expose?.
Plz calrify my doubts, otherwise suggest good link
Advanced Thanks
Srilakshmi
|
|
|
|
|
I think you need to set the environment variable for that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi,
i would like to have something like netmeeting in my asp.net application. can i integrate netmeeting with our asp.net application. is it possible?. will you let me know how?
thanks in advance
sebastian
|
|
|
|
|
|
You have to use MySql.Data.dll
Place it in C:/windows/System32 and refer it in your application.
|
|
|
|
|
|
This is the Select query that i am using while developing ASP.Net app using VB.Net My EventDate is in General Date format.But gDate is in Short Date format.So query not produsing any out put.
Dim gDate As DateTime = txtDate.Text.Trim()
SelectQueryText = "SELECT Distinct UserID,EventDate FROM History WHERE Dept='" + lstDept.SelectedValue.Trim() + "'AND EventDate=" + gDate + ""
What is the currect query to get the OutPut?
Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd
|
|
|
|
|
change EventDate as shortdate then compare
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Sir,
Actually i dont ve the permission to change the format of EventDate in DB...Then what i should do?Is there any provision to change the format of record at rub time?
Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd
|
|
|
|
|
Hi All,
I have Datatable, which is created at runtime and Bind with GridView.What I want is to make two columns of that datatable visible false.
Please tell me how do I go about the same.
Thanks in advance...
|
|
|
|
|
I think you want to make columns of the gridview to be invisible not os the datatable, right?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Actually you are right but I tried that on RowDataBound event but it didnt work.
Any help??
|
|
|
|
|
I think when you are binding the gridview at that time you can make them visible = false (Can't you do that in design time). Are you creating the gridview dynamically?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Actually I am binding Gridview with ViewState DataTable on Add button click.Following is the code:
strSql = "SELECT ColumnName, ColumnDataType FROM sysDataTypeTable WHERE ID =" & cmbGFormName.Items(cmbGFormName.SelectedIndex).Value
objDT = objDB.ExecuteDatatable(strSql)
If Not ViewState("WhereClause") Is Nothing Then
'DataTable is available in ViewState
GridViewQuery.AutoGenerateColumns = True
If htxtEditOrAdd.Value = "Edit" Then
index = htxtSrNo.Value
If cmbGFormName.SelectedIndex <> 0 And cmbOperator.SelectedIndex <> 0 Then
CType(ViewState("WhereClause"), Data.DataTable).Rows(index).Item("FieldName") = cmbGFormName.Items(cmbGFormName.SelectedIndex).Text
CType(ViewState("WhereClause"), Data.DataTable).Rows(index).Item("Operator") = cmbOperator.Items(cmbOperator.SelectedIndex).Text
CType(ViewState("WhereClause"), Data.DataTable).Rows(index).Item("Value") = txtValue.Value
If chkAndOR.Checked Then
CType(ViewState("WhereClause"), Data.DataTable).Rows(index).Item("ANDOR") = "OR"
Else
CType(ViewState("WhereClause"), Data.DataTable).Rows(index).Item("ANDOR") = "AND"
End If
GridViewQuery.DataSource = ViewState("WhereClause")
GridViewQuery.DataBind()
htxtEditOrAdd.Value = ""
htxtSrNo.Value = ""
End If
Else
If cmbGFormName.SelectedIndex <> 0 And cmbOperator.SelectedIndex <> 0 Then
Dim objDR As DataRow
objVDT = ViewState("WhereClause")
objDR = objVDT.NewRow()
objDR("FieldName") = cmbGFormName.Items(cmbGFormName.SelectedIndex).Text
objDR("Operator") = cmbOperator.Items(cmbOperator.SelectedIndex).Text
objDR("Value") = txtValue.Value
If chkAndOR.Checked Then
objDR("ANDOR") = "OR"
Else
objDR("ANDOR") = "AND"
End If
objDR("ColumnDataType") = objDT.Rows(0).Item(1).ToString
objDR("ColumnName") = objDT.Rows(0).Item(0).ToString
objVDT = ViewState("WhereClause")
objVDT.Rows.Add(objDR)
GridViewQuery.DataSource = ViewState("WhereClause")
GridViewQuery.DataBind()
End If
End If
Else
objVDT = New DataTable("WhereClause")
objDC = New DataColumn
'Sr No Column
objDC = objVDT.Columns.Add("SrNo", System.Type.GetType("System.String"))
objDC.Caption = "Sr No"
objDC.AutoIncrement() = True
'Field Name Column
objDC = objVDT.Columns.Add("FieldName", System.Type.GetType("System.String"))
objDC.Caption = "Field Name"
'Operator Column
objDC = objVDT.Columns.Add("Operator", System.Type.GetType("System.String"))
objDC.Caption = "Operator"
'Value Column
objDC = objVDT.Columns.Add("Value", System.Type.GetType("System.String"))
objDC.Caption = "Value"
'And/Or Column
objDC = objVDT.Columns.Add("ANDOR", System.Type.GetType("System.String"))
objDC.Caption = "AND/OR"
objVDT.Columns.Add(New DataColumn("ColumnDataType"))
objVDT.Columns.Add(New DataColumn("ColumnName"))
ViewState("WhereClause") = objVDT
Dim objDR As DataRow
objDR = objVDT.NewRow()
If txtValue.Value <> "" Then
objDR("SrNo") = 1
objDR("FieldName") = cmbGFormName.Items(cmbGFormName.SelectedIndex).Text
objDR("Operator") = cmbOperator.Items(cmbOperator.SelectedIndex).Text
objDR("Value") = txtValue.Value
If chkAndOR.Checked Then
objDR("ANDOR") = "OR"
Else
objDR("ANDOR") = "AND"
End If
<b>'Make this 2 columns visible false.</b>
objDR("ColumnDataType") = objDT.Rows(0).Item(1).ToString
objDR("ColumnName") = objDT.Rows(0).Item(0).ToString
objVDT.Rows.Add(objDR)
GridViewQuery.DataSource = objVDT
GridViewQuery.DataBind()
End If
End If
Please tell me how do I make it visible false??
|
|
|
|
|
You use to scare with these looong sode snippets..
I think just after you bind the gridview you can simply hide the column by using
GridView1.Columns[1].Visible = false;
or also just when you binding the gridview one event gets fired just as onitemdatabound in datagrid there also it can be done...
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have tried this but its not working.
GridViewQuery.Rows(SrNo).Cells(2).Text = objDT.Rows(0).Item(1).ToString
GridViewQuery.Columns(2).Visible = False
GridViewQuery.Rows(SrNo).Cells(3).Text = objDT.Rows(0).Item(0).ToString
GridViewQuery.Columns(3).Visible = False
Its giving runtime error that index was out of range.
|
|
|
|
|
You first check whether that many columns are there or not. If you are having the columns then certainly you can make them visible false with that code.
Best Regards,
Apurva Kaushal
|
|
|
|