|
thanks for reply and for help
i want to clear you that
i have a grid view in middle panel which having datagrid control when edit and add button is clicked on right panel open edit and add panel and i want that page will not post back so i use ajax(for retriving) so i take datagrid in update panel and all panel related to that grid have another update panel.
as you answer that i have this fileupload and button on other update panel(seprate panel) than application work like firstly edit your all info and after that go for new menu if he want to edit image also. for this reason i cant take this in seprate panel.
please tell me what to do on this condition?
I will do my best?
|
|
|
|
|
|
thanks to reply but error is shown:-
Control with ID 'btn' cannot be registered through both RegisterAsyncPostBackControl and RegisterPostBackControl. This can happen if you have conflicting triggers associated with the target control.
I will do my best?
|
|
|
|
|
hi,
i am not very much clear for your question but as per your question what i can suggest you is
1> First put all the update panels in one updatepanel and
set childrenastriggers=true and updatemode=always
2> Put both the controls in one updatepanel only..
Reasons are not Important but Results are Important.
Swati Tripathi
|
|
|
|
|
Thnaks to reply
yes i have already done this but problem is that i am use debug and found that fileuplod.filename is empty means it can't get file name. while i am selecting a .jpg file.
I will do my best?
|
|
|
|
|
hey please check your triggers.
Reasons are not Important but Results are Important.
Swati Tripathi
|
|
|
|
|
thanks for reply
& if trigger change in place of ascncronys into autopostback than page will refresh and i dont want that my page will refresh another wise its working properly and then where i use ajax for this control. here is any other way that page will not refresh and work is done properly.
I will do my best?
|
|
|
|
|
how can i save DataGridView Data into excel sheet in windows. plz help.
|
|
|
|
|
plz go thru this link
http://xldennis.files.wordpress.com/2008/02/dgviewcode3.png
|
|
|
|
|
Worksheet shall be created only once. after that new rows shall be inserted in it like it is done with sql. is this code like that.
|
|
|
|
|
hi
well i am looking for the expression validator for this kind of string
aa1_aa2_aaa
if anyone could help......
|
|
|
|
|
You could search about Regular Expression.It is simple.
studing is processing in this life.
|
|
|
|
|
hi,
try this one.
^(([a-zA-Z\d]{3}_){2})([a-zA-Z\d]{3})
It will check for aplhanumeric strings seperated.
Can U give more examples of the type of string you want?
Hope to be of help.
take care
mani
|
|
|
|
|
Do you mean that the first two should end with a digit:
([a-z]{2}\d_){2}[a-z]{3}
or that the first two can contain digits:
([a-z\d]{3}_){2}[a-z]{3}
or that all three can contain digits:
([a-z\d]{3}_){2}[a-z\d]{3}
?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
You can search for Regular Expressions here:
Regex Lib[^]
-muneeb
A thing of beauty is the joy forever.
|
|
|
|
|
I don't need to search for a regular expression. You should reply to the original post.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Sorry, I don't want to hurt you. Infact I was replying to the orignal post.
Is there any way to move my post to the orignal post?
-muneeb
A thing of beauty is the joy forever.
|
|
|
|
|
Plz tell me the name of dll which is provided by microsoft
for databaseconnectivity in dotnet
from where i can download that
|
|
|
|
|
nikhil1234 wrote: Plz tell me the name of dll which is provided by microsoft
for databaseconnectivity in dotnet
from where i can download that
Download it from here.Enterprice Library
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,
I have a class marked as [Serializable] named "TestClass". When i store the object of this class
Why the [NonSerialized()] attribute fname successfully serialized and deserialized back when i create the object from viewstate?
Following is the full code of my test.
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Runtime.Serialization;
using System.Xml.Serialization;
public partial class viewstate : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
TestClass obj = new TestClass();
obj.name = "Dreams";
obj.fname = "Lonely";
ViewState["MyDT"] = obj;
}
protected void Button1_Click(object sender, EventArgs e)
{
TestClass obj = (TestClass)ViewState["MyDT"];
Response.Write("id=" + obj.j.ToString() + " Name=" + obj.name.ToString() + " Age=" + obj.age.ToString() + " fname="+ obj.fname +"");
}
}
[Serializable]
public class TestClass
{
public int j = 1;
public string name = "Dreams";
public string age = "28";
[NonSerialized()]
public string fname = "Planet";
}
Thanks
|
|
|
|
|
Hi,
First you need to Serialize the TestClass object.
Here is how to do it.
Serialization
TestClass obj = new TestClass();
obj.name = "Dreams";
obj.fname = "Lonely";
FileStream fs = new FileStream("SerializedString.Data", FileMode.Create);
BinaryFormatter bf = new BinaryFormatter();
bf.Serialize(fs, obj);
fs.Close();
Then you need to deserialize it like this.
Here is the code for that.
Deserialization
FileStream fs = new FileStream("SerializedString.Data", FileMode.Open);
BinaryFormatter bf = new BinaryFormatter();
TestClass obj= (TestClass)bf.Deserialize(fs);
fs.Close();
Response.Write("id=" + obj.j.ToString() + " Name=" + obj.name.ToString() + " Age=" + obj.age.ToString() + " fname="+ obj.fname +"");
Hope it helped.
Thx,
Gayani
|
|
|
|
|
I agreed.
But storing object into the viewstate is also the process of serialization. If i removed the [Serializable] attribute from TestClass the application won't work, because to store the object, class must have that attribute.
Than why that process won't understand [NonSerialized()] attribute?
Is viewstate serialization is different form of process?
Thanks,
|
|
|
|
|
I have a web project that is only doing put and get over HTTP. The website consists of only HTTP handlers.
When I changed one of my web.config to point at a temporary database, I began getting the Unauthorized exception, with an internal exception that says the server actively rejected my connection.
I'm running VS2008 under Vista SP1. There is no Temp ASP.NET Files folder to delete which others have said is a solution to the problem.
Any suggestions on getting past this??? I've put it back to my current database but I'm still failing. I also compared web.config files with my co-developer and they are identical.
I really need help on this one!
Thanks,
Michael
|
|
|
|
|
Hi, thanks for looking
I have a customcontrol with a public property (UserID)
In my page im binding UserID to gridview.selectedvalue
UserID = '<%# me.gridview.selectedvalue %>'
This custom control is inside a wizard step
When i change between wizardsteps UserID = '<%# me.gridview.selectedvalue %>' disappears from the source of the page
I just noticed that this doesnt happen if i put the customcontrol outside the wizard
Does anyone have any idea of what i can do to bind this property and not loose it if i change wizard steps?
Alexei Rodriguez
|
|
|
|
|
may be a problem with its visibility of the container...
check the exact html what it produces... That may help.
Abhishek Sur
|
|
|
|