|
Thanks for your suggestion.I tried with that I have so many dropdowns like that and I already saved All in database. Now i need to change for all pages.I will follow your suggestion first i will remove binded "All" from dropdown and i will insert at top position.Thank you.
|
|
|
|
|
HI , in first dropdownlist1 you Bind All Allphabates . in selection of First Dropdownlist you have to Bind Second Dropdownlist with query ;
it may be like this . select * from tablename where fieldname like 'dropdownlist1.selectedtext.text%'
Try This may be its help .
|
|
|
|
|
user.aspx.cs:
public partial class user : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = Session["val"].ToString();
}
}
login.aspx.cs:
if (reader["pword"].ToString() == pswd.ToString())
{
Session["val"] = TXtLoginName.Text;
Response.Redirect("User.aspx");
}
Still "Object reference not set to an instance of an object" error occurs sir.
can u please help me?
|
|
|
|
|
Well, your code really sucks. You should not hard code session keys, you also should never check the session without first making sure the value is not null.
You should step through in the debugger to try to work out if you are setting the session value, and why it's null on the other end.
you should also not write code that returns the correct password, that's not secure.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi All,
I want to write in C#, a SOAP client over an SSL connection to a server which supports SOAP requests and gives back SOAP responses.
The way i am currently doing it is
1) I use a open source .NET SSL library to connect to the server.
2) I manually create SOAP requests(in the form of strings stored as resource and in XML files) and send these request over the connection created in 1.
3) I get back the response over the SSL connection and then parse it to get the response.
Now my question is, Can i a use .NET framework class library which provides all these features, so that i can just create a SOAP web service client(which would work over SSL) and then use these .NET web service classes to actually get my work done.
Any help or direction would be really appreciated.
.Net Programmer
(RedDiamond)
|
|
|
|
|
Why not just create a webservice, which will create SOAP for you ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Try explaining yourself in your post, not in your header. As far as I can see, you have written *no* code to do what you want. I see no database code here. So, perhaps if you have no idea where to start, you should buy a book, work through it, try to write some code, and ask us if you get stuck AFTER trying to do your own work ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
In my master page (Asp.Net 2.0), I've given my img. It is showing well at design time but not at run time. In my solution, I put common.master in "Master Page" folder. All of my images in "Images" folder.
<body>
<div id = "div1" runat ="server" >
<table width=100% height=4 bgcolor=eeeeee>
<tr valign ="middle">
<img src ="../Images/Currency2.jpg" border="0" />
<%--<asp:Image runat="server" ImageUrl ="~/Images/Currency2.jpg" BorderStyle = "None" />--%>
<I><B> Bullet </B></I></tr>
</table>
</div>
Anybody can help me. Thanks in adv.
Balasubramanian K.
|
|
|
|
|
Try specifying an absolute path.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
It is working well at design time. I select the image by using "Pick Url" only. I'm not typing the path by myself directly.
Balasubramanian K.
|
|
|
|
|
Well, perhaps you need to start being a programmer, and type in some values. The relative path is obviously killing you, either the images are in a different place on the live server, or something else is messing it up.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi All
I am developing a website for online painting sell. Now the images were displaying properly but i want to display those image in a photo frame.
How could i able to do the same.
Regards
Yogesh Agarwal
|
|
|
|
|
Just use CSS to define a frame.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sorry Dear,
but could you give me an example. or any link so that i could see that
Yogesh
|
|
|
|
|
If you want to draw a frame around images, you can just specify a border using CSS. If you don't know what CSS is, google it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
how to display database table directly to webpage,,i am using ASP.NET language c#
|
|
|
|
|
Use data controls like GridView, DataGrid or repeater. Fill the data and bind to this control.
|
|
|
|
|
Hi all
am binding a gridview through code..and am editing the row using edit command in gridview
now everything is working fine..
now if i click on edit all the columns a editable except the datakey column...
i want to make some other column also not to be edited by the user..
how can i do that in GridView's RowEditing event?
|
|
|
|
|
Use EditItemTemplate for Field which you wants for edit .
|
|
|
|
|
<asp:GridView ID="GridView1" runat="server" OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit"
OnRowUpdating="GridView1_RowUpdating" DataKeyNames="EmployeeID">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox id="ChkCancel" runat="server"/>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowEditButton="True" CausesValidation="false"/>
<asp:TemplateField HeaderText="Reason">
<ItemTemplate >
<asp:DropDownList ID="DDlReason" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DDlReason_SelectedIndexChanged">
<asp:ListItem Text=" " Value="0" >
</asp:ListItem>
<asp:ListItem Text="Termination" Value="T" >
</asp:ListItem>
<asp:ListItem Text="Resignation" Value="R" ></asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
and gridview is populating through code...
|
|
|
|
|
Hi,
(I have downloaded a control from net named GoogleMapForASPNet.ascx)
My aim is store some values in a database .
So when the user is clicking on a point on GMAP a info window is getting raised up
and in that few textboxes with a submit button is placed .
i want to store the text box data into mysql database
* I dont want the page to get post back
what i have tried
Placed a html submit button and under Form i have written method="post" and action='apage.aspx'
now on submit button i am passing data via query string .. .. ... problem is its navigating to that apage.aspx
# is there anyway to stop navigating ?
Secondly i have placed a html button and added runat="server" and on onserverclick="butclick"
# Please tell me where to write the butclick function , i tried with writing the function in current page as well as the control page . but no result
# if i was wrong with two concepts .. please suggest something to solve this problem
Happy programming
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
|
Hi all,
I wish to know whether windows sharepoint services 2003 contains an inbuilt e-mail functionality.
I mean to say that it shouldn't be using any e-mail client for it's purpose.The e-mail feature should be embedded in it.Is there something like that?
Please let me know!! If there is something like that then my project is for a toss.
|
|
|
|
|
Well... I think it does.... Because I have emailed from servers which does not exists using Sharepoint services. Initially I thought there is no possibility of doing so,
I dont know what they are using, Have to look into it thoroughly...
Abhishek Sur
|
|
|
|