|
Looks like right issue. One thing you can do, have an user with admin rights and use that creadentials to access the records in AD.So here you just need have one uname and password which is admin.
|
|
|
|
|
hi to all,
i am new in asp.net so i need some help from you all.
i have created menus using menucontrol, this menu control is on Index.apsx page of masterpage.
when i click on any menu it will show me the related aspx page, e.g :- if i click on "Add new hotel"
it will show me the Hotelentry.aspx page, but the menus will get disappeared because the menucontrol is on index.aspx not on master page.If i took menucontrol on masterpage it shows error that the menucontrol should be within Form tag.
i haven't used Form on masterpage i have used form in content pages of that masterpage.
if i use "form" in masterpage, i can't use that "form" again in content aspx pages.
so please give me solution on this.
actualy i want if user select any menu, the related aspx page will get displayed but the menus should also remains as it is...
please help me
|
|
|
|
|
|
Hi All,
I m developing one app using MVC Architecture. Well I am new to MVC, so sorry if I am being a bit thick.
Now my problem is how to handle selectedIndexChanged/onChange event of DropDownlist in MVC??
Plz suggest me, if u have any idea...
Thanks in advance....
Krishnraj
|
|
|
|
|
|
what is this? Suject looks good but content is missing and seems arbitrary
Thanks,
Arindam D Tewary
|
|
|
|
|
wot is cvbvbvb?? using refection we can read assembly.
Raju.M
|
|
|
|
|
Please clear what you want to ask...
|
|
|
|
|
Can someone help me point to the location from where I can download VSTemplate for ASP.Net application and webservice to install into our Visual C# 2008 Express edition?
Thanks in advance.
|
|
|
|
|
You should use Visual Web Developer Express 2008 for that.
You can download it from Microsoft.
Cheers
I don't like my signature at all
|
|
|
|
|
Thank you. Appreciate your help.
|
|
|
|
|
Hi,
I have written the following code in javascript and when cancel
button is clicked in alert box, the record is getting saved and when again
second time when cancel button is clicked the functionality of
the cancel button in the alertbox is working fine.My issue is at the first time
my cancel button is not working and my record is getting saved.can anybody let me know the solution of this issue.
function confirmsave()
{
if(confirm("Are u sure u want to Save Record?"))
{
return true;
}
else
{
document.getElementById('<%=Label22.ClientID %>').innerHTML = "Cancel";
return false;
}
}
<asputton ID="btnsave" runat="server" Style="z-index: 101; left: 420px; position: absolute;
top: 37px" Text="Save" Width="64px" OnClientClick="javascript:return confirmsave();" OnClick="btnsave_Click" /> protected void btnsave_Click(object sender, EventArgs e)
{
if (Page.IsValid == true)
{
Label22.Visible = true;
Label22.Text = " Record Saved ";
}
} Thanks
Ramesh
|
|
|
|
|
<asputton id="btnsave" runat="server" style="z-index: 101; left: 420px; position: absolute;
top: 37px" text="Save" width="64px" onclientclick="return confirm('Are u sure u want to Save Record?')" onclick="btnsave_Click">
Try above code
Kiran Banker
|
|
|
|
|
The code block written looks good and I used the same code block and found that clicking "cancel" working as expected. In your situation if it is not working then try following
(1) I suspect that following line might be creating problem and as a result you are not getting correct result.
<br />
<br />
document.getElementById('<%=Label22.ClientID %>').innerHTML = "Cancel";<br />
<br />
Change the line to check whether it can find that object as follows, ( I suspect that following line could give 'null' in your actual code block,
alert(document.getElementById('<%=Label22.ClientID %>'));
Let me know if it helps,
Thanks,
Arindam D Tewary
|
|
|
|
|
Hello all,
First off I am using VB.net
I have a dropdown list in the Item template.
I would like the user to select a value and update the database without clicking an update button.
Here is the Code for the DDL
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDataSource2" DataTextField="provider"
DataValueField="provider" AutoPostBack="True" AppendDataboundItems="true" OnSelectedIndexChanged = "ddl_SelectedChange"
SelectedValue='<%# Bind("provider") %>'>
<asp:ListItem Value=""></asp:ListItem>
</asp:DropDownList>
here is my Behind code I am not sure what to put after the Dim statement
Protected Sub ddl_SelectedChange(ByVal sender As Object, ByVal e As System.EventArgs)
Dim ddl = DirectCast(sender, DropDownList)
Any help would be greatly appreciated
|
|
|
|
|
Where is the rest of the code behind?? or do you want us to help you in writing that???
|
|
|
|
|
Yes I am asking for hep is wrting that.
Thanks,
|
|
|
|
|
* Now that you have the drop down list object, you can get the selected value/text.
* You need to determine the row from which the event was fired and get the id.
- Simple means would be to associate the primary key data to the dropdown using attributes.
You can use these data to save the info to the database.
HTH!
|
|
|
|
|
<br />
<asp:DropDownList ID="provider" runat="server" DataSourceID="dr" DataTextField="provider" DataValueField="provider" AutoPostBack="True" AppendDataboundItems="true" OnSelectedIndexChanged="dd_OnSelectedIndexChanged" SelectedValue='<%# Bind("provider") %>'> <asp:ListItem Value=""></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="provider" runat="server" <br />
DataSourceID="dr" DataTextField="provider" <br />
DataValueField="provider" AutoPostBack="True" AppendDataboundItems="true" OnSelectedIndexChanged="dd_OnSelectedIndexChanged"<br />
SelectedValue='<%# Bind("provider") %>'><br />
<asp:ListItem Value=""></asp:ListItem><br />
</asp:DropDownList>
Here is the Behind Code
Protected Sub dd_OnSelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
'*******************************************************
'*This will get the dropdownlist which has been clicked*
'*******************************************************
Dim ddl As DropDownList
ddl = DirectCast(sender, DropDownList)
'***********************************************************************
'*The row will be the currently selected row from which the dropdownlist*
'*was clicked *
'***********************************************************************
Dim row As GridViewRow = DirectCast(ddl.NamingContainer, GridViewRow)
'******************************
'*Get the datakey for that row*
'******************************
Dim DataKey As String = GridView1.DataKeys(row.RowIndex).Values("IEN").ToString()
'**********************
'*Define Data Objects *
'**********************
Dim conn As SqlConnection
Dim comm As SqlCommand
'******************************************
'*Read the connectionstring from we.config*
'******************************************
Dim ConnectionString As String = ConfigurationManager.ConnectionStrings("ER_BloodHoundConnectionString").ConnectionString
'***********************
'*Initialize Connection*
'***********************
conn = New SqlConnection(ConnectionString)
'****************
'*Create Command*
'****************
comm = New SqlCommand("UPDATE VW_Paitent SET provider=@provider WHERE IEN=@IEN", conn)
'************************
'*Add command Perameters*
'************************
comm.Parameters.Add("@Provider", System.Data.SqlDbType.NVarChar, 50)
comm.Parameters("@Provider").Value = ddl.SelectedItem.Value
comm.Parameters.Add("@IEN", System.Data.SqlDbType.Float)
comm.Parameters("@IEN").Value = DataKey
'*******************************************
'*Enclose Database code in Try catch Finaly*
'*******************************************
Try
'*********************
'*Open the connection*
'*********************
conn.Open()
'*********************
'*Execute The command*
'*********************
comm.ExecuteNonQuery()
Finally
'**********************
'*Close the connection*
'**********************
conn.Close()
End Try
End SubProtected Sub dd_OnSelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
'*******************************************************
'*This will get the dropdownlist which has been clicked*
'*******************************************************
Dim ddl As DropDownList
ddl = DirectCast(sender, DropDownList)
'***********************************************************************
'*The row will be the currently selected row from which the dropdownlist*
'*was clicked *
'***********************************************************************
Dim row As GridViewRow = DirectCast(ddl.NamingContainer, GridViewRow)
'******************************
'*Get the datakey for that row*
'******************************
Dim DataKey As String = GridView1.DataKeys(row.RowIndex).Values("IEN").ToString()
'**********************
'*Define Data Objects *
'**********************
Dim conn As SqlConnection
Dim comm As SqlCommand
'******************************************
'*Read the connectionstring from we.config*
'******************************************
Dim ConnectionString As String = ConfigurationManager.ConnectionStrings("ER_BloodHoundConnectionString").ConnectionString
'***********************
'*Initialize Connection*
'***********************
conn = New SqlConnection(ConnectionString)
'****************
'*Create Command*
'****************
comm = New SqlCommand("UPDATE VW_Paitent SET provider=@provider WHERE IEN=@IEN", conn)
'************************
'*Add command Perameters*
'************************
comm.Parameters.Add("@Provider", System.Data.SqlDbType.NVarChar, 50)
comm.Parameters("@Provider").Value = ddl.SelectedItem.Value
comm.Parameters.Add("@IEN", System.Data.SqlDbType.Float)
comm.Parameters("@IEN").Value = DataKey
'*******************************************
'*Enclose Database code in Try catch Finaly*
'*******************************************
Try
'*********************
'*Open the connection*
'*********************
conn.Open()
'*********************
'*Execute The command*
'*********************
comm.ExecuteNonQuery()
Finally
'**********************
'*Close the connection*
'**********************
conn.Close()
End Try
End Sub
|
|
|
|
|
Thanks all. Problem solved. See previous post.
|
|
|
|
|
Hi all,
I am creating a xml file dynamically. If there is no data for a particuler tag then XMl file automatically close it like <test /> but i want to the tag in following format
<test> </test>
I am creating XML using following tag.
writer.WriteElementString("test","");
Can anybody please help me?
Regards
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
I have a user control with a datagrid and few other information on
title and summary. I would like to render this control to an Excel file !
The problem is , as soon as i try to open the rendered xls file, Excel reports an error, that the file extension is not valid, and that it is not from a trusted resource.
Is there a way, i can remove this error ?
Any help , would be appreciated!
Thanks and Regards
G
|
|
|
|
|
Hi everyone,
Now i plan for my final year project but i not sure wat tilte i want to do. Any ideas?
I plan to do a web-based system.
I want to develop by Asp.net with C# and microsoft SQL server.
Any help is appriaciated!!!
Best regards,
Nasri
|
|
|
|
|
I believe the point is for you to come up with an idea. It's your project and as it's your final year you should have learned something in the previous years to give you an idea.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi Nasri,
In final year project you need to think for both your best learning and maximum score you can achieve from the project.
If you want to develop web based project using ASP.NET and C# then my suggestion is to contact good company who can give you chance to develop project and provide you resources for the same. Like you can go for Financial projects and apply your maximum technical skill and functional knowledge and that will give you nice learning and good placement even.
If you required any technical guidance then surely ask to me..
I will do my best to help you...
Regards and all the best.
Nilesh Shah.
|
|
|
|